adding a sprite to 1 <s:State>
Posted
by lostincode
on Stack Overflow
See other posts from Stack Overflow
or by lostincode
Published on 2010-04-04T07:30:44Z
Indexed on
2010/04/04
7:53 UTC
Read the original article
Hit count: 318
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
© Stack Overflow or respective owner