Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ADD LINK IN A SINGLE TEXT PHRASE 2

Status
Not open for further replies.

zetpap

Technical User
Oct 3, 2001
28
GR
I'm a beginner in flash 5. I 've made my movie and all works well but i can't add an action to a single phrase in my paragraph. I know how to add an url but I need it to open in a new window. How do I do that?
 
Code:
on (press){
getURL("[URL unfurl="true"]http://www.whateverpage.com/"),[/URL] "_blank");
}
Regards,
new.gif
 
You see my problem is that I select just a word from a phrase which i want it to link somewhere else. When I highlight the word my actions doesn't work at all
Thx again
 
Unless you come up next with you want to open a link read from a text file in a dynamic text box...
Why didn't you say so in the first place!

Flash doesn't work like html! You'll have to simulate that!
You'll have to either convert your text word into a button, or lay an invisible button under that particular word, and then use the getURL on that.

Guess your next question will be: how do I create an invisible button?

Regards,
new.gif
 
HEY, I know how to create an invisible button. I just need someone to remind me. Anyway I have somewhere to start from. Thx alot for your help
Zeta
 
OK... where is the rest of the posts... there was one here yesterday on how to add an html link within a dynamic text box... somebody disappeared it as my 6 year old says.... Ya' Gotta Love It!
sleepyangelsBW.jpg
 
Here's that info again Jeff...

Within a dynamic textbox you can add some functionality as long as you have the HTML box checked.

LInks can be created by using the standard anchor tag so this...

Code:
<a href=&quot;[URL unfurl="true"]http://www.google.com&quot;>click[/URL] here</a>

...in your textbox will work as a link just as it would on a standard HTML webpage.
 
Fancy script editing by our good friends at Tek-Tips!
Seems they don't like too much French... They probably don't understand it and might be seeing all of this as a plot!

As for Wang's post your referring to, don't know why they &quot;disappeared&quot; that one, it was certainely within the ethics of Tek-Tips.

Virt and I have been using that for months.
Refer to this technote from Macromedia:


Check the Use a <A> tag to link to a URL example.

Regards,
new.gif
 
BTW, you can even add the underline tag to Wang's script...
Looks even more like the current and usual link:
Code:
<a href=&quot;[URL unfurl="true"]http://www.google.com&quot;>[/URL]
CLICK HERE
Code:
</a>

Regards,
new.gif
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top