0 Replies Latest reply on Jul 5, 2007 1:44 PM by fuzzarooO

    MXML Validator valid method dispatches a custom method

    fuzzarooO Level 1
      Hi guys, i got 3 levels

      Main App
      -Component A
      --Component B

      in Component B, i have a validator attached to a a textInput. The 'valid' method has a call to this function:

      private function onStateChanged():void{
      var setState:String="switch";
      var myEventObj:stateChangedEvent = new stateChangedEvent("stateChanged", setState);
      dispatchEvent(myEventObj);
      };

      The function bubbles up to the main application but is automatically called on application initialization. Is there anyone to not make it do so on initialization?