[flashpro] dynamic textfield as Window.contentPath
Taggart, Damian
DTaggart3 at tvi.edu
Fri Jan 14 17:02:18 EST 2005
Hi,
I'm trying to create an error handling mechanism for a project using this
function to create error messages for the user:
function error(errorID:String) {
errorWin = mx.managers.PopUpManager.createPopUp(_root,
mx.containers.Window, true, {title:"Error: "+errorID, closeButton:true,
contentPath:errorID, _x:300, _y:200});
errorWin.setSize(225, 125);
lo = new Object();
lo.click = function() {
errorWin.deletePopUp();
};
errorWin.addEventListener("click", lo);
errorWin.createTextField(errorID, this.getNextHighestDepth(), 5, 30,
300, 22);
this.errorID.text = "Your selection is already displayed.";
}
this function is called like this:
error("duplicateMenuSelection");
When I the function is called, the popup appears just fine, but the
textfield isn't populated and I get a 'Error opening URL
"file:///C|/Documents%20and%20Settings/user/Desktop/duplicateMenuSelection"'
message. Any thoughts on how to fix this? Any help is much appreciated,
Damian Taggart
More information about the FlashPro
mailing list