F-IN-BOX Delphi Edition Help >> TFlashPlayerControl / TTransparentFlashPlayerControl >> Globals

GetUsingFlashVersion

Syntax

[ Delphi ]
function GetUsingFlashVersion(var FlashVersion: TFlashVersion): Boolean;

[ Builder C++ ]
bool __fastcall GetUsingFlashVersion(TFlashVersion& FlashVersion);

Description

Returns a using version of the Flash. Note: GetUsingFlashVersion is not the same as installed version because you can load any version of flash ocx: Embedding swflash.ocx/flash.ocx code into application.

Here's an example of how to use this function:

[ Delphi ]
var
  UsingFlashVersion: TFlashVersion;
begin
  FlashPlayerControl.GetUsingFlashVersion(UsingFlashVersion);

  ShowMessage
  (
    Format
    (
      'Using version: %d.%d.%d.%d',
      [
        UsingFlashVersion.version[3],
        UsingFlashVersion.version[2],
        UsingFlashVersion.version[1],
        UsingFlashVersion.version[0]
      ]
    )
  );
end;

[ Builder C++ ]
TFlashVersion UsingFlashVersion;
Flashplayercontrol::GetUsingFlashVersion(UsingFlashVersion);

More about TFlashPlayerControl
Copyright © Softanics. All rights reserved
F-IN-BOX is a registered trademark of Softanics|Delphi is a trademark of Borland Software Corporation|Macromedia and Shockwave Flash are trademarks of Adobe, Inc.