在一个flash里面做了若干个按钮,鼠标事件点击一次后播放一个组件,但是目前每点击其中一个按钮,触发一个组件的播放而后这个组件播放完毕,可以任意点击其他的组件进行播放,但惟独他自己却不能重复点击播放,不知为何,请大神指教,代码如下,拜谢。
stop();
var myLoader:Loader=new Loader();
zandian.addEventListener(MouseEvent.CLICK,pagelcontent);
function pagelcontent(myevent:MouseEvent):void{
var myURL:URLRequest=new URLRequest("gaotie-02.swf");
myLoader.load(myURL);
addChild(myLoader);
};
myLoader.addEventListener(MouseEvent.CLICK,unloadcontent);
function unloadcontent(myevent:MouseEvent):void{
removeChild(myLoader);
};
movanniu01.addEventListener(MouseEvent.CLICK,showmov01);
function showmov01(event:MouseEvent):void {
gotoAndStop("redchair");
}
movanniu02.addEventListener(MouseEvent.CLICK,showmov02);
function showmov02(event:MouseEvent):void {
gotoAndStop("lansecanzuo");
}
movanniu03.addEventListener(MouseEvent.CLICK,showmov03);
function showmov03(event:MouseEvent):void {
gotoAndStop("bluechair");
}
wendu.addEventListener(MouseEvent.CLICK,showmov04);
function showmov04(event:MouseEvent):void {
gotoAndStop("wendu");
}
zaosheng.addEventListener(MouseEvent.CLICK,showmov05);
function showmov05(event:MouseEvent):void {
gotoAndStop("zaosheng");
}
wifi.addEventListener(MouseEvent.CLICK,showmov06);
function showmov06(event:MouseEvent):void {
gotoAndStop("wifi");
}
chuwu.addEventListener(MouseEvent.CLICK,showmov07);
function showmov07(event:MouseEvent):void {
gotoAndStop("chuwu");
}
tiegui.addEventListener(MouseEvent.CLICK,showmov08);
function showmov08(event:MouseEvent):void {
gotoAndStop("tiegui");
}
shengao.addEventListener(MouseEvent.CLICK,showmov09);
function showmov09(event:MouseEvent):void {
gotoAndStop("shengao");
}
huiyuandengji.addEventListener(MouseEvent.CLICK,showmov10);
function showmov10(event:MouseEvent):void {
gotoAndStop("huiyuandengji");
}
chengcejifen.addEventListener(MouseEvent.CLICK,showmov11);
function showmov11(event:MouseEvent):void {
gotoAndStop("chengcejifen");
}
jifenduihuan.addEventListener(MouseEvent.CLICK,showmov12);
function showmov12(event:MouseEvent):void {
gotoAndStop("jifenduihuan");
}
duijiangsourang.addEventListener(MouseEvent.CLICK,showmov13);
function showmov13(event:MouseEvent):void {
gotoAndStop("duijiangsourang");
}
diansi.addEventListener(MouseEvent.CLICK,showmov14);
function showmov14(event:MouseEvent):void {
gotoAndStop("diansi");
}
qiya.addEventListener(MouseEvent.CLICK,showmov15);
function showmov15(event:MouseEvent):void {
gotoAndStop("qiya");
}
stop();
var myLoader:Loader=new Loader();
zandian.addEventListener(MouseEvent.CLICK,pagelcontent);
function pagelcontent(myevent:MouseEvent):void{
var myURL:URLRequest=new URLRequest("gaotie-02.swf");
myLoader.load(myURL);
addChild(myLoader);
};
myLoader.addEventListener(MouseEvent.CLICK,unloadcontent);
function unloadcontent(myevent:MouseEvent):void{
removeChild(myLoader);
};
movanniu01.addEventListener(MouseEvent.CLICK,showmov01);
function showmov01(event:MouseEvent):void {
gotoAndStop("redchair");
}
movanniu02.addEventListener(MouseEvent.CLICK,showmov02);
function showmov02(event:MouseEvent):void {
gotoAndStop("lansecanzuo");
}
movanniu03.addEventListener(MouseEvent.CLICK,showmov03);
function showmov03(event:MouseEvent):void {
gotoAndStop("bluechair");
}
wendu.addEventListener(MouseEvent.CLICK,showmov04);
function showmov04(event:MouseEvent):void {
gotoAndStop("wendu");
}
zaosheng.addEventListener(MouseEvent.CLICK,showmov05);
function showmov05(event:MouseEvent):void {
gotoAndStop("zaosheng");
}
wifi.addEventListener(MouseEvent.CLICK,showmov06);
function showmov06(event:MouseEvent):void {
gotoAndStop("wifi");
}
chuwu.addEventListener(MouseEvent.CLICK,showmov07);
function showmov07(event:MouseEvent):void {
gotoAndStop("chuwu");
}
tiegui.addEventListener(MouseEvent.CLICK,showmov08);
function showmov08(event:MouseEvent):void {
gotoAndStop("tiegui");
}
shengao.addEventListener(MouseEvent.CLICK,showmov09);
function showmov09(event:MouseEvent):void {
gotoAndStop("shengao");
}
huiyuandengji.addEventListener(MouseEvent.CLICK,showmov10);
function showmov10(event:MouseEvent):void {
gotoAndStop("huiyuandengji");
}
chengcejifen.addEventListener(MouseEvent.CLICK,showmov11);
function showmov11(event:MouseEvent):void {
gotoAndStop("chengcejifen");
}
jifenduihuan.addEventListener(MouseEvent.CLICK,showmov12);
function showmov12(event:MouseEvent):void {
gotoAndStop("jifenduihuan");
}
duijiangsourang.addEventListener(MouseEvent.CLICK,showmov13);
function showmov13(event:MouseEvent):void {
gotoAndStop("duijiangsourang");
}
diansi.addEventListener(MouseEvent.CLICK,showmov14);
function showmov14(event:MouseEvent):void {
gotoAndStop("diansi");
}
qiya.addEventListener(MouseEvent.CLICK,showmov15);
function showmov15(event:MouseEvent):void {
gotoAndStop("qiya");
}