Hi All,
I observed that the creationComplete event of the compoent  is fired
everytime the state of the component is changed.

Ex:

<mx:Canvas
creationComplete= init() xmlns:mx="http://www.adobe.com/2006/mxml"; >

    <mx:Script>
   public function init(){
   // some action

   }
    </mx:Script>

<mx:states>
        <mx:State name="NormalState">
            <mx:AddChild >
                <mx:Panel>
     </mx:AddChild >

<mx:State name="rollOverState" basedOn="NormalState">
        <mx:AddChild position="lastChild" >
              <mx:Button  />
</mx:State>
</mx:states>

<mx:Canvas>

if i change the state of this  compoenet ... the creation complete gets
fired everytime
is there any work arround to avoid this ??

Regards
PS

Reply via email to