Ask a Question related to Macromedia Flash Actionscript, Design and Development.
-
AlexisNeel webforumsuser@macromedia.com #1
URL text linking
Hi
On my site there is one area with about 60 names on it, and each has a website that I want to link to. I had already entered all the names and positioned them where I wanted them to go, and got the rest of the scene ready. And it was easy to go back and add the URL to the name by going thru the "Character" panel and entering the address in the URL spot. However, I'd like for the links to be opened in a new window and not taking the current window "forward" to their site (which when it happens and they use the back button, the complete site loads again from the beginning). Is this possible? I know in the AScript coding it can be added as a peramiter, so I'm hoping yes.
If not, besides doing a html page (which would throw the site completely off) what are my options?
Flash 5 please, slightly above beginner with AS, and thanks for any advise.
Alexis
PS: I did post this in general forumn, and please forgive my crosspost, but I really need an answer to this, and I didn't get anything over there. I'm hoping this is an AS problem.
[url]www.alexisneel.com[/url]
AlexisNeel webforumsuser@macromedia.com Guest
-
Linking object to text?
I have an odd little problem and can't seem to find an answer anywhere. In some of the texts I set in InDesign (I have 2.0 and no, my boss won't pay... -
Linking Text Field
Have you found any success in linking text fields? I have received some information in regards to using javascript but I am hung up due to my... -
Linking Text Boxes
I am trying to make a flyer in freehand and I need to link 3 text boxes together for use in an article on the frontpage of the flyer. Is it... -
linking text from spreads
I've made a document with several master documents. One for the title pages and one for the text pages for a report. When I load a .doc into the text... -
linking scenes with text?
is it possible to link scenes just using text? I was going to use << and >> in the place of an actual button. Anyone know how to do it easily? I... -
elemental .std webforumsuser@macromedia.com #2
Re: URL text linking
you can ask everything if there is someone who can answer you !
create text field
set it dynamic and HTML formated
than use html syntax
<a href="URL.of.Bill" target="_blank">Bill</a>
<a href="URL.of.Smith" target="_blank">Smith</a>
.....
hope that helps
elemental .std webforumsuser@macromedia.com Guest
-
AlexisNeel webforumsuser@macromedia.com #3
Re: URL text linking
elemental.std,
yes thats true, and yes I am a little hurried with this, but it seems its something thats been done before, and easy for a more experienced Flash user.
Your reply helped, given my limited experience with any code what so ever. One thing, where exactly am I supposed to put the html syntax you gave? If I need to edit the resulting HTML file that Flash produces with all the code for 60 people, I guess I'll have to do that. However, with the trials I did, I couldn't get the code to work right, or at least position itself in the dynamic text boxes I made. Maybe my whole process was wrong, I'm not sure.
Thanks for your help.
Alexis
[url]www.alexisneel.com[/url]
AlexisNeel webforumsuser@macromedia.com Guest
-
elemental .std webforumsuser@macromedia.com #4
Re: URL text linking
So when you create text field and spesified it to HTML Dynamic text field
that means that the text which is put into this field is in state of HTML syntax.
The HTML syntax that Flash understand and translate depends on the version
in Flash 5 (that is you version i think ?) you can use these tags:
<b>,<i>,<u>,<br>,<a> ...
in Flash MX there is no great addon of tags but in Flash MX 2004 you can use Stylesheets and <IMG> and others tags.
When you create your text field which will contain the list of LINKs name it FIELD (for ex.).
Now you can change the type of this field and the contain.
//this line will set the field DYNAMIC
FIELD.type = "dynamic";
//this line will set it to use HTML syntax
FIELD.html = true;
//this will put contain into the field
FIELD.htmlText="BLA BLA";
//this line will add the link you want
FIELD.htmlText="<a href="URL1" target="_blank">LINK</a>";
You can miss the first two lines if you set up the text field manualy using property bar.
There is another way to put content into the field.
You have not to named the text field but you have to set variable which is related to this field.
//html_text is that variable
//this line will put content into the field
html_text="<a href="URL1" target="_blank">LINK</a>;
Hope this helps.
elemental .std webforumsuser@macromedia.com Guest



Reply With Quote

