Groups | Blog | Home
all groups > flash actionscript > october 2005 >

flash actionscript : move object upright


-D-
10/1/2005 9:20:24 PM
I would like to animate a graphic from a laying down position to an upright
(standing) position. So, when the object is in the starting position you
can't see it, but it becomes visible as it moves to an upright position and
then stops. Is there a way to do this using actionscript? If so, how?

Thanks for any help.
Regards,
-D-

kglad
10/2/2005 12:00:00 AM
it's not clear what you mean by "...laying down position to an upright
(standing) position".

if you mean you want to change an objects _rotation property, you can use:

rotateI=setInterval(rotateF,70,yourMC);
function rotateF(mc){
mc._rotation+=3;
if(mc._rotation>=90){
clearInterval(rotateI);
}
}
AddThis Social Bookmark Button