Page 1 of 1

Close Button inside Delphi

Posted: Wed Apr 04, 2007 1:09 pm
by yallepaixao
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

Posted: Wed Apr 04, 2007 3:55 pm
by SrBauti
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.