i working on a movie clip which contains a hyperlink text. When i click on the hypelink text, it should load a movie contains the description of the text. So, what should i do to make it happen?? i have tried to use the "<a href></a> to do that but is not working. And, how i going to check which description should be loaded?? i hope maybe someone can help me up. thanks.
If you are using hyperlink, on the “URL link” field, enter this:[AS]asfunction:launchMovie,site.swf[/AS]Replace site.swf with the swf you want to load.
Now on your timeline, place the following:[AS]function launchMovie(clip) {
this.createEmptyMovieClip(“container_mc”,100);
container_mc.loadMovie(clip);
}[/AS]
This can be done using one of the undocumented AS Commands the ASFunction. This allows you to call functions directly from an html enabled textfield.
To do this, create a dynamic textfield which is html enabled and give it an instance name:
//I named my my dynamic textfield as tf...
tf.html = true;
tf.htmlText = "<a href='asfunction:loadSWF, swfToLoad.swf'>Click to load file!</a>";
//swfToLoad.swf should be the file you intend to load
//and loadSWF should be the function the will load it for you
//Set your load function
loadSWF = function(swfFileName){
loadMovieNum(swfFileName, 1);
}
//Here the swfFileName argument will be replaced by the one
//you specified at the html link...
Good luck!
Thanks for helping me!! I’m very appreciate it and finally i solved my problem. Arigataou gozaimasita!! (Thank you very much)