Page 1 of 1

Passing variables to AS3

Posted: Fri Sep 09, 2011 6:48 am
by AlexMik
Hi,

it's a problem with passing a variable from Delphi 2007 to AS3 (FP9). The example in the F-IN-BOX HELP is availiable for AS2.

Delphi debugger notification

Code: Select all

Exception class EOleException with message 'Unspecified error'. Process vvkl.exe (3052)


In FlashPlayerControl break on line

Code: Select all

Result := (FOleObject As IShockwaveFlash8).CallFunction(request);


Could you give an example of the working code?

Best regards, Alexei.

Posted: Sat Sep 10, 2011 5:04 pm
by coolshadow
Check fp ocx version. Because as3 is supported after fp9.

It also possible that f-in-box doesn't support fp9. If you have fullsource, you can check it out.

Posted: Mon Sep 12, 2011 7:14 am
by AlexMik
described in Example for AS3

Code: Select all

ExternalInterface.addCallback("CallMeFromApplication", this, InternalFunction);


and should be so

Code: Select all

ExternalInterface.addCallback("CallMeFromApplication", InternalFunction);


described in Example for Delphi

Code: Select all

Response := FlashPlayerControl1.CallFunction('Some text for TFlashPlayerControl');   


and should be so

Code: Select all

Response := FlashPlayerControl1.CallFunction('<invoke name="CallMeFromApplication"><arguments><string>Hi, Flash</string></arguments></invoke>');


now everything works :D