I'm trying to create a move effect for a component at an arbitrary
point within a Canvas to a specific point in the middle of the canvas.
When I know the exact size of the Canvas, this is easy:

<mx:Effect>
<mx:Move xTo="300" yTo="0" duration="1000"/>
</mx:Effect>

When the Canvas is resizable, however, there's no way I can see to
make the destination the middle of the Canvas (much less the middle of
the Canvas - component.width / 2). The xTo attribute doesn't seem to
accept data binding expressions and it doesn't parse percentages. Is
it possible to create this effect using standard Effect objects (i.e.
without writing a custom effect)? Thanks for any advice or
information.

Alex
Carbon Five


Reply via email to