At 6:27 PM -0800 3/10/05, Lars Liden wrote:
FYI - there is an easy work around (at least for the flash XML component.)
If you use the .load method it doesn't block so you have to use the callback.
Instead, load the XML file into a text string then just parse if with
the flash component (which
I'm using SetCallback to get a callback from a Flash object in
lingo, however, I'd like to block (i.e. wait) for the callback to be
called before continuing execution of my lingo code.
I'd like to do something like this:
on Initialize()
- do Flash thing (1) and wait for 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
I think you know what you need to do already:)
You're going to have to loop on a frame until everything is loaded and
check fore each one.
I think.
roymeo
At 06:55 PM 3/10/2005, you wrote:
Here's some more context, I'm doing this for usling Flash XML
xmlLoader = newObject(XML)
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
: lingo-l How to wait for a callback
I think you know what you need to do already:)
You're going to have to loop on a frame until everything is loaded and
check fore each one.
I think.
roymeo
At 06:55 PM 3/10/2005, you wrote:
Here's some more context, I'm doing this for usling
PM
To: Lingo programming discussion list
Subject: Re: lingo-l How to wait for a callback
I think you know what you need to do already:)
You're going to have to loop on a frame until everything is loaded and
check fore each one.
I think.
roymeo
At 06:55 PM 3/10/2005