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

    how to get the label of parent container?

    manofspirit Level 1
      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.

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

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