loadClip as2没有加载swf

时间:2014-02-05 20:04:38

标签: flash actionscript-2 moviecliploader

任何人都可以帮我弄清楚为什么这不会加载到我的瑞士法郎?我没有错误。

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

1 个答案:

答案 0 :(得分:0)

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

my_mcl.loadClip("B.swf", container_mc);