_mc.onLoad = function (success) {
    if (success) {
        trace ("file loaded");
    } else {
        _global.fileExists = false;
    }
};
_gloabl.fileExists = true;
_mc.loadMovie (url);
// wait 250 ms and see whether the file has failed
var intId = setInterval (function () {
    if (_global.fileExists) {
        trace ("file exists");
    } else {
        trace ("no file");
    }
    clearInterval (intId);
}, 250);


This is not tested, but should work. The only penalty is the the time you
have to wait to be sure.

Yotam.
_______________________________________________
Flashcoders@chattyfig.figleaf.com
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

Reply via email to