Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 02-01-2006, 11:35 PM   #1
juworld
Registered User
 
Join Date: Mar 2005
Posts: 44
Default finding the rotation?

I am trying to find rotation to an element object. I found rotation attributes for text object but it only returns true or false. Is there any way I can find the numeric representation of rotation?

Thanks in advance

Justin
juworld is offline   Reply With Quote
Old 02-02-2006, 06:09 PM   #2
hangalot
lala
 
hangalot's Avatar
 
Join Date: Feb 2002
Location: on the road
Posts: 2,858
Default

i would imagine its in the matrix object associated with that shape
__________________
oi poloi
http://www.memorphic.com/news/
hangalot is offline   Reply With Quote
Old 02-03-2006, 06:26 PM   #3
juworld
Registered User
 
Join Date: Mar 2005
Posts: 44
Default

Hey, thanks for replying!

I've been looking into the text object and I can't figure out how to get the Matrix Object from the Text Object.

Please advise,

Thanks,

Justin
juworld is offline   Reply With Quote
Old 02-03-2006, 11:47 PM   #4
juworld
Registered User
 
Join Date: Mar 2005
Posts: 44
Default

K, i figured it out!

I guess text object is also an element object. So you can get the matrix by simply calling textObj.matrix.

Once you got the matrix, you can figure out the rotation.

var rotationInDegree = (Math.acos(mat.a) * 180 / Math.PI)

Justin
juworld is offline   Reply With Quote
Old 02-04-2006, 02:41 PM   #5
hangalot
lala
 
hangalot's Avatar
 
Join Date: Feb 2002
Location: on the road
Posts: 2,858
Default

yeah it extends element
__________________
oi poloi
http://www.memorphic.com/news/
hangalot 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 Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
object rotation with mouse movement paolino ActionScript 2.0 6 11-21-2008 01:42 PM
Hour hand movement based on senocular code voltron ActionScript 1.0 (and below) 5 06-23-2005 01:16 PM
Sync Rotation with Sound Clip Meista101 ActionScript 2.0 1 09-29-2004 12:52 PM
3 d rotation SeanPaul72 ActionScript 1.0 (and below) 6 02-18-2003 12:40 AM
help with rotation image....Please.... boyzdynasty ActionScript 1.0 (and below) 2 12-21-2002 05:02 AM


All times are GMT. The time now is 02:15 AM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, 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.