LoadFlashOCXCodeFromStream gone?

F-IN-BOX for Delphi / Builder C++ / VCL
Sphinks
Posts: 3
Joined: Mon Jun 06, 2016 2:24 pm

LoadFlashOCXCodeFromStream gone?

Postby Sphinks » Tue Mar 04, 2014 12:05 pm

Hello!

Is the LoadFlashOCXCodeFromStream gone from the latest version?

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

Softanics
Site Admin
Posts: 1402
Joined: Sat Sep 18, 2004 3:03 am
Location: Russia, St. Petersburg
Contact:

Re: LoadFlashOCXCodeFromStream gone?

Postby Softanics » Tue Mar 04, 2014 1:11 pm

Hi,

Thank you for your question.

Nope, it must be still there.

You couldn't call it?...

Thank you.
Best regards, Artem A. Razin,
F-IN-BOX support
Ask your question here: http://www.f-in-box.com/support.html

Sphinks
Posts: 3
Joined: Mon Jun 06, 2016 2:24 pm

Re: LoadFlashOCXCodeFromStream gone?

Postby Sphinks » Tue Mar 04, 2014 2:20 pm

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;

Softanics
Site Admin
Posts: 1402
Joined: Sat Sep 18, 2004 3:03 am
Location: Russia, St. Petersburg
Contact:

Re: LoadFlashOCXCodeFromStream gone?

Postby Softanics » Tue Mar 04, 2014 3:26 pm

It is a global method, not a member function.

Try just:

Code: Select all

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


Thank you.
Best regards, Artem A. Razin,

F-IN-BOX support

Ask your question here: http://www.f-in-box.com/support.html

Sphinks
Posts: 3
Joined: Mon Jun 06, 2016 2:24 pm

Re: LoadFlashOCXCodeFromStream gone?

Postby Sphinks » Tue Mar 04, 2014 3:50 pm

It works like a charm, thank you!


Return to “Delphi / Builder / VCL Edition”

Who is online

Users browsing this forum: Majestic-12 [Bot] and 2 guests

cron