8 Replies Latest reply on Jun 1, 2010 3:43 AM by BhaskerChari

    How to Access MXML components  from ActionScript class

    kiran7881 Level 1

      Hi ,


      I am having a Application Conataner , in which i am having a Form Container with some Label in it .

      This is some thing similar to this as shown :

       

      <Mx:Application>

      <Mx:Form>

      <Mx:Label text="Hello world"/>

      </Mx:Form>

      </Mx:Application>


      Can any body please let me know how can i access this Form's Label , from an ActionScript class .

       

      catch(error:*)
      {
      // Here i want to access these Objects and set data to that Label .

      }

       

      Basically My requirement is that iinside the catch block of my ActionScript class , i want to set some text to the Label , Please
      let me know if this is possible or not also ??

      Waiting for your Replies .