can anyone help me figure out why this will not load in my swf? I'm getting no errors.
var my_mcl:MovieClipLoader = new MovieClipLoader();//Used to load the image
button1_mc.onPress = function()
{
my_mcl.loadClip(B.swf,container_mc);//loading a movie into a container movie clip (just an empty mc on the stage)
trace("a")
};
button2_mc.onPress = function()
{
my_mcl.loadClip(B.swf,container_mc);//loading a movie into a container movie clip (just an empty mc on the stage)
trace("b")
};
var mclListener:Object = new Object();
my_mcl.addListener(mclListener);
我唯一能看到的是代码中的问题,就是您要加载的SWF的URL应该用双引号引起来:
my_mcl.loadClip("B.swf", container_mc);
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.