flex3 - flex 3 component using x y as center, not topleft -


How do I extend components such as buttons to use the X and Y values ​​as the center of the component? / P>

This is very easy in Flex 4 :). They have a transformroundround method in the UICom ponents, so that you can change the position / scale / rotation of a component around any arbitrary axis. You can do this:

   Override public function set X (value: number): zero {var smoke: vector 3D = new vector 3D (this. Width / 2, light light / 2, 0); Var Translation: Vector 3D = new vector 3D (value, this, yes, it); Consequently approx (spindle, zero / * scale vector * /, empty / * rotation vector * /, translation); }   

You can customize / optimize it, but that's it :).

If you are using Flex 3, then I see how they did it. It's very hardcore, lots of matrix / matrix 3D accessories.


Comments

Popular posts from this blog

asp.net - Javascript/DOM Why is does my form not support submit()? -

sockets - Delphi: TTcpServer, connection reset when reading -

javascript - Classic ASP "ExecuteGlobal" statement acting differently on two servers -