PDA

View Full Version : Where does addChild come from?



rdyeddy
August 1st, 2009, 04:15 PM
Hi all,

I'm new to ActionScript 3 (had *some* experience with ActionScript 2) and I was just wondering where addChild comes from?

Is it pre-built in or does it com from importing Flash.display.Sprite (and if it is from Flash.display.Sprite, does it mean it gets imported whenever you display *any* subpackage of Flash.display?)

Krilnon
August 1st, 2009, 05:13 PM
It's a method of DisplayObjectContainer.