21Mar/084
Flex component transformation with ObjectHandles
Rogue Development's ObjectHandles is a great component. It is simple to use and provides all of the functionality that I was looking for in a transformation modifier. Prior to implementing this, I was using the TransformTool from senocular.com's library. This is also a great utility, but it wants to scale my content, and that was a deal breaker in my current project. ObjectHandles does NOT resize the child components. There are use cases for both approaches, but ObjectHandles allows me to decide when to scale.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | <?xml version="1.0" encoding="utf-8"?> <objectHandles xmlns="com.roguedevelopment.objecthandles.*" xmlns:mx="http://www.adobe.com/2006/mxml" allowRotate="false" objectMovedEvent="objectUpdatedHandler( event )" width="{image.width}" height="{image.height}" > <mx:Script> <![CDATA[ import com.roguedevelopment.objecthandles.ObjectHandlesMouseCursors; public static const CHANGE:String = "imageBoxChanged"; private function objectUpdatedHandler( event:Event ):void { dispatchEvent( new Event( CHANGE, true ) ); } ]]> </mx:Script> <mx:Image id="image" source="@Embed(source='/assets/cower.png')" /> </objectHandles> |

The Flex component transformation with ObjectHandles by Joel Hooks, unless otherwise expressly stated, is licensed under a Creative Commons Attribution 3.0 United States License.
-
Joel
-
Blaight
-
Blaight
-
Marc Hughes















