hi!
anyone know of a way i can set a popup'd window (used the popupManager) to open at a certain location? right now it looks like it pops up at 0,0 - upper left corner - of my loaded (it's parent) movie. how can i set it to, say 200, 100?
here's my popup code:
any ideas?
thanks!
josh
anyone know of a way i can set a popup'd window (used the popupManager) to open at a certain location? right now it looks like it pops up at 0,0 - upper left corner - of my loaded (it's parent) movie. how can i set it to, say 200, 100?
here's my popup code:
Code:
function OpenPop1() {
var popUpWin = mx.managers.PopUpManager.createPopUp(_root, mx.containers.Window, false, {closeButton:true, title:"copyright 2005, Russell Perkins.", contentPath: _root.rppDataSet.image01});
sizerPop = new Object();
sizerPop.handleEvent = function(evtObj){
if(evtObj.type == "complete"){
popUpWin.setSize(popUpWin.content._width, popUpWin.content._height + 25);
}
}
close = new Object();
close.click = function(){
popUpWin.deletePopUp();
}
popUpWin.addEventListener("complete", sizerPop);
popUpWin.addEventListener("click", close);
}
any ideas?
thanks!
josh