flash as2: how to create a popup alert while having a hidden stage?

I've created a main swf application that loads other swf files to use their classes (using getUrl()). i would like that these swf files would output popup alert messages when errors occur without changing the main swf file. how can i do so ?

the external swf files that i load got a hidden stage which disallows me from viewing anything or seeing any message from them.

Using adobe flash, Action Script 2.


If your swf is embedded in an HTML page, you could try:

message = "This is my error message text";
getURL("javascript:alert('"+message+"')", '');

Need Your Help

XMLSocket "Failed to load policy file" error

flash xmlsocket

I am trying to use an XMLSocket.swf file, and it is not connecting. Do I need to open up a port on my server? I am trying to run this on a dedicated remote Windows 2008 server.

Web Development In Java Using Netbeans

java netbeans

I am trying to implement a web application(university project) in java using the following Frameworks