Use a boolean flag to track whether the LinkBar has already received its
first click (in which case play the move effect) or not. 

 

 private var clickedOnce:Boolean = false;

 private function handleClick(event:ItemClickEvent):void

 {

             if (!clickedOnce)

             {

                         //play the move effect, this is the first click

                         clickedOnce = true;

            }

            else

                        //no move effect - these are subsequent clicks 

 }

 

You can control when you want that specific effect to play by
controlling the value of the flag. 

 

________________________________

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Ric Aruffo
Sent: Friday, November 02, 2007 11:52 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] moving a LinkBar

 


I have a LinkBar that I need to move from the bottom of the screen to
the top of the screen when the user clicks on one of the items in the
LinkBar. Then once it gets to where it's going, disable the "move
effect" so that it doesn't get repeated when the user clicks another
item in the same LinkBar.

Thanks, 
Ric

 

Reply via email to