尝试制作导航到不同电影的菜单,但每次点击我都会收到此错误
点击后错误#2044:未处理的IOErrorEvent:。 text =错误#2124:加载的文件是未知类型。
进入空白屏幕。
mama_btn.addEventListener(MouseEvent.CLICK, NavigateMama);
function NavigateMama(event:MouseEvent):void
{
//Optional but often needed. Stop the sounds for this page
//before going to another page
SoundMixer.stopAll();
//To do navigation we need to call upon 2 Flash function libraries
var newdoc:URLRequest = new URLRequest("Mama.swf");
var loader:Loader = new Loader();
//This line loads the new page but it is invisible
loader.load(newdoc);
//We add the new page to the stage and now we have
//both old and new pages mixed up on the stage - UGLY!
stage.addChild(loader);
//Clear out the old page to make way for the new.
stage.removeChildAt(0);
}
我在我的智慧结束时,我从adobe网站上取下了这个。任何人都有答案让它成功吗?