Copied over the Starling MovieClip class. Using Debug.Assert instead of throwing exceptions because loom doesn't have exceptions