I'm using the movie clip loader to load a swf inside a
MovieClip object on my stage. I've added a line of code at the end
it calls another function in flash that accesses the loaded SWF and
tries to do something.
The first time I call the function, it fails (the variable I
try to access is undefined)...if I immediately call the function
again it works fine.
I can get this to work if I place a 500 millisecond delay in
since each machine may take longer than 1/2 second for whatever
flash is doing.
Q: Why isn't the item available after onLoadInit is complete
and how do I get around this problem?
There are only 2 ways I can think of to detect if the loaded
swf is ready.
use onLoadInit - this doesn't work
create a timer in flash that checks every 100 millsecond
until it's ready - this doesn't work either. For some reason the
swf is ready