Posted By

winlwin on 03/09/10


Tagged

as flash 30 360 Degree


Versions (?)

360 Degree View


 / Published in: ActionScript 3
 

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

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

  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. }

Report this snippet  

You need to login to post a comment.