Hello!
Now you can easily add your custom controls using action content property of Transform Tool. It will be placed into bounding group that is positioned always around tool with rotation 0, see red rectangle on picture below.
If you creates your custom transform tool skin make sure that skin part "boundingGroup" is defined. See example below. Press view source context menu to get source code.
SWC: Transform Tool 2 version 2.4.9.
Source code: Project home page.
ASDoc: API ASDoc.
Required Flex SDK version: SDK 4.5
Hi, This is fantastic work you have done, can you help me with how can add graphics of UIcomponent to transform tool like a line or ellipse. Thanks.
ReplyDeleteHi, the simplest way is to wrap graphic elements into UIComponent or Group, see example in my post
Deletehttp://vstyran-flex.blogspot.com/2012/02/transform-tool-graphic-shapes.html
Thank you.
ReplyDeleteHi Volodymyr,
ReplyDeleteCan you explain how add action content to CustomTransformTool (Text tool)?
I try do it, but the buttons not display.
Hi, it doesn't work because skin part "boundingGroup" is not defined in custom skin that you are using. You need to add <s:Group id="boundingGroup" visible="{!rotateControl.controlActivated}"/>
Deleteinto CustomTransformToolSkin.mxml after "previewCover" group.
Thank you! This work fine.
ReplyDelete