FORUMS: list search recent posts

360 degree 3d object rotation

COW Forums : Adobe Flash

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Robert Hoffman
360 degree 3d object rotation
on Oct 17, 2011 at 6:56:04 pm


I would like to take a 30 second movie loop of a 3d object I created and have it rotate as the viewer scrubs their mouse across the screen. I found a tutorial online which provides the action script for what I want to do however, when a I publish the movie the video just sits frozen and the mouse does nothing. Can someone look at this script and tell me what is missing, thanks!

var frameTo:Number=0;


function goTo(e:Event):void{


Return to posts index

demetri tashie
Re: 360 degree 3d object rotation
on Oct 17, 2011 at 8:29:20 pm

assuming 'cam' is the instance name of a MovieClip, then the reason it would not appear to work ( although I believe it still IS working) is that most of the Numbers you are generating that way for the variable 'frameTo' would be fractions, and you can't navigate to a frame with a fraction.

best to round ( up or down) the number generated before it is used as a number to naviage to.

try this line instead:


which rounds down that very number. If all else if fine, then it should work as expected

hope that helps

Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2018 All Rights Reserved