Page 1 of 1

LoadFlashOCXCodeFromStream gone?

Posted: Tue Mar 04, 2014 12:05 pm
by Sphinks
Hello!

Is the LoadFlashOCXCodeFromStream gone from the latest version?

How do we set what flash.ocx to use now?

Re: LoadFlashOCXCodeFromStream gone?

Posted: Tue Mar 04, 2014 1:11 pm
by Softanics
Hi,

Thank you for your question.

Nope, it must be still there.

You couldn't call it?...

Thank you.

Re: LoadFlashOCXCodeFromStream gone?

Posted: Tue Mar 04, 2014 2:20 pm
by Sphinks
It will not compile:(
We get: 'TFlashPlayerControl' does not contain a member named 'LoadFlashOCXCodeFromStream'

This is what we are trying:

Code: Select all

var
  FlashCodeStream: TFileStream;
begin
  FlashCodeStream := TFileStream.Create( ... path to flash.ocx ... , fmOpenRead);
  fpc1.LoadFlashOCXCodeFromStream(FlashCodeStream);
  FlashCodeStream.Free;

Re: LoadFlashOCXCodeFromStream gone?

Posted: Tue Mar 04, 2014 3:26 pm
by Softanics
It is a global method, not a member function.

Try just:

Code: Select all

use FlashPlayerControl;
...
LoadFlashOCXCodeFromStream(...);


Thank you.

Re: LoadFlashOCXCodeFromStream gone?

Posted: Tue Mar 04, 2014 3:50 pm
by Sphinks
It works like a charm, thank you!