I sounds like you might be having issues with where you added the TransformTool
as a child. Try adding the TransformTool as a child of the application and see
if that helps. If you are still having problems you could email me or post your
code and then I could take look at it.
Here is an example of how I used it this tool before. All of this code was
right in a script tag on the main mxml file.
private var transformTool:TransformTool;
private function imageClickHandler(event:MouseEvent):void
if (!transformTool)
{
transformTool = new TransformTool();
addChild(transformTool);
}
transformTool.target = event.currentTarget as DisplayObject;
}
--- In [email protected], "flexaustin" <flexaus...@...> wrote:
>
> Robert, have you used the transformtool in a flex app before? When I try to
> add it via tool.target = mySprite and myOtherSprite.addChild(tool).
>
> It puts the tool on screen but its so small I can barely see it. If I try to
> set the w or h it stays the same size; tiny. Also when the tool is put on
> screen its about 200 pixels away on the x-axis.
>
> Jason
>
>
>
>
>
> --- In [email protected], "ag_rcuren" <robert.vancuren.jr@> wrote:
> >
> > ObjectHandles is ok but they do not handle rotation very well. Have a look
> > at this
> >
> > http://www.sephiroth.it/weblog/archives/2007/07/transformtool_modification.php
> >
> > --- In [email protected], Fotis Chatzinikos <fotis.chatzinikos@>
> > wrote:
> > >
> > > Google ObjectHandles ;-)
> > >
> > > On Thu, Sep 17, 2009 at 5:06 PM, flexaustin <flexaustin@> wrote:
> > >
> > > >
> > > >
> > > > Anyone ever create or see a tut/example on how to create resize/skew
> > > > handles on Sprites or UIComponents?
> > > >
> > > > Say you click a Sprite on screen, the sprite would should show a
> > > > bounding
> > > > box, similar to Flash, Photoshop, Visio or Firefox, which allow you to
> > > > make
> > > > the clicked Sprite wider, thinner, skew, or rotate the Sprite.
> > > >
> > > > TIA, J
> > > >
> > > >
> > > >
> > >
> > >
> > >
> > > --
> > > Fotis Chatzinikos, Ph.D.
> > > Founder,
> > > Phinnovation
> > > Fotis.Chatzinikos@,
> > >
> >
>