Home Tutorials Forums Articles Blogs Movies Library Employment Press

Go Back   ActionScript.org Forums > ActionScript Forums Group > ActionScript 3.0

Reply
 
Thread Tools Rate Thread Display Modes
Old 05-31-2012, 08:12 PM   #1
sinyu
Registered User
 
Join Date: May 2012
Posts: 1
Default how to get the rotation degree?

Hi all,

I know I can rotate a movie clip by clip._rotation(number);

Right now I have a object keep rotating when the flash start, and I want to know how can I get the rotation degree of the object? For example, my object rotates 50 degree per second and I want to stop the rotation when the object has rotate a particular degree.

Thanks,
Daniel
sinyu is offline   Reply With Quote
Old 05-31-2012, 08:20 PM   #2
abeall
Senior Member
 
Join Date: Feb 2006
Location: Washington, DC
Posts: 2,684
Send a message via AIM to abeall
Default

The code example you posted is AS2, not AS3. Are you using AS2 or AS3?

As to your question, it seems you answered it yourself... you can get the rotation degree using the rotation property...
__________________
Aaron Beall | Flash portfolio | Fireworks extensions | Twitter
abeall is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 07:41 PM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.