Oops, messed up my post. I meant to say thank you. Did not realize 'asfunction from AS2 has been replaced by simply 'event'. All I needed is the link: <a href="event:1"> and the following actionscript:
var linkText:TextField = TXT;
var linkNum:Number = Number(event.text)...
That definitely helps a lot, still learning. I'm actually using AS3 so I found this code:
var linkText:TextField = new TextField();
linkText.htmlText = 'Link: <a href="event:Link Clicked">Click</a>';
addChild(linkText);
linkText.addEventListener(TextEvent.LINK, linkEvent);
function...
I'm importing an XML document into flash and interpreting each XML node as HTML and loading it into a movieclip. I was not aware that my client wanted to create links within this text that would link to the same movieclip that the text is already loaded into. I thought perhaps this could be...
Ok, thanks for nothing. Your contribution is going to be a really useful thread on a Google search.
For anyone interested I ended up setting up a different frame for each date.
var dayWeek:Date = new Date();
var ournow:Number=dayWeek.getDay();
ournow+=1;
week.gotoAndStop(ournow)
var...
I am using the following code to highlight the correct day of the week by having 7 different frames with each day of the week highlighted in a movie clip called "week":
var my_date:Date = new Date();
var ournow:Number=my_date.getDay();
ournow+=1;
week.gotoAndStop(ournow)
I'd like to do the...
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.