Question : Popupmanager.CreatePopup headache

I just copied this from the help file in Flash (into the action screen in frame 1) added a button "test_btn"  

lo = new Object();
lo.click = function(){
   mx.managers.PopUpManager.createPopUp(_root, mx.containers.Window, true);
}
test_btn.addEventListener("click", lo);

Why doesn't this work (no error but no popup either) ?

Again I'm a noob in flash so explain as if you where talking to a 5 year old :-)

Answer : Popupmanager.CreatePopup headache

Oh...  If that's the case, open up the Component panel from the Windows -- Development Panels -- Components...
Find the one that says UI Components and open it up and search for Window which should be the very last item...
Drag it to the stage... and you should see a 100x100 box on the stage...
Make sure that it is selected and press Delete key to remove it from the stage...
You now have the Window component in your library by doing so...

Run the code one more time and you should be able to see the popup...

CyanBlue
Random Solutions  
 
programming4us programming4us