Environment
| Kind of class: | class |
|---|---|
| Inherits from: | none |
| Author: | Arthur Clemens |
| Classpath: | org.asapframework.util.system.Environment |
| File last modified: | Thursday, 13 July 2006, 09:33:59 |
Gives information about the player environment the movie is playing in.
Summary
Class properties
Class methods
Class properties
AUTHORING
static AUTHORING:String = "authoring"
(read,write)
PLUGIN
static PLUGIN:String = "plugin"
(read,write)
STANDALONE
static STANDALONE:String = "standalone"
(read,write)
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.