/*
 Copyright (c) 2006 Eric J. Feminella  <eric@ericfeminella.com>
 All rights reserved.

 Permission is hereby granted, free of charge, to any person obtaining a copy
 of this software and associated documentation files (the "Software"), to deal
 in the Software without restriction, including without limitation the rights
 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 copies of the Software, and to permit persons to whom the Software is furnished
 to do so, subject to the following conditions:

 The above copyright notice and this permission notice shall be included in all
 copies or substantial portions of the Software.

 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
 INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
 PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
 HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
 OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
 SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

 @internal
 */

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;
    }
}