Link to swf from a Dynamic Text AS2 Flash
I want to make link from a dynamic text(in flash project) to an external swf i created(a gallery that is controlled by xml file). This is the code of first frame of my fla project:
url="edit";
loadVariablesNum(url + "_main.html",0);
_root.link=1;
function linkgal() {
loadMovieNum("gal_car.swf", 1);
}
stop();
and my html code for the text link is:
<font color="#438092"><u><a href="asfunction:linkgal">Photos</a></u></font>
Shouldnt that be working and load 开发者_JAVA技巧the gal_car.swf on top of the other swf? loadMovieNum works when i use it on buttons. Thank you.
For this to work as expected, the function you're calling needs to be in the same scope as the textfield that contains the link. Try moving the function into the 'pages' symbol and changing the code to target the document root:
function linkgal() {
_root.loadMovieNum("gal_car.swf", 1);
}
精彩评论