Window pop-up  
Author Message
Miguel Nabuco





PostPosted: 2005-2-3 5:43:16 Top

flash-actionscript, Window pop-up Hi. I want to create a pop-up showing a movieclip called "mcTest" whenever a
button instance named "btButton" is released. How can i do that using a window
component? I tried this code, but it doesn't work

import mx.containers.Window;
import mx.managers.PopUpManager;

btButton.onRelease = function():Void{
var cwMessage:MovieClip = PopUpManager.createPopUp(this,
mx.containers.Window, true, {contentPath: "mcTest", closeButton: true});
}

I have already set the mcTest to be exported for actioscript with the linkage
identifier "mcTest". Could anyone help me please?

Thank you all!




 
Miguel Nabuco





PostPosted: 2005-2-3 5:45:00 Top

flash-actionscript >> Window pop-up I forgot to tell you that by using that code, when i release the button, the window pops up, but showing no content. Thanks!