1 Reply Latest reply on Jun 18, 2009 5:07 PM by apmyhr

    Drawing geometrical objects

    kapil.rajak

      how can I draw a line or a rectangle or a circle?

       

      the problem is i'll be getting the parameters to draw the geometrical object from server and i need to draw the same.

       

      HELP!!

        • 1. Re: Drawing geometrical objects
          apmyhr

          For just about any UIComponent class, you can access its graphics object.  For example,

           

          this.graphics.drawRoundRect(x, y, width, height);

           

          This will draw a rectangle ontop of your component.  If you want to have this filled with a color, just remember to put this before it,

           

          this.graphics.beginFill(0x00AA00);

           

          If you need to do more, just check the graphics class API