0

谁能帮我弄清楚为什么这不会加载到我的 swf 中?我没有错误。

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);
4

1 回答 1

0

我能看到的唯一问题是您的代码中的一个问题是您要加载的 SWF 的 URL 应该用双引号括起来:

my_mcl.loadClip("B.swf", container_mc);
于 2014-02-18T10:28:10.097 回答