[Extendflash] Matrix Rotation and Custom Tool problems.
Chris Fourney
c-y-d at rogers.com
Mon May 15 08:35:27 BST 2006
It looks like its shrinking at about .1% every degree I rotate it. I guess I need to take this into account and have every rotation also check its height and width and keep these constant? What exactly does this age old flash bug do? Just shrink the object per rotation?
Any help on my rotation matrix function will also be greatly appreciated. It works as a command, but not as a function within a tool. Did I acidentally leave a counting variable that doesnt clear each time? I didnt see any. Is there an easier way to rotate a matrix around an arbitrary x,y point? without the const method? I need it to rotate in reference to its current position and not in reference to its original matrix identity position. But it also has to rotate while keeping its current scale and skew -- if you use the normal rotation matrix (cos, sin, -sin, cos), it sets the symbol back to its original scale -- it needs to maintain the scale and skew. And more than anything else, it needs to rotate at a certain point. Im using x1 = cosd*x - sind*x; y1 = sind*x + cosd *y (d is delta, the angle), but since Im using the contat method on the matrix to apply the transformation, I define this a little backwards. It seems this contat doesnt want to work within the tool.
Sadly, Im using MX 2004 -- and this tool needs to work for MX 2004, so I dont have the flash.geom.matrix or the flash.geom.transform class and I cant use them to rotate or transform the matrix (matrix.transform, matrix.rotate, ect).
-Thanks
-Chris
Wolfe <dave at ironwagon.com> wrote:
Chris Fourney wrote:
> Im trying to make a rotate tool that allows me to click on the end of
> the symbol and have the symbol rotate by following the mouse.
> I have all the proper clicking programming down, and it works
> perfectly. But when I have it find the angle of rotation based on the
> previous position, it rotates more or less fine, doesnt exactly follow
> the mouse as it moves, but the big problem is that as I rotate it
> around - the whole symbol begins to shrink the more I rotate it.
How much are they shrinking? There's an ages old Flash bug that symbols
will shrink a tiny bit after each rotation, I'm guessing that is
probably what's happening with your tool.
-Dave
_______________________________________________
Extendflash mailing list
Extendflash at flashguru.co.uk
http://lists.flashguru.co.uk/mailman/listinfo/extendflash
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.flashguru.co.uk/pipermail/extendflash/attachments/20060515/366fdd89/attachment.htm
More information about the Extendflash
mailing list