package com.riapriority.eventstests { import flash.display.Sprite; public class ParentSprite extends Sprite { public function ParentSprite() { super(); graphics.beginFill(0x666666); graphics.drawRoundRectComplex(0, 0, 400, 400, 10, 10, 10, 10); graphics.endFill(); var child:Sprite = new ChildSprite (); addChild(child); } } }