GetUsingFlashVersion
Syntax
Delphi
function GetUsingFlashVersion(var FlashVersion: TFlashVersion): Boolean;
C++Builder
bool __fastcall GetUsingFlashVersion(TFlashVersion& FlashVersion);
Description
The GetUsingFlashVersion function retrieves the version of the Flash Player ActiveX control currently being used by the component.
This value may differ from the installed Flash Player version, because F-IN-BOX allows loading any version of swflash.ocx/flash.ocx directly into the application (for example, from resources), regardless of the version registered in the system.
It returns True if the version is successfully retrieved.
Delphi Example
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;
C++Builder Example
TFlashVersion UsingFlashVersion;
Flashplayercontrol::GetUsingFlashVersion(UsingFlashVersion);