Hello,
I want to load a .swf file into _level0, so that I can inherit its frame rate and other properties.
I am doing this with a wrapper .swf (so I can also set some variables on the loaded movie eventually).
However, I cannot seem to get the onLoadStart event to be called. onLoadInit is called fine, but onLoadStart is not. (And, I really need this to happen in onLoadStart so that I can set the variables before ANY of the loaded clip’s actionscript is executed.)
Code in Frame 1 of the movie:
var mc_loader = new MovieClipLoader();
var listener = new Object();
listener.onLoadStart = function (target) {
target._lockroot = true;
trace("EXECUTING onLoadStart");
};
mc_loader.addListener(listener);
mc_loader.loadClip("file:///c:/child.swf", "_level0");
Can anyone tell me how to do this properly? I have seen it done before, but I can’t seem to get it to work myself. I’m using Flash CS3, but publishing as Flash 8, AS2. (The child movies will all be AS2 or AS1.)
Do I need to do something special in the Publish settings? It seems like this should be a simple thing.
Thank you in advance!