Captivate movies

F-IN-BOX for Delphi / Builder C++ / VCL
Tom
Posts: 3
Joined: Thu Sep 15, 2005 5:00 am

Captivate movies

Postby Tom » Fri Sep 16, 2005 12:58 am

Has anyone used a captivate movie with FlashControl?

I can load the movie but I cannot find out when it has finished.

I need this to trigger the next sequence in my program.

Tom

hpoulsen
Posts: 1
Joined: Thu Sep 22, 2005 11:50 am
Location: Denmark

Re: Captivate movies

Postby hpoulsen » Thu Sep 22, 2005 12:16 pm

Tom wrote:Has anyone used a captivate movie with FlashControl?

I can load the movie but I cannot find out when it has finished.

I need this to trigger the next sequence in my program.

Tom



Yes, We are using FlashplayerControl with Captivate movies!

I have found two ways to find out when Captivate movie end

1. You can compare currentFrame with FrameCount !

if FlashPlayerControl1.GetVariable('rdinfoCurrentFrame')=
FlashPlayerControl1.GetVariable('rdinfoFrameCount') THEN
begin
//place your code here
end

hint: You can use 'rdinfo*' variable to get info and 'rdcmnd*' to activate bottons on the PlayControl in captivate movies.

2. place a FScommand in Captivate Movie's "Movie End Option" and then assign an event handler to FlashPlayerControl's onFScommand

in Capivate movie's Movie End Option:

set Action = Open URL or File
set Open URL or File = fscommand:MovieEOF

in delphi onFscommand


procedure TMainform.FlashPlayerControl1FSCommand(ASender: TObject;
const command, args: WideString);
begin
if command='MovieEOF' Then
begin
// place you kode here
end
end;


Henrik


Return to “Delphi / Builder / VCL Edition”

Who is online

Users browsing this forum: No registered users and 8 guests

cron