why is Response null in Sample7_ExternalInterface.exe?

F-IN-BOX for Delphi / Builder C++ / VCL
dfw1977
Posts: 3
Joined: Mon Jan 30, 2006 11:32 pm

why is Response null in Sample7_ExternalInterface.exe?

Postby dfw1977 » Tue Jan 31, 2006 12:04 am

Good morning!
demo:Sample7_ExternalInterface.exe
procedure TMainForm.ButtonCallActionScriptFunction2Click(Sender: TObject);
var
Response: WideString;
begin
Response := TransparentFlashPlayerControl1.CallFunction('<invoke name="CallMeFromApplication" returntype="xml"><arguments><string>Some text for TTransparentFlashPlayerControl</string></arguments></invoke>');
ShowMessage(Format('The function returned: %s', [ Response ] ));
end;
why is Response null?
Thank you for your answers!

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

Re: why is Response null in Sample7_ExternalInterface.exe?

Postby Softanics » Tue Jan 31, 2006 12:30 pm

Thank you for your question.

External API is supported only in Flash 8 (or higher). What is the version of Flash you use?
Best regards, Artem A. Razin,
F-IN-BOX support
Ask your question here: http://www.f-in-box.com/support.html

dfw1977
Posts: 3
Joined: Mon Jan 30, 2006 11:32 pm

why is Response null in Sample7_ExternalInterface.exe?

Postby dfw1977 » Wed Feb 08, 2006 11:34 pm

External API is supported only in Flash 8 (or higher). What is the version of Flash you use?

Thank you for your anwser.
the version of delphi is delphi7.
the Flash is ExternalInterface.swf in demo.
but Response is null .

is the version of ExternalInterface.swf in demo flash 8?

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

Re: why is Response null in Sample7_ExternalInterface.exe?

Postby Softanics » Thu Feb 09, 2006 8:58 am

dfw1977 wrote:External API is supported only in Flash 8 (or higher). What is the version of Flash you use?

Thank you for your anwser.
the version of delphi is delphi7.
the Flash is ExternalInterface.swf in demo.
but Response is null .

is the version of ExternalInterface.swf in demo flash 8?


The version of the Flash installed in your system (not version of a swf) must be 8 or higher.
Add this lines in the FormCreate:

Code: Select all

procedure TMainForm.FormCreate(Sender: TObject);
begin
...
  if ((Not IsFlashInstalled) or (HIBYTE(HIWORD(GetInstalledFlashVersion)) < 8)) then
  begin
    ShowMessage('The application needs Flash 8 or higher');
  end;
...
end;
Best regards, Artem A. Razin,

F-IN-BOX support

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

dfw1977
Posts: 3
Joined: Mon Jan 30, 2006 11:32 pm

Postby dfw1977 » Fri Feb 10, 2006 12:04 am

Thank you for your anwser.
How should I do make the Flash installed in my system is 8 or higher.?
Whether has to install the software of flash 8?

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

Postby Softanics » Fri Feb 10, 2006 7:59 am

dfw1977 wrote:Thank you for your anwser.
How should I do make the Flash installed in my system is 8 or higher.?
Whether has to install the software of flash 8?


Last version is available for downloading here:
http://macromedia.com/shockwave/downloa ... omoid=BIOW
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 29 guests