This may be a long shot but I've spent over a day at this so I thought I would ask.
I am using greensock's TransformManger v: 1.9669 in a Flex 4.6/AS project. The issue is that with an item selected, the TM "move" cursor appears outside the selection bounds, and it seems like there is a ghost shape or something the same size as the selection but offset from the center which is triggering it. There's a screenshot below to show what I mean.
I added the red rectangle in Photoshop to indicate the ghost area which is triggering the TM move cursor. This area is active and the selection can be moved by clicking and dragging within the red rectangle.
I've built a stripped down Flex project which shows this issue: exported .fxp (without the TransformManager lib, of course, since it is not free). I've tried every way from Tuesday to determine if this is my bug and am not seeing it. Is this a Flex bug, a TM bug? If anyone has experience with the TransformManager lib and can tell me what the issue is, there is some beer karma (or bounty points) in it...
The selected item is a Flex Spark group which loads an swf. It is pretty bare bones, so I am baffled as to where this ghost shape is coming from. I've stripped out the loader and other AS code below
<?xml version="1.0" encoding="utf-8"?>
<s:Group xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx"
width="5" height="5"
resize="resizeHandler(event)">
<s:SWFLoader id="eventBtn"
width="{this.width - 5}" height="{this.height - 5}"
x="{regX}" y="{regY}"
verticalAlign="middle" horizontalAlign="center"
complete="btn_completeHandler(event)" />
<s:Rect id="bitmapBorder"
x="{regX}" y="{regY}"
width="100%" height="100%"
visible="true">
<s:stroke>
<s:SolidColorStroke color="#ffffff" weight="2" />
</s:stroke>
</s:Rect>
</s:Group>
updateRegPoint
is called after the SWFLoader has finished loading an external .swf. It is meant to locate the registration points of the SWFoader
and the Spark Rect
to the center of the containing Spark Group
.
protected function updateRegPoint():void
{
regX = this.width * -.5;
regY = this.height * -.5;
}