gives you null. Thats because your component's children are created using deferred instantiation. If you want to force the component to create its children do:
check out this guys resizable panel: http://www.aboutflex.net/flex/resizable-panel/
Its pretty cool, but it won't work if you try to add the panel inside another component. Thats because handleScale directly references the stage to get the mouse coordinates. But if your component does not start at x=0 y=0 then the cordinates will be off.
here is the modified version which uses the parents mouseX,mouseY in handleScale:
public class ResizablePanel extends Panel { public function ResizablePanel() { super(); resizer.addEventListener(MouseEvent.MOUSE_DOWN,handleDown) } private var resizer:Button=new Button();
override protected function createChildren():void{ this.resizer.width=12; this.resizer.height=12;