isPopUp property for PopUpManager in Adobe Flex

1) I created the popup window of  treatmentPlan :

var treatPlanPopup:treatmentPlan ;

treatPlanPopup = PopUpManager.createPopUp(Application.application as DisplayObject, treatmentPlan,true) as treatmentPlan;
treatPlanPopup.isPopUp = true;

2) isPopUp property can be used in 2 ways:

  1. Prevent creation of multiple window of treatmentPlan by PopUpManager by setting the isPopUp property to true and check the value again on next creation
  • on creation of popup window object  treatPlanPopup is created and on close it does not get null value , but isPopUp value becomes false.
  • Till window is not closed , isPopUp value remains true
  • So next time before opening the treatmentPlan window by PopUpManager, if you check the value treatmentPlan.isPopUp, it comes false
  • if(treatPlanPopup !=null && treatPlanPopup.isPopUp)
    {return}//do not open the popup window
  • *********************************************************
  • Create an undraggable TitleWindow container by setting the isPpUp property to false on the TitleWindow instance.
  • Example on http://tiny.cc/v4axc

Advertisements
  1. #1 by Mao Hare on November 22, 2010 - 7:44 pm

    Greatly appreciated!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: