Im using Delphi 7 and the result of ".Owner = Self" is "Can't assign to a read only property"
Whith TFlashPlayerControl all works fine - it can be created in runtime, placed into any form or another windowed control and so on... but the flash component with transparency cant.
For example:
Code 1:
Code: Select all
FFlash := TFlashPlayerControl.Create(nil);
Self.InsertControl(FFlash);
FFlash.SetBounds(0, 0, 256, 256);
FFlash.Movie := 'c:\border.swf';
Canvas.Draw(256, 0, FFlash.CreateFrameBitmap);
is OK - a TFlashPlayerControl appears on the left-top corner of the form and the same graphic draws at the right.
Code 2:
Code: Select all
FFlash := TTransparentFlashPlayerControl.Create(nil);
Self.InsertControl(FFlash);
FFlash.SetBounds(0, 0, 256, 256);
FFlash.Movie := 'c:\border.swf';
Canvas.Draw(256, 0, FFlash.CreateFrameBitmap);
isnt OK - a TTransparentFlashPlayerControl doesnt appears on the left-top corner of the form and no graphic draws at the right + an error message "Source file not found: FlashPlayerControl.pas" + "access violation ... read of address 0000000" within "FFlash.CreateFrameBitmap" method call
Im going to buy the license as soon, as i solve this problem. Help me please