0 Replies Latest reply on Apr 12, 2008 1:45 AM by jlopes151

    Accessing an object in one component from another component

    jlopes151 Level 1
      So I have an application that contians a component that contians a VBox which it self contains a Text component.

      Here's the code
      "The Application FlexHdrSample.mxml"
      <?xml version="1.0" encoding="utf-8"?>
      <mx:Application xmlns:mx=" http://www.adobe.com/2006/mxml" layout="absolute" xmlns:ns1="*">

      <!-- I want to set the Text in the header with some message -->
      <ns1:FlexHdrSampleHdr x="286" y="94" height="103" />

      </mx:Application>

      "The component FlexHdrSampleHdr.mxml"
      <?xml version="1.0" encoding="utf-8"?>
      <mx:VBox xmlns:mx=" http://www.adobe.com/2006/mxml" width="400" height="300">
      <mx:Text text="Some Message Below" />
      <mx:Text id="message" />
      </mx:VBox>