HI Andreas,
  I have definitely had issues where declaring the two in the wrong order
has meant that the onLoad doesn't get called. Can't remember specifics - but
there are definitely cases where it's a problem. (From what I remember,
executing within Zinc and loading from the local file system was one
case...)

Cheers,
  Ian

On 12/15/05, Andreas Weber <[EMAIL PROTECTED]> wrote:
>
> > Just a quick observation: your onLoad should appear in code above the
> > actual sendAndLoad function.
>
> Does it - readability apart - really matter?
>
> Let's run a little test and make a really small and fast load:
> a textfile that just contains the string x=small
>
> And in the .fla:
>
> lv = new LoadVars();
> lv.load('test.txt');
>
> // waste much more time than the load can possibly take
> while(getTimer() < 5000){};
>
> lv.onLoad = function(s){
>         trace('onLoad is called, success :'+s);
> }
>
> The onLoad handler is called just fine even though it is declared
> several seconds after load() is called.
>
> It seems to be quite safe to assume that with asynchronous load
> operations the onData and onLoad events are dispatched with a delay of
> at least one frame.
>
> hth
> Andreas Weber
>
>
>
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of eric
> dolecki
> Sent: Donnerstag, 15. Dezember 2005 15:02
> To: Flashcoders mailing list
> Subject: Re: [Flashcoders] onload(Success:Boolean) - what's it mean?
>
> Just a quick observation: your onLoad should appear in code above the
> actual
> sendAndLoad function.
>
>
>
>
> _______________________________________________
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to