請有人能幫助我嗎?Actionscript3按鈕提示
我需要通過命令發送參數ad_mc:
ad_btn.addEventListener (MouseEvent.MOUSE_MOVE, MouseOver);
使用相同的功能,所有按鈕
function MouseOver(evt:MouseEvent):void{
ad_mc.gotoAndPlay("on");
}
function MouseOut(evt:MouseEvent):void{
ad_mc.gotoAndPlay("off");
}
ad_btn.addEventListener(MouseEvent.MOUSE_OUT, MouseOut);
ad_btn.addEventListener(MouseEvent.MOUSE_OVER, MouseOver);
如果我想送參數ad_btn我將使用:
MovieClip (evt.target). GotoAndPlay ("on");
但事實並非如此
我不明白這個問題,但是也許您對GotoAndPlay(「on」)的調用是問題所在?它應該是「gotoAndPlay(」on「),而不是GotoAndPlay(」on「)...祝你好運! – heavilyinvolved 2010-04-28 00:35:11