6강. 일차함수를 이용한 갤러리
scroll_mc.addEventListener(MouseEvent.MOUSE_DOWN, onStart); function onStart(e:MouseEvent):void{ // 움직일범위설정 x,y,x값끝 scroll_mc.startDrag(false,new Rectangle(30,70,440,0)); } stage.addEventListener(MouseEvent.MOUSE_UP, onStop); function onStop(e:MouseEvent):void{ scroll_mc.stopDrag(); } _mc.addEventListener(Event.ENTER_FRAME, onEnter); function onEnter(e:Event):void{ //스크롤 바가 30~440(a~b)까지 움직일때, 이..
Programming/ActionScript3.0
2011. 1. 13. 22:50