更新行動觸控事件程式碼如下:
按鈕1:Multitouch.inputMode = MultitouchInputMode.TOUCH_POINT;
button_1.addEventListener(TouchEvent.TOUCH_TAP, fl_TapHandler);
function fl_TapHandler(event:TouchEvent):void
{
button_1.gotoAndStop(2);
}
按鈕2:Multitouch.inputMode = MultitouchInputMode.TOUCH_POINT;
button_2.addEventListener(TouchEvent.TOUCH_TAP, fl_TapHandler_2);
function fl_TapHandler_2(event:TouchEvent):void
{
with(n_list){
button_2. gotoAndPlay(1);
}
}
看祂到底會不會動..^_^
沒有留言:
張貼留言