What's the best event to listen for when a *specific* child of a ViewStack becomes active? I'd like to set some defaults on a specific child each time it becomes active (not just the first time, and not just when it is created) and can't seem to find the right combination. I'm using a fairly common pattern to change the viewstack...
private function getView(i:int): Container { if (i == VIEW_MAIN) { // can't fire event here, main doesn't exist yet! return main; } else { return login; } } <mx:ViewStack selectedChild="{ getView( viewState ) }" > <view:Login id="login" mysteryEventToListenFor="???"/> <view:Main id="main" /> </mx/ViewStack> Advice would be appreciated... Thanks! -Cameron -- Cameron Childress Sumo Consulting Inc http://www.sumoc.com --- cell: 678.637.5072 aim: cameroncf email: [EMAIL PROTECTED]