Environment

Kind of class:class
Inherits from:none
Author:Arthur Clemens
Classpath:org.asapframework.util.system.Environment
File last modified:Monday, 20 November 2006, 15:35:03
Gives information about the player environment the movie is playing in.

Summary


Class properties
Class methods
  • isAuthoringMode : Boolean
    • Utility method to simply ask wether the Flash movie is in authoring mode or not.
  • getEnvironment : String
    • Gets the environment in which the Flash movie is playing.

Class properties

AUTHORING

static AUTHORING:String = "authoring"
(read)

PLUGIN

static PLUGIN:String = "plugin"
(read)

STANDALONE

static STANDALONE:String = "standalone"
(read)

Class methods

getEnvironment

static function getEnvironment (
) : String

Gets the environment in which the Flash movie is playing.
Returns:
  • A string as defined by the constants.
Example:
  • if (Environment.getEnvironment() == Environment.PLUGIN) {
        // do plugin behavior
    }

isAuthoringMode

static function isAuthoringMode (
) : Boolean

Utility method to simply ask wether the Flash movie is in authoring mode or not.
Returns:
  • True is the movie is playing in authoring mode; false if not.