Pacoteflash.system
Classepublic final class System
HerançaSystem Inheritance Object

The System class contains properties related to certain operations that take place on the user's computer, such as operations with shared objects, local settings for cameras and microphones, and the use of the Clipboard.

Additional properties and methods are in other classes within the flash.system package: the Capabilities class, the IME class, and the Security class.

This class contains only static methods and properties. You cannot create new instances of the System class.

Veja Exemplos

Veja também

flash.system.Security
flash.events.IMEEvent


Propriedades Públicas
 PropriedadeDefinido por
 Inheritedconstructor : Object
A reference to the class object or constructor function for a given object instance.
Object
  ime : IME
[static] [read-only] The currently installed system IME.
System
 Inheritedprototype : Object
[static] A reference to the prototype object of a class or function object.
Object
  totalMemory : uint
[static] [read-only] The amount of memory (in bytes) currently in use by Adobe® Flash® Player or the Adobe® Integrated Runtime (AIR™).
System
  useCodePage : Boolean
[static] A Boolean value that determines which code page to use to interpret external text files.
System
Métodos Públicos
 MétodoDefinido por
  
exit(code:uint):void
[static] Closes the Flash player.
System
  
gc():void
[static] Forces the garbage collection process.
System
 Inherited
Indicates whether an object has a specified property defined.
Object
 Inherited
Indicates whether an instance of the Object class is in the prototype chain of the object specified as the parameter.
Object
  
[static] Pauses the Flash player or the AIR Debug Launcher (ADL).
System
 Inherited
Indicates whether the specified property exists and is enumerable.
Object
  
[static] Resumes the Flash player after using System.pause().
System
  
[static] Replaces the contents of the Clipboard with a specified text string.
System
 Inherited
Sets the availability of a dynamic property for loop operations.
Object
 Inherited
Returns the string representation of the specified object.
Object
 Inherited
Returns the primitive value of the specified object.
Object
Detalhes da propriedade
imepropriedade
ime:IME  [read-only]

The currently installed system IME. To register for imeComposition events, call addEventListener() on this instance.


Implementação
    public static function get ime():IME

Veja também

totalMemorypropriedade 
totalMemory:uint  [read-only]

The amount of memory (in bytes) currently in use by Adobe® Flash® Player or the Adobe® Integrated Runtime (AIR™).


Implementação
    public static function get totalMemory():uint
useCodePagepropriedade 
useCodePage:Boolean  [read-write]

A Boolean value that determines which code page to use to interpret external text files. When the property is set to false, external text files are interpretted as Unicode. (These files must be encoded as Unicode when you save them.) When the property is set to true, external text files are interpretted using the traditional code page of the operating system running the player. The default value of useCodePage is false.

Text that you load as an external file (using Loader.load(), the URLLoader class or URLStream) must have been saved as Unicode in order for the application to recognize it as Unicode. To encode external files as Unicode, save the files in an application that supports Unicode, such as Notepad on Windows.

If you load external text files that are not Unicode-encoded, set useCodePage to true. Add the following as the first line of code in the file that is loading the data:

System.useCodePage = true;

When this code is present, Flash Player interprets external text using the traditional code page of the operating system. This is generally CP1252 for an English Windows operating system and Shift-JIS for a Japanese operating system.

If you set useCodePage to true, remember that the traditional code page of the operating system running the player must include the characters used in your external text file in order to display your text. For exemplo, if you load an external text file that contains Chinese characters, those characters cannot display on a system that uses the CP1252 code page because that code page does not include Chinese characters.

To ensure that users on all platforms can view external text files used in your application, you should encode all external text files as Unicode and leave useCodePage set to false. This way, the application (Flash Player 6 and later) interprets the text as Unicode.


Implementação
    public static function get useCodePage():Boolean
    public function set useCodePage(value:Boolean):void

Veja também

Detalhes do método
exit()método
public static function exit(code:uint):void

Closes the Flash player.

For the standalone Flash Player debugger version only.

Player Version: Flash Player 9 Update 3 or the AIR Debug Launcher (ADL).

Parâmetros

code:uint — A value to pass to the operating system. Typically, if the process exits normally, the value is 0.

gc()método 
public static function gc():void

Forces the garbage collection process.

For Flash Player debugger version only.

Player Version: Flash Player 9 Update 3 or the AIR Debug Launcher (ADL).

pause()método 
public static function pause():void

Pauses the Flash player or the AIR Debug Launcher (ADL). After calling this method, nothing in the player continues except the delivery of Socket events.

For Flash Player debugger version or the AIR Debug Launcher (ADL) only.

Player Version: Flash Player 9 Update 3.

resume()método 
public static function resume():void

Resumes the Flash player after using System.pause().

For Flash Player debugger version or the AIR Debug Launcher (ADL) only.

Player Version: Flash Player 9 Update 3 or the AIR Debug Launcher (ADL).

setClipboard()método 
public static function setClipboard(string:String):void

Replaces the contents of the Clipboard with a specified text string.

Note: Because of security concerns, it is not possible for Flash Player content to read the contents of the system Clipboard. In other words, there is no corresponding System.getClipboard() method.

Parâmetros

string:String — A plain-text string of characters to put on the system Clipboard, replacing its current contents (if any).

Veja também

Exemplos How to use examples
SystemExample.as

The following exemplo shows how to copy information about your system's total memory to the system Clipboard using a call to System.totalMemory within a call to the System.setClipboard() method.
package {
    import flash.display.Sprite;
    import flash.system.System;

    public class SystemExample extends Sprite {
        public function SystemExample() {
            System.setClipboard("System.totalMemory: " + System.totalMemory);
        }
    }
}