On Jan 5, 2006, at 4:26 PM, Johannes Nel wrote:

has anybody have any idea of how to handle asynchranous exception handeling
in flash?

You need to do something more like this:

function handleXmlLoad(success:Boolean)
{
        if (success) {
                trace("Load successful.");
        } else {
                trace("Load NOT successful.");
                //var error =  new CustomError();
        }
}
function meth2()
{
        var x:XML = new XML();
        //
        x.ignoreWhite = true;
        x.onLoad = mx.utils.Delegate.create(this, handleXmlLoad);
        x.load("somefile.xml");
}
meth2();


blue skies,
bryan
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to