adding a sprite to 1 <s:State>
- by lostincode
I'm looking for a flex 4 compatible way of adding a sprite generated with graphics library to a skin.
If I generate the sprite like this:
private function drawShape():void {
theshape = new Sprite();
theshape.graphics.beginFill(0x666666);
theshape.graphics.drawCircle(3,5,10);
theshape.graphics.endFill();
}
What would be the best way to add it such that I can control its presence by state