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;