6 Replies Latest reply on Jun 20, 2008 7:06 AM by flexBeginner2008

    Dinamically change element position

      I am a beginner on flex, so sorry if the issue seems obvious.
      I have a label and a button:
      <mx:Label x="10" y="9" text="This is my message text" id="myMessage"/>
      <mx:Button label="My Button" left="109" top="9" id="myButton" width="72"/>

      The text of the label changes dynamically from actionscript. How can I change the position of the button to always be AFTER the text of the label and not to intersect?

      Thank you