Hello,
I started using the TransformManager today and it is mostly working exactly how it should be.
There is however one thing that behaves oddly: the bounds property of a TransformItem.
Short example:
Stage with one MovieClip named 'rect_mc'
var mgr:TransformManager = new TransformManager({
bounds: new Rectangle(0, 0, 550, 400)
});
var item:TransformItem = mgr.addItem(rect_mc);
item.bounds = new Rectangle(0, 0, 200, 200);
I would expect rect_mc to move only inside the item.bounds box, but actually I can drag it all over the mgr.bounds box.
When I drag rect_mc outside the mgr.bounds, it will suddenly get restricted to the item.bounds.
I tried to set the mgr.bounds to (0,0,0,0) but then sometimes rect_mc behaved strangly (thinking it should fit in those bounds).
Am I doing something wrong or should I implement the bounds differently?
(I compile with Flash CS4 using AS3)
Thanks in advance