Hi list...
I can't figure out why MovieClipLoader isn't working. In the authoring
environment, I get no error but it doesn't load, and in the browser, I
get urlNotFound error. I don't understand it as the two swfs sit next
to each other in the same folder. Any thoughts are appreciated.
Thanks,
- Michael M.
import flash.external.*;
_root.createEmptyMovieClip("ui", 1);
// define loader listener
var loadListener:Object = new Object();
loadListener.onLoadStart = function():Void {
// attach preloader bar when downloading begins
_root.attachMovie("loading", "loading", 1, {_x:574, _y:494});
_root.loading.progBar._width = 0;
};
loadListener.onLoadProgress = function(loaded:Number, total:Number):Void
{
notify(String("progress: " + loaded + " " + total));
_root.loading.progBar._width = Math.round(((loaded / total) *
100) * 3.5);
};
loadListener.onLoadError = function(target_mc:MovieClip,
errorCode:String, httpStatus:Number) {
notify(String("Errorer: " + errorCode + " " + httpStatus));
};
loadListener.onLoadComplete = function():Void {
notify("Errorer: done");
};
var ui:MovieClip = _root.ui;
var mcl:MovieClipLoader = new MovieClipLoader();
mcl.addListener(loadListener);
mcl.loadClip("ar07ui.swf", ui);
function notify(msg):Void {
if (ExternalInterface.available) {
ExternalInterface.call("errorer", msg);
}
}
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com