Exactly what I needed. Thank you!

On Aug 5, 8:19 pm, Preetham Hegde <[email protected]> wrote:
> Hi Richard,
>
> It can be done using move effect tag,
> Here is a example
>
> *    <mx:Script>
>         <![CDATA[
>
>             public function moveCanvas():void{
>                     moveEffect.end();
>                     moveEffect.xTo = (canvas.x)+ 100;
>                     moveEffect.play();
>             }
>
>         ]]>
>     </mx:Script>
>
>     <mx:Move id="moveEffect" target="{canvas}"/>
>
>     <mx:Canvas id="canvas" x="10" y="117" width="331"
>         height="320" backgroundColor="#590505" backgroundAlpha="1.0">
>
>         <mx:Button x="233" y="288" label="MoveRight" click="moveCanvas()"/>
>
>     </mx:Canvas>*
>
> On Thu, Aug 6, 2009 at 3:10 AM, Richard <[email protected]>wrote:
>
>
>
> > I have a few canvas layered on each other, and one has a button
> > inside. On the button click I want the canvas it's in to move a set
> > amount of pixels. can anyone help?
> > Thanks in advance!
>
> --
> Regards,
> Preetham Hegde
>
> _______________________________________________
> But surely for everything you love you have to pay some price.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Flex 
India Community" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/flex_india?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to