This sample shows how to use OnLoadExternalResource. The event OnLoadExternalResource 
is called when a movie tries to load an external resource (xml, jpeg, etc.) using a 
relative path. The event is called only if the movie is loaded from a stream.

For instance, a movie loads an image using the following code: 

loadMovie("images/external_image.jpg", "square");

You can provide the content of this image by handling the event OnLoadExternalResource: 

procedure TForm1.FlashPlayerControl1LoadExternalResource(ASender: TObject; const URL: String; Stream: TStream);
var
  ResourceStream: TResourceStream;
begin
  if URL = 'images/external_image.jpg' then
  begin
    ResourceStream := TResourceStream.Create(0, 'some_image', 'IMAGE');
    ResourceStream.SaveToStream(Stream);
    ResourceStream.Free;
  end;
end;

INSTALL TFlashPlayerControl BEFORE BUILDING!
