Hi, You need to make seperate functions for drawRect and drawCircle which can take the parameters for drawing from the MouseUp and mousedown listeners. >From mouseup and MouseDown listeners you will try to take the X and Y cordinates of mouse Path while it is being draged.
Please refer to the graphics-geek.blogspot.com and search there Custom Flash graphics in Flex Componenets. It is 16 MB tutorial Mr Chet Hasse had given a tutorial on this. Regards Shabir Gilkar Kashmir On Mon, May 18, 2009 at 12:51 PM, shubhra <[email protected]> wrote: > > > I'm trying to make a small Flex3 app where the user can draw rectangles and > circles on a canvas. > I'm thinking that the user click a button "New Rectangle", the cursor > switch to a crosshair, the user draw a rectangle (that updates as user is > drawing), on mouse-up the rectangle is finished. > > Any code, ideas and help would be greatly appreciated. > > > -- With Regards Shabir Ahmad Gilkar Srinagar Kashmir J&K Voice: +91 9419942501 email: [email protected] Skype: shabirgilkar

