//箇更"about.swf" 祘Α絏 var dfSWF = new Loader(); dfSWF.y = 188; dfSWF.load(new URLRequest("about.swf")); addChild(dfSWF); // about_btn 碞更"about.swf" 祘Α絏 about_btn.addEventListener(MouseEvent.CLICK, fl_ClickToLoadUnloadSWF); var fl_Loader:Loader; function fl_ClickToLoadUnloadSWF(event:MouseEvent):void { fl_Loader = new Loader(); fl_Loader.y = 188; fl_Loader.load(new URLRequest("about.swf")); addChild(fl_Loader); } // location_btn 碞更"location.swf" 祘Α絏 location_btn.addEventListener(MouseEvent.CLICK, f2_ClickToLoadUnloadSWF); var f2_Loader:Loader; function f2_ClickToLoadUnloadSWF(event:MouseEvent):void { f2_Loader = new Loader(); f2_Loader.y = 188; f2_Loader.load(new URLRequest("location.swf")); addChild(f2_Loader); } // menu1_btn 碞更"menu1.swf" 祘Α絏 submenu_mc.menu1_btn.addEventListener(MouseEvent.CLICK, f3_ClickToLoadUnloadSWF); var f3_Loader:Loader; function f3_ClickToLoadUnloadSWF(event:MouseEvent):void { f3_Loader = new Loader(); f3_Loader.y = 188; f3_Loader.load(new URLRequest("menu1.swf")); addChild(f3_Loader); } // menu2_btn 碞更"menu2.swf" 祘Α絏 submenu_mc.menu2_btn.addEventListener(MouseEvent.CLICK, f4_ClickToLoadUnloadSWF); var f4_Loader:Loader; function f4_ClickToLoadUnloadSWF(event:MouseEvent):void { f4_Loader = new Loader(); f4_Loader.y = 188; f4_Loader.load(new URLRequest("menu2.swf")); addChild(f4_Loader); } // menu3_btn 碞更"menu3.swf" 祘Α絏 submenu_mc.menu3_btn.addEventListener(MouseEvent.CLICK, f5_ClickToLoadUnloadSWF); var f5_Loader:Loader; function f5_ClickToLoadUnloadSWF(event:MouseEvent):void { f5_Loader = new Loader(); f5_Loader.y = 188; f5_Loader.load(new URLRequest("menu3.swf")); addChild(f5_Loader); } //留旅Ω匡虫 (submenu_mc),  menu_btn 瞷 submenu_mc.visible = false; menu_btn.addEventListener(MouseEvent.CLICK, showMenu); function showMenu(event:MouseEvent):void { submenu_mc.visible = true; } // contact_btn 碞盚 email servise@flag.com.tw contact_btn.addEventListener(MouseEvent.CLICK, fl_ClickToGoToWebPage_3); function fl_ClickToGoToWebPage_3(event:MouseEvent):void { navigateToURL(new URLRequest("mailto:servise@flag.com.tw")); }