1 Reply Latest reply on Jun 9, 2010 10:20 PM by BhaskerChari

    Problem in contacting MXML from ActionScript class catch block

    kiran7881 Level 1

      When ever there is a exception inside the ActionScript class , i want to access the MXML TextInputId and dispplay an error Message on to it , but i am unable to succeed.

       

      This is the code i am using

      <mx:Application>

      <mx:TextInput id="MyTI"/>

      </mx:Application>


      Inside ActionScript class :

       

      catch(error:Error)
      {

      Application.application.MyTI.text="Error Submitting Data"
      }

      Need your suggestions to implement this .
      Thanks in advance