0 Replies Latest reply on May 8, 2007 11:25 AM by Tasos Christopoulos

    Component contents reinitialization

    Tasos Christopoulos
      Hello everybody,
      let us suppose we have the following component:
      <mx:Panel xmlns:mx=" http://www.adobe.com/2006/mxml" creationComplete="init()">
      <mx:Script>
      <![CDATA[
      private function init(){
      myInput.text = ""
      }
      ]]>
      </mx:Script>
      <mx:TextInput id="myInput"/>
      </mx:Panel>
      The first time we enter the component it emmits the creationComplete event. Is there a similar event emmitted the second time we enter the same component in order to clear any previous TextInput contents (possibly calling the same init() function)?

      Thank you