Page 1 of 1

Unspecified Error when executing CallFunction

Posted: Sun Feb 04, 2007 11:38 pm
by ealmond
When I execute

Response := FlashPlayerControl1.CallFunction('<invoke name="Call" returntype="xml"><arguments><string>Some text for TFlashPlayerControl</string></arguments></invoke>');
for a Flex 2 app, I get a delphi error "Unspecified Error" when executing CallFunction. I am user Delphi3 .

Posted: Mon Feb 05, 2007 9:09 am
by Softanics
Thank you for your question.

At the first, please test example Samples\Delphi3\Sample7_ExternalInterface, does it work properly?

External API works only with Flash 8 or higher.

Posted: Tue Feb 06, 2007 1:15 am
by ealmond
Yes... It works great which is why I purchased the product. I tried testing a small delphi app with a small Flex app. It is Flex 2.0 (Flash 9) and I have Flash 9 Installed. I also tried changing as many of the properties as possible. We are having to use Delphi 3 for a older application, so I cannot upgrade.

If there any other information I can provide?

Posted: Wed Feb 07, 2007 9:02 am
by Softanics
OK. Could you show me the declaration of this function ("Call") ?

Posted: Sat Feb 10, 2007 5:15 pm
by ealmond
I figured it out. The problem was that Flex was producing an error that Delphi reported it as "Unspecified Error"

I fixed the Flex problem which fixed the Delphi problem.

Thanks for the responses.

-Eric

Posted: Sat Feb 10, 2007 6:52 pm
by Softanics
Very good!

Could you explain how did you fix the problem?