How can change selected shapes outline and fill color,style properties using AS3

Hi,
I am developing a Drawing application, in this application we can draw shapes (circle, rectangle, roundrectangle and line).
after drawing shape, these shapes can be selectable. we can move and scale these shape
my problem is How can dynamically change the selected shapes line color and fill color using AS3?
also how can change the style and thikness of border and fill?

i have searched it to google and also in this forum but there i didnot get any correct direction.

please give me a good direction.