FlashPlayerControl.pas ExternalInterface runtime error

F-IN-BOX for Delphi / Builder C++ / VCL
pixelthis
Posts: 8
Joined: Wed Aug 27, 2008 4:07 am

FlashPlayerControl.pas ExternalInterface runtime error

Postby pixelthis » Wed Aug 27, 2008 5:04 am

Hi all,


This error popped up wen trying to use ExternalInterface to call an ActionScript function from Delphi. e.g.:

Code: Select all

flashPlayer.CallFunction('<invoke name="asFuncton" returntype="xml"><arguments><string>arg1</string></arguments></invoke>');


The error pops up when playing your app in the Delphi IDE. If you run the exe on its own (outside of Delphi), no dialogue comes up.

Solution!

This problem occurs when you try to call a function that doesn't exist (or has not been enabled as a callback) within AS. In my cae it was a typo:

Code: Select all

flashPlayer.CallFunction('<invoke name="asFunction" returntype="xml"><arguments><string>arg1</string></arguments></invoke>');

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:54 am

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


Return to “Delphi / Builder / VCL Edition”

Who is online

Users browsing this forum: No registered users and 17 guests

cron