package com.ericfeminella.system
{
import flash.system.System;
import flash.system.Capabilities;
/**
*
* Provides an all static API which facilitates the inspection
* of the Flash Player version and the underlying Actionscript
* Virtual Machine version.
*
* @see flash.system.Capabilities;
* @see flash.system.System;
*
*/
public final class FlashPlayerGlobals
{
/**
*
* Retrieves the Flash Player Version in which the application
* is running.
*
* @example The following example demonstrates a typical value
* of <code>FlashPlayerVersion</code>
*
* <listing version="3.0">
*
* var version:String = FlashPlayerGlobals.FlashPlayerVersion;
* // WIN 9,0,115,0
*
* </listing>
*
* @return string representation of the Flash Player version
*
*/
public static const FlashPlayerVersion:String = Capabilities.version;
/**
*
* Retrieves the ActionScript Virtual Machine Version in which
* the application is running.
*
* @example The following example demonstrates a typical value
* of <code>AVMVersion</code>
*
* <listing version="3.0">
*
* var avm:String = FlashPlayerGlobals.AVMVersion;
* // 1.0 d684
*
* </listing>
*
* @return string representation of the AVM version
*
*/
public static const AVMVersion:String = System.vmVersion;
}
}