//預先載入"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"));
}