/ Published in: ActionScript 3
Have fun with flash as 3.0. Don't forget to show me the result.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
cam.stop(); var frameTo:Number=0; addEventListener(Event.ENTER_FRAME,goTo); function goTo(e:Event):void{ frameTo=int(mouseX/stage.stageWidth*cam.totalFrames)+1; cam.gotoAndStop(frameTo) }
URL: http://www.onenterflash.com/2008/09/oef-flash-cs3-tutorials-360-view.html