hi
please refer the link below, u may get useful;

http://blog.flexexamples.com/2007/08/20/creating-custom-dialog-boxes-using-the-popupmanager-and-titlewindow-classes/



markgoldin_2000 wrote:
> 
> I am trying to create a generic showpoppup function:
> public function showPopupWindow(parent:DisplayObject, 
> WhatToShow:String):void
> {
> var helpWindow:TitleWindow =
> TitleWindow(PopUpManager.createPopUp(parent, WhatToShow, true));
> PopUpManager.centerPopUp(helpWindow);
> }     
> 
> But WhatToShow is a string and not taken by PopUpManager.createPopUp.
> How can I specify a class to show?
> 
> Thanks
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Generic-showPopupWindow-function-tp15236288p15240076.html
Sent from the FlexCoders mailing list archive at Nabble.com.

Reply via email to