I think because if the file exists, you will have to wait till the file has
loaded completely before you know about it.

Adrian

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Andreas
Rønning
Sent: 17 March 2006 15:04
To: Flashcoders mailing list
Subject: Re: [Flashcoders] File Exists - a better way?


It stands to reason that if onLoad fires with success==false no file was
loaded anyway, so i don't see why you'd need a separate handler for
wether success is false NOW or success is false a little later.

onLoad(success){
if(success){
        //handle file load
}else{
        //handle error
}
}

I don't see the downside to this approach. Then again, i'm tired and
angry, so i might miss something.

- A

Yotam Laufer wrote:
> If onload fires immediately with success==false then you know that there's
> no file, so why don't you wait for a reasonable interval and then if it's
> not fired than assume the file exists. not the best of solutions but
should
> work.
>
> 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