Skip to main content
June 26, 2008
Question

converting rotatation value from flash into svg

  • June 26, 2008
  • 1 reply
  • 221 views
hi,
Advance thankx for helping me

Here i am taking the rotation value from flash and transfering into svg by the forumlae and getting varibale fdeg then also it is not coming in the position seen in flash window which is not in svg file.

And also check the formulae is right to convert the value from angle to degree.
/////////////////////////
dx = globalArray ._x;
dy = globalArray
._y;
var dist:Number = Math.sqrt(dx*dx+dy*dy);
var diam:Number = 2*arotate1;
fdeg = 57.3*diam/dist;

///////////////////////////////////////////

if We scale the object it comes in right scaled and right x and y position. only if We rotate the rotated object is in correct angle but not in correct x,y axis position


Regards,
R.Denesh Kumar
+919952018252
rdene2000@yahoo.com

This topic has been closed for replies.

1 reply

kglad
Community Expert
Community Expert
June 26, 2008
post as2 questions in the as1/as2 forum. and if you use code in a message avoid using [ i ] or your code will be difficult to read.