發新話題

[問題] new movieclip

new movieclip

小弟剛學AS沒多久,想問各位大大,我永遠只能控制第一個複制出來的物件 後面都沒辦法控制,我該怎麼做? 我不只要移動我還要可以放大縮小! 該怎麼做?
var mymovie :movieclip; new_btn.addEventListener(MouseEvent.CLICK,newmovie);
function newmovie (e:MouseEvent):void
{  
mymovie = new movieclip();   
mymovie .x = 100;   
mymovie .y = 100;  
mymovie .height =200 ;
mymovie .width =200;
mymovie.addEventListener(MouseEvent.MOUSE_DOWN,moviestar);
mymovie.addEventListener(MouseEvent.MOUSE_UP,moviestop);
addChild( mymovie );
}
function moviestar(e:MouseEvent):void
{
mymovie.startDrag();
}
function moviestop(e:MouseEvent):void
{
mymovie.stopDrag();
}

TOP

發新話題

本站所有圖文均屬網友發表,僅代表作者的觀點與本站無關,如有侵權請通知版主會盡快刪除。