Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/linq/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Flash 加载夹as2未加载swf_Flash_Actionscript 2_Moviecliploader - Fatal编程技术网

Flash 加载夹as2未加载swf

Flash 加载夹as2未加载swf,flash,actionscript-2,moviecliploader,Flash,Actionscript 2,Moviecliploader,有人能帮我弄清楚为什么这个不会加载到我的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 s

有人能帮我弄清楚为什么这个不会加载到我的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);

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

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