3 Replies Latest reply on Feb 8, 2011 7:31 AM by Andrei Kouzmenkov

    Auto Execute a function on a panel automaticaly! Newb help

    pur3forlyphe

      Hi,

       

      I would like to automaticaly execute a function on a popup panel when the panel loads

       

      have tried

       

      panel

       

       

      <mx:Panel xmlns:mx="http://www.adobe.com/2006/mxml" initialize="initialised(event)" layout="absolute" title="Settings" width="300" height="400"  backgroundAlpha="0.8" backgroundColor="#FFFFFF" fontWeight="normal">
              <mx:Script>

       

      function

       

      private function initialised(event:FlexEvent):void {
                      loadJSON();
                  }  

       

      this does not seem to work though

       

      Thanks

       

      pur3forlyphe!