import flash.display.Sprite;
import mx.core.UIComponent;
private function addChildToPanel():void {
var circle:Sprite = new Sprite();
circle.graphics.beginFill(0xFFFF00);
circle.graphics.drawCircle(0, 20, 20);
var c:UIComponent = new UIComponent();
c.addChild(circle);
panel1.addChild(c);
}