PDA

View Full Version : [MX] Can Dynamic text load a MC?



nivasgallo
April 4th, 2003, 02:08 PM
Hi

Ok, it is possible to create a hyperlink in a dynamic text box. But it is possible to load a Movieclip from this hyperlink, instead a web address?

nivas

kode
April 4th, 2003, 03:17 PM
First off, you'd need to define a function like this:
myLoadMovie = function(movie) {
myMovieClip.loadMovie(movie);
}
Then HTML enable the text field:
myTextField.html = true;
And to call the function use the asfunction protocol:
myTextField.htmlText = "<a href='asfunction:myLoadMovie,someMovie.swf'>myLoadMovie</a>";
Any questions? =)

nivasgallo
April 5th, 2003, 09:03 AM
Thanks

=)

Nivas

kode
April 5th, 2003, 12:19 PM
No problem, nivas. =)

zephn
April 12th, 2003, 10:06 AM
I got a question... where do I apply the last peice of script? in the .txt or in the actions layer in my movie?

λ
April 12th, 2003, 11:34 AM
The text field is html enabled, so i presume that text goes in the text box.

I mean you could put
the <a href: part in the text box and then it would work