3 Replies Latest reply on Jul 2, 2010 12:36 AM by Aron manager

    Is it possible to call a function in <fx:script> from an Action Script coded behing class?

    Aron manager

      Hi,

       

      I would like to know if there's any posiblity to call a function written in a mxml from a Action Script class. This action script class is a the coded behind the mxml. For example:

       

      //MXML
      <forms:MyASClass>
           <fx:Script>
                public function Hello(): void 
                { 
                     ...
                }
           </fx:Script>
      </forms>
      
      //Action sccrip
      public class MyASClass
      {
           public function CallHello():void
           {
                this.Hello();
           }
      }
      

       

      Is there any possiblity to do this?

       

      Thanks in advance,

      Aron.