Passing variables to AS3

F-IN-BOX for Delphi / Builder C++ / VCL
AlexMik
Posts: 2
Joined: Fri Sep 09, 2011 6:30 am

Passing variables to AS3

Postby AlexMik » Fri Sep 09, 2011 6:48 am

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.

coolshadow
Posts: 67
Joined: Fri Oct 10, 2008 7:42 am

Postby coolshadow » Sat Sep 10, 2011 5:04 pm

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.

AlexMik
Posts: 2
Joined: Fri Sep 09, 2011 6:30 am

Postby AlexMik » Mon Sep 12, 2011 7:14 am

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


Return to “Delphi / Builder / VCL Edition”

Who is online

Users browsing this forum: No registered users and 19 guests

cron