3 Replies Latest reply on Sep 13, 2010 1:50 AM by quoc_thai

    Move text by Move effect.

    quoc_thai

      Hi all,

       

        I were created one lable with text is: "Welcome to Viet Nam". Now, I want to make text move from right to left slowly !

       

        I have used Move effect to do this. But text move very fast. How I can make it move slowly from right to left.

       

        I have used Flex 3.

       

      <mx:Canvas

      xmlns:mx="http://www.adobe.com/2006/mxml" xmlns:component="component.*" creationComplete="init()" > 

        

           public function init(value:Number):void{

                moveImage();

       

           }

           private

      function moveImage():void {

       

                myMove.end();

                myMove.xTo = moveStep;

                myMove.play();

          }

       

           <mx:Move

      id="myMove" target="{textScroll}"/>

           ...

       

       

       

       

           <mx:Label id="textScroll" text="Welcome to Viet Nam" width="100%"/>

       

      </mx: Canvas >

       

      Thanks.