You can create a global public variable Boolean that you set to true
when the window is open and set to false when it closeed.

var public isPoppedOpen : Boolean = false;

Then when a user clicks the button, set it to true.
Have logic in your window pop method that checks if this value is
true, if so, then do nothing.

Then in the close button of the PopUp Window, set the variable back to
false;

--- In [email protected], Antoine Malpel <[EMAIL PROTECTED]> wrote:
>
> I use a lot of PopUpManager.createPopUp( ....) in order to avoid
> "background" interface's buttons etc.. this works well ! the use can
> only interact with the PopUp-ed object...
>
> But I noticed that when a user click a second time on the same button
> well... the popup is created two times ...
> I tried to use, like shown on Flex Explorer Example :
>
> this is called just because calling createPopUp :
>
>         function setBlockingCursor() {
>             // Create an "empty" UIObject popup that blocks user input
>             inputBlocker = popupWindow(UIObject);
>             CursorManager.setBusyCursor();
>         }
>
> then with the popup-ed creationcomplete event :
>
>         function removeBlockingCursor() {
>             // Remove our blocking popup
>             inputBlocker.deletePopUp();
>             CursorManager.removeBusyCursor();
>         }
>
> so I got the cursor but the user still can double click on the
button ...
>
> Any go way to avoid this ?
>
> I also do not understand how I can 'place' the popUp as my application
> is centered on the window browser  ... so using .x = 0 from the
popup it
> will appear at left when someOtherCanvasInApplication.x = 0 but it
> rights (relative to its parent)
>






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




Reply via email to