Consider the following:
var mySprite:Sprite= new Sprite();
addChild(mySprite);
trace(mySprite.graphics == null);
//traces false
mySprite.graphics.beginFill(0x0000FF);
mySprite.graphics.drawRect(0,0,100,100);
mySprite.graphics.endFill();
trace(mySprite.graphics == null);
//traces false
mySprite.graphics.clear();
trace(mySprite.graphics ==null);
//traces false
the line of “mySprite.graphics==null” always proves false. So is there a way to determine if a Sprite has had something drawn (i.e. a line or a fill) in it.