artelogic wrote:How can I reset the TFlashPlayerControl to a state like it is in right after Create, after I have loaded a movie via LoadMovie and played it with Play?
My problem indeed is, that it keeps showing the last frame of the played movie. I need a blank form after playing the movie.
Code: Select all
FlashPlayerControl1.Movie = '__';
artelogic wrote:Sorry, but this leads to an OleException with message 'Unknown Error' inside FlashPlayerControl.
Code: Select all
FlashPlayerControl1.Movie = 'file://__';
artelogic wrote:Still same exception!
Code: Select all
procedure TForm1.Button2Click(Sender: TObject);
begin
FlashPlayerControl1 := TFlashPlayerControl.Create(Self);
FlashPlayerControl1.Parent := Self;
FlashPlayerControl1.Width := Width;
FlashPlayerControl1.Height := Height;
FlashPlayerControl1.Movie := ' ...your URL here... ';
end;
artelogic wrote:Maybe I can call a native flash function, which clears the canvas. But since I am not a flash programmer, I do not know anything about flash programming...
artelogic wrote:Then, if that is a bad idea, what is the purpose of
function CallFunction(const request: WideString): WideString; virtual;
?
artelogic wrote:But loading a blanking flash could be a solution for me. Would be pretty kind to provide me with such a flash!
artelogic wrote:Thank you very much! But now I found out, what the problem was with your
fpFlashPlayer.Movie:='file://__';
Since I want to erase all when I close (hide) the form, it is necessary to call Application.ProcessMessages after setting the Movie property.
Return to “Delphi / Builder / VCL Edition”
Users browsing this forum: No registered users and 13 guests