I successfully loaded flash movies in a Delphi test application by doing the next three steps:
1. Press a button to load the movie (FlashObject.movie = path)
2. Press another button to set some values the flash file needs
3. Press a third button to start the movie, the movie works fine and shows the information according to the values i set in step number 2.
Now, I'm trying to do all that automatically when the delphi application starts, but i get "unspecified errors" when trying to invoke the flash external functions. I guess it's because the flash hasn't fully initializated. I tried: A) initializating external callbcks in the flash movie on the preinitialize event; and B) starting when the OnReadyStateChange event triggers, check the newState parameter and the PercentLoaded movie property
None of those two worked
Which is the correct way to do this? how can i be sure that the application has fully initialized?
Thanks in advance.