Close Button inside Delphi

F-IN-BOX for Delphi / Builder C++ / VCL
yallepaixao
Posts: 13
Joined: Sat Mar 03, 2007 7:35 pm

Close Button inside Delphi

Postby yallepaixao » Wed Apr 04, 2007 1:09 pm

Hello,

I have one close button in my SWF. I want that when my user click em Close Button in SWF it close my application (send my a command that i can intercept and close my .exe)
How can i do that?

Thanks

Yalle

SrBauti
Posts: 2
Joined: Wed Apr 04, 2007 3:49 pm

Postby SrBauti » Wed Apr 04, 2007 3:55 pm

It's quite Easy.

Use this on Delphi:

procedure TFClass.FlashPlayerControl1.FSCommand(ASender: TObject;
const command, args: WideString);
begin
if command = 'close' then begin
Close;
end;

And this on the button's callback on flash:
fscommand("close", "");

Dani.


Return to “Delphi / Builder / VCL Edition”

Who is online

Users browsing this forum: No registered users and 24 guests

cron