0 Replies Latest reply on Mar 1, 2011 2:33 AM by vanderhoffer

    flash builder - 101 - access the property of an  object in a component

    vanderhoffer

      hi all,
      very basic Q for flash builder -> air app ->

      |-mainapp.mxml
      |-components.master.mxml
      |-com.xlab.mca.mytest.as

      {not full code}
      in the mainapp.mxml

      xmlns:xtra="components.*
      <xtra:master>
      </xtra:master>

      in master.mxml I have a text input field 
      <s:TextInput x="106" y="72" id="textinput1"/>
      from an onclick I am calling an AS3 component
      import com.xlab.mca.mytest; //THIS WORKS FINE


      in the component mytest.as I have to get the value of the textinput
      var ttt:String;
      ttt = escape(FlexGlobals.topLevelApplication.textinput0.text);

      if I have the textinput in the mainapp.mxml it works fine,
      but how do I access the property if it is in a component.*

      thx
      Art