Select to view content in your preferred language

Problem with infoSymbol with states effect.

429
0
05-26-2010 11:53 AM
MikeLowe
Emerging Contributor
I'm using an infosymbol with states, following the sample on the resource center flex sample page. I'm using a Sequence effect with two children a Resize effect and an AddChildAction.

In the Sequence effect tag, I set listeners for the effectStart and the effectEnd events which disable and enable the rollOut event listener. Even still, the resize behaves sporadically.

Here are some snippets of my code:

<mx:Transition fromState="*" toState="*">
 <mx:Sequence targets="{[this, vCon]}"
  effectStart="effectStartHandler()" 
  effectEnd="effectEndHandler()">
  <mx:Resize target="{this}" duration="500" />
  <mx:AddChildAction/>
 </mx:Sequence>
</mx:Transition>


private function effectStartHandler():void{
    removeEventListener(MouseEvent.ROLL_OUT, rollOutHandler);                            
 }
      
   private function effectEndHandler():void{
           addEventListener(MouseEvent.ROLL_OUT, rollOutHandler);                            
  }


Any ideas of why this is still acting so strange?

Thanks
Tags (2)
0 Kudos
0 Replies