8/3/2010 12:43:15 AM
Title:
Fill Color in Selected Portion
i need two control in canvas a lasso tool and a color filler where user select some portion by lasso tool and then fill color. plz help me.
8/3/2010 10:30:27 AM
this is how logic will go for creating a selection area and fill it with color
on mouseDown event of canvas store
startx
starty
and on mouseUp of canvas store end values
endx
endy
Now create a movieclip add it to child of canvas a use the graphics class to create rectangle with fill color
//set fill color
myMovieclip.graphics.beginFill(oxcccccc);
myMovieclip.graphics.drawRect(startx,starty,endx,endy);
myMovieclip.graphics.endFill();