360 Degree View


/ Published in: ActionScript 3
Save to your folder(s)

Have fun with flash as 3.0. Don't forget to show me the result.


Copy this code and paste it in your HTML
  1. cam.stop();
  2.  
  3. var frameTo:Number=0;
  4.  
  5. addEventListener(Event.ENTER_FRAME,goTo);
  6.  
  7. function goTo(e:Event):void{
  8.  
  9. frameTo=int(mouseX/stage.stageWidth*cam.totalFrames)+1;
  10.  
  11. cam.gotoAndStop(frameTo)
  12.  
  13. }

URL: http://www.onenterflash.com/2008/09/oef-flash-cs3-tutorials-360-view.html

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.