2 Replies Latest reply on Jan 22, 2010 1:58 AM by imranv10

    button over Circle



      I have created class called Bubble which extends UIComponent. Through this class I am drawing various circles at run-time.

      And I have added this class in my default mxml file through tags.

      One more tag added in mxml file is for button as well.

      Now, whenever I drag circle drawn by Bubble class to that button, it comes over the button. But I want  it under the button.

      How can I do that?

      Thanks for the help in advance.




        • 1. Re: button over Circle
          Gregory Lafrance Level 6

          Probably the drawing is performed after the MXML button is rendered.


          You could add the button in actionscript, after performing the drawing.


          Or perhaps you could add the circle as an MXML component, before the button tag.


          If this post answers your question or helps, please mark it as such.

          Greg Lafrance - Flex 2 and 3 ACE certified


          Flex / AIR Development, Training, and Support Services

          • 2. Re: button over Circle
            imranv10 Level 1

            Thanks Greg,

            But in my project circle is drawn run-time. I mean, it will be generated after button.

            And I have put customized class tag (which draws circle) before button tag.

            Is there any other way????