In your code, validateNow() would come right before you call drawStripe(), but... I'd use the structure and invalidation that's already built into Flex UIComponents:
<?xml version="1.0" encoding="utf-8"?> <mx:VBox xmlns:mx="http://www.adobe.com/2006/mxml" > <mx:Script> override protected function createChildren():void { super.createChildren(); addText; addText; addSpacer; addText; addSpacer; addText; } override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number) { super.updateDisplayList(unscaledWidth, unscaledHeight); var g:Graphics = this.graphics; g.beginFill(0x000000); g.drawRect( 0, 0, 5, height ); g.endFill(); } </mx:Script> </mx:VBox> On Fri, Oct 24, 2008 at 12:07 PM, tchredeemed <[EMAIL PROTECTED]> wrote: > grrr! same problem! > Let me give an example of what I am doing! > Keep in mind I am typing this very fast, and it most likely will have > spelling mistakes, but it should give you an idea! > > <?xml version="1.0" encoding="utf-8"?> > <mx:VBox > xmlns:mx="http://www.adobe.com/2006/mxml" > creationComplete="creationCompleteHandler();" > > > > <mx:Script> > > private function creationCompleteHandler():void { > addText; > addText; > addSpacer; > addText; > addSpacer; > addText; > > drawStripe(); > } > > private function drawStripe():void { > var g:Graphics = this.graphics; > g.beginFill(0x000000); > g.drawRect( 0, 0, 5, height ); > g.endFill(); > } > > </mx:Script> > > </mx:VBox> > > >