Skip to main content
Known Participant
June 21, 2006
Answered

Using on(release) to dynamic text

Hi -

I have a movie clip that acts like an Index (Table of Contents) of the site, where I am using a dynamic text area. I need to have the text area scrollable because the Index is a very long list. The challenge is that I need to link entries in the Index to SWFs in the overall application.

I know that html tags and getURL actions won't work.

If it was a button on the stage I would use something like -

on (release) {
navTo("Intro_1.swf");
}

and it would work great.

But the actionscript has to be attached to text in a scrolling text area...not a button.

How can I wrap text like this in Actionscript to make links to swfs??

TIA your help.

JL




This topic is closed to new replies. Start a new post to keep the conversation going.
kglad
kgladCorrect answer
Community Expert
June 21, 2006
if your links are in the textfield use the asfunction to call an actionscript function that executes your actionscript.

3 replies

kglad
Community Expert
Community Expert
June 22, 2006
you're welcome.
Translate
JLUCCAuthor
Known Participant
June 22, 2006
Bingo

Thanks

- as in:

<a href="asfunction:navTo,myPage.swf">Link to 'myPage.swf'</a>

...and beware of random spaces within the double qoutes.
Translate
kglad
Community Expert
kgladCommunity ExpertCorrect answer
Community Expert
June 21, 2006
if your links are in the textfield use the asfunction to call an actionscript function that executes your actionscript.
Translate