Lars,
You can't sit in a repeat loop as no other code gets serviced while doing
that, thus the Flash Asset Xtra (which you are using in this case) doesn't
get serviced and therefore cannot issue the expected callback. In the case
you are describing it seems that you'll need to either use frames or a
timeout object and have it sift through your various initialization routines
in order, then when done move on to elsewhere in your movie/execution path.

Cheers,
Tom Higgins - Technical Product Manager
Macromedia Director and the Shockwave Player
http://www.markme.com/thiggins/ 

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of Lars Liden
> Sent: Thursday, March 10, 2005 3:55 PM
> To: lingo-l@mail4.fcgnetworks.net
> Subject: Re: <lingo-l> How to wait for a callback....
> 
> Here's some more context, I'm doing this for usling Flash XML
> 
>   xmlLoader = newObject("XML")
>   setCallback(xmlLoader, "OnLoad", #LoadedXML, me)
>   xmlLoader.Load(fileName)
> 
> The problem is that the load function doesn't block and I can't loop
> after the load function or file never loads and the callback never
> happens.
[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email 
lingo-l@penworks.com  (Problems, email [EMAIL PROTECTED]). Lingo-L is for 
learning and helping with programming Lingo.  Thanks!]

Reply via email to