SOLUTION (phew!)
I was calling an external function in Delphi from within Flash when a button in the flash was pressed:
Code: Select all
// Actionscript
on (release){
flash.external.ExternalInterface.call('exButtonPressed');
}
This then in turn tries to load the next swf file:
Code: Select all
// Delphi
procedure TMainForm.exButtonPressed;
begin
flashPlayer.PutMovieFromStream(fSWFPart2);
end;
Which results in fSWFPart2 actually not loading.
Thinking about this in hindsight it is very obvious that the swf is awaiting the result of the external interface call, and can therefore not unload itself.
I have not got the exact solution yet, but I may have to set a flag within Delphi, and then check this on a timer or in a thread to load the new movie once Delphi has finshed Flash's external request.
Any suggestions on how to handle this are welome!