呼ã³å‡ºã—å…ƒã«æŒ‡å®šã—ãŸDisplayObjectãŒã¤ã„ã¦ã„ãªã„å ´åˆã«èµ·ã“る。
発生例
var sp:Sprite = new Sprite(); var sh:Shape = new Shape(); sh.graphics.beginFill(0xFF0000); sh.graphics.drawRect(0, 0, 100, 100); sh.graphics.endFill(); addChild(sh); sp.removeChild(sh);
shã¯stageã«addChildã•れã¦ã„ã‚‹ãŒã€spã«addChildã•れã¦ã„ã‚‹ã‚‚ã®ã¨å‹˜é•ã„ã—ã¦removeChildã—よã†ã¨ã—ãŸã€‚
