yeah. there are several ways to get this effect, but let's assume you are talking about a regular text field where you would normally type the URL in the URL Link box in the property inspector...
1) make a text box. you will have to make it "dynamic text" so you can give it an instance name. In this example I will use "myTextField" as the instance name for this text field.
2) choose "render text as html" and make the text unselectable.
3) to assign a URL for this text with actionscript type
Code:
myTextFormat = new TextFormat();
myTextFormat.url = "[URL unfurl="true"]http://www.tek-tips.com";[/URL]
myTextField.setTextFormat(myTextFormat);
(for this exact code to work it would have to sit in the timeline that contains the texfield.)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.