23 Replies Latest reply on Sep 18, 2008 7:29 PM by Ansury

    how to get the label of parent container?

    manofspirit Level 1
      Hi
      I have a Canvas, Its label is "News".
      I added a text control in it and i want to set its text dynamically from the canvas label.
      But i dont know how to access the label of the Canvas "without" using the id of the canvas.
      like

      <mx:Canvas label="News">
      <mx:Text text="{parent.label}"/>
      </mx:Canvas>

      Please guide me to achieve the above thing.
      Thanks in advance