Saturday, February 11, 2012

Transform Tool - action content

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

6 comments:

  1. 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.

    ReplyDelete
    Replies
    1. Hi, the simplest way is to wrap graphic elements into UIComponent or Group, see example in my post
      http://vstyran-flex.blogspot.com/2012/02/transform-tool-graphic-shapes.html

      Delete
  2. Hi Volodymyr,
    Can you explain how add action content to CustomTransformTool (Text tool)?
    I try do it, but the buttons not display.

    ReplyDelete
    Replies
    1. 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}"/>
      into CustomTransformToolSkin.mxml after "previewCover" group.

      Delete