2014-02-05 61 views
0

任何人都可以幫我找出爲什麼這不會加載在我的SWF?我沒有收到任何錯誤。loadClip as2不加載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); 

回答

0

我可以看到在你的代碼中的問題的唯一的事情是,你要加載的URL的SWF應雙引號包圍:

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