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);
}
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);
}