OnFsCommand

F-IN-BOX for Delphi / Builder C++ / VCL
GCarvalho

OnFsCommand

Postby GCarvalho » Wed Aug 17, 2005 1:35 pm

Hi,

I need to offer a way for the flash to call functions on my application. I thought that using the OnFSCommand would do it, but it doesn't seem to be working.
I tried:
1 - doing it the way the help page states: http://www.flashplayercontrol.com/delph ... mmand.html
2 - Doing it using the fscommand function, using my own command and parameters...

None of these seem to cause a response.

Thanks,

Gus

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

Postby Softanics » Wed Aug 17, 2005 5:26 pm

Thank you for your question.

Did you add the event handler using Object Inspector?
Best regards, Artem A. Razin,
F-IN-BOX support
Ask your question here: http://www.f-in-box.com/support.html

GCarvalho

Postby GCarvalho » Wed Aug 17, 2005 5:50 pm

Thank you for your question.

Thank *you* for your response.

Did you add the event handler using Object Inspector?

Yes I did. I'm using a resource-loaded player, v. 7.0.19.

I'm using your control Version: 1.0.9 (paying customer :) ) on Delphi 2005...

GCarvalho

Postby GCarvalho » Wed Aug 17, 2005 6:21 pm

Just to add that I tried the following two syntaxes to call the event, from the flash side:
1 - fscommand("test_this","a");
2 - getURL("FSCommand:test_this","var=a");

The second one seems to be the syntax specified in you help pages, though not much used...

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

Postby Softanics » Thu Aug 18, 2005 5:45 pm

Very strange. Please be so kind, send zipped project and the movie (SWF and FLA) to our support: support (at) flashplayercontrol.com
Best regards, Artem A. Razin,

F-IN-BOX support

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

Pete
Posts: 16
Joined: Fri Sep 30, 2005 10:54 am

fsCommand

Postby Pete » Fri Sep 30, 2005 11:30 am

In the flash movie you need to set up the action script, e.g. in response to a button click
on (release) {
fscommand("test", "");

}

In Delphi set the event handler for the Flashplayer
e.g.
procedure TForm1.FlashFSCommand(ASender: TObject; const command,
args: WideString);
begin
if command = 'test' then ;//do something here
end;

Hope this helps

onad
Posts: 22
Joined: Wed Aug 17, 2005 2:49 pm
Location: Turkey
Contact:

Postby onad » Tue Oct 25, 2005 6:00 pm

and this post below with example is very helpfull

http://www.flashplayercontrol.com/forum ... c.php?t=83
"Just do it"


Return to “Delphi / Builder / VCL Edition”

Who is online

Users browsing this forum: No registered users and 8 guests

cron