Know when flash movie is fully loaded?

F-IN-BOX for Delphi / Builder C++ / VCL
andreaarg
Posts: 14
Joined: Tue Aug 26, 2008 11:53 pm

Know when flash movie is fully loaded?

Postby andreaarg » Sat Aug 30, 2008 10:13 pm

Is there a way to know if the flash movie is fully loaded and ready to receive External Calls?
I've tried checking state when the event OnReadyStateChange triggers, but no luck.
What's the correct way to do it?
Thanks in advance!

Softanics
Site Admin
Posts: 1402
Joined: Sat Sep 18, 2004 3:03 am
Location: Russia, St. Petersburg
Contact:

Postby Softanics » Sun Aug 31, 2008 7:55 am

Thank you for your question.

It seems that there is no such function to check this...

Is this a general problem? For example, if you use ExternalInterface.swf from the sample Sample7_ExternalInterface (see Samples from the demo zip), should you wait before using External API? Could you please check?

Thank you.
Best regards, Artem A. Razin,
F-IN-BOX support
Ask your question here: http://www.f-in-box.com/support.html

andreaarg
Posts: 14
Joined: Tue Aug 26, 2008 11:53 pm

Postby andreaarg » Tue Sep 02, 2008 12:02 am

I've tried the demo and it works fine, I tried calling the ActionScript function from FormCreate procedure and it executes successfully.
The only difference i see is that my SWF file is developed in Flex, intead of Flash.
I've uploaded a sample:
http://rapidshare.com/files/141931697/E ... T.rar.html

Thanks in advance.

Softanics
Site Admin
Posts: 1402
Joined: Sat Sep 18, 2004 3:03 am
Location: Russia, St. Petersburg
Contact:

Postby Softanics » Tue Sep 02, 2008 9:56 am

May be you can call fscommand from the AS code, when the movie is initialized...

Thank you.
Best regards, Artem A. Razin,

F-IN-BOX support

Ask your question here: http://www.f-in-box.com/support.html

andreaarg
Posts: 14
Joined: Tue Aug 26, 2008 11:53 pm

Postby andreaarg » Wed Sep 03, 2008 2:13 am

It worked!!
Thanks a lot!


Return to “Delphi / Builder / VCL Edition”

Who is online

Users browsing this forum: No registered users and 14 guests