Use the following code....
instead of this use Application.application which is a
pointer to the application and give the
xmlns:ns="MyWindows.*" where ever u call it in mxml;
private function showWindow() :void {
var login:SimpleTitleWi ndowExample= SimpleTitleWindo
wExample(
PopUpManager. createPopUp( Application.application as
DisplayObject, SimpleTitleWindowEx ample , true));
point1.x=myButton. x;
point1.y=myButton. y;
point1=myButton. localToGlobal( point1);
login.x=point1. x+25;
login.y=point1. y+25;
login.loginName= returnedName;
}
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com