WHATGOESHERE == IFlexDisplayObject
You probably need to "import mx.core.IFlexDisplayObject" too ________________________________ From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Manolet Gmail Sent: Saturday, May 19, 2007 11:50 AM To: [email protected] Subject: [flexcoders] Component popup Hi! im just starting to learn flex! i was looking for solve this on google since yesterday but just cant found anything... i made a custom component (mxml file) with a login and password text field and a send button. now i want to do a function to show components like that on a popup and call the function like: <mx: button .... click="showWindow(login,true)" ... /> where login was the name of the mxml file. So i wrote somethink like that: <mx:Script> import mx.managers.PopUpManager; public function showWindow(component:WHATGOESHERE???,modal:Boolean):void { var popup = mx.managers.PopUpManager.addPopUp(component,this,modal); } </mx:Script> dont works, i tried with a lots of values for the WHATGOESHERE.... is there a way to make it work? can you please, please help me? thanks in advanced!

