PDA

View Full Version : Window component popup, 1 instance ONLY!


VandenTR
09-12-2006, 09:42 PM
Greetings,

How would I go about insuring that one and only one instance of the popup window called from my button function is generated?

Best Regards,
TVB

btn_healthy.onPress = function() {
btnclick.start(0,1);
var indexWindow = PopUpManager.createPopUp(_root, Window, false,
{closeButton:true, title:"Healthy Blends..."});
indexWindow.setSize(200,200)
indexWindow._x=275;
indexWindow._y=115;

var iwListener:Object = new Object();
iwListener.click = function(evt:Object) {
evt.target.deletePopUp();
};
indexWindow.addEventListener("click", iwListener);
}

robotacon
09-23-2006, 10:45 AM
I would set the modal-value to true instead of false. That would be te easiest way imho.