I have a problem. I've tried everything I can think of and what I have Googled, but nothing has helped. I have a scrolling dynamic text box and I need some words in that text box to link to frames, like buttons (Not a URL). This is the file and the frame I'm on is "conflictNorthernPlains" https://dl.dropbox.com/u/72608572/civilWarEra7.zip
Thanks
use htmlText and the textfield's link event:
var tf:TextField = new TextField();
addChild(tf);
tf.htmlText = "<a href='event:link 1 text'>link 1</a><br/>";
tf.htmlText += "<a href='event:link 2 text'>link 2</a><br/>";
tf.addEventListener(TextEvent.LINK, tfF);
function tfF(e:TextEvent):void{
trace(e.text);
}
use:
var tf:TextField = new TextField();
addChild(tf);
tf.htmlText = "<a href='event:frame1'>link to frame1</a><br/>";
tf.htmlText += "<a href='event:frame2'>link to frame2</a><br/>";
tf.addEventListener(TextEvent.LINK, tfF);
function tfF(e:TextEvent):void{
gotoAndStop(e.text);
}
p.s. please mark helpful/correct responses, if there are any.
North America
Europe, Middle East and Africa
Asia Pacific