Hi All,

My requirement is having a popup with a title window in it. Now inside
this title window i have to invoke another popup. This one should be
added to the title window itself.
I am adding the new display object to the titleWindow, removing the
earlier one.
But this thing is not working. Can anyone please help me in this
regard.

Sample Code:
==========
var titleWindow:TitleWindow = new TitleWindow();
titleWindow.addChild(<some displayObject>);
titleWindow.addEventListener(FlexEvent.CREATION_COMPLETE,
function(event:Event):void{
     var target:UIComponent = event.target as UIComponent;
     var globalPt:Point = target.localToGlobal(new Point(0,0));
     titleWindow.visible = true;
     PopUpManager.centerPopUp(Application.application as
DisplayObject);
});
PopUpManager.addPopUp(titleWindow,
DisplayObject(Application.application), true);

-- 
You received this message because you are subscribed to the Google Groups "Flex 
India Community" group.
To post to this group, send email to flex_india@googlegroups.com.
To unsubscribe from this group, send email to 
flex_india+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/flex_india?hl=en.

Reply via email to