I have the following code to load an external SWF file.. I want to create a progress bar for the file being loaded, but cannot seem to get the listener to work correctly.. and yes, I would like to keep this all on the _root level if possible.
loadMovie("game.swf", _root);
myLoaderListener = new Object();
myLoaderListener.complete = function(eventObject) {
trace("loaded");
};
_root.addEventListener("complete", myLoaderListener);
loadMovie("game.swf", _root);
myLoaderListener = new Object();
myLoaderListener.complete = function(eventObject) {
trace("loaded");
};
_root.addEventListener("complete", myLoaderListener);