Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
define("as3/flash/system/System",["module","exports","as3-rt/AS3","as3/Error"], function($module,$exports,AS3,Error) { AS3.compilationUnit($module,$exports,function($primaryDeclaration){/*package flash.system {
/**
 * The System class contains properties related to local settings and operations. Among these are settings for camers and microphones, operations with shared objects and the use of the Clipboard.
 * <p>Additional properties and methods are in other classes within the flash.system package: the Capabilities class, the IME class, and the Security class.</p>
 * <p>This class contains only static methods and properties. You cannot create new instances of the System class.</p>
 * <p><a href="http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/system/System.html#includeExamplesSummary">View the examples</a></p>
 * @see Security
 * @see flash.events.IMEEvent
 * @see http://help.adobe.com/en_US/as3/dev/WS5b3ccc516d4fbf351e63e3d118a9b90204-7cd6.html Using the System class
 *
 * /
public final class System {
  /**
   * The amount of memory (in bytes) that is allocated to Adobe<sup>&#174;</sup> Flash<sup>&#174;</sup> Player or Adobe<sup>&#174;</sup> AIR<sup>&#174;</sup> and that is not in use. This unused portion of allocated memory (<code>System.totalMemory</code>) fluctuates as garbage collection takes place. Use this property to monitor garbage collection.
   * @see #privateMemory
   * @see #totalMemory
   * @see #totalMemoryNumber
   *
   * /
  public static*/ function  get$freeMemory$static()/*:Number*/ {
    throw new Error('not implemented'); // TODO: implement!
  }/*

  /**
   * The currently installed system IME. To register for imeComposition events, call <code>addEventListener()</code> on this instance.
   * @see IMEConversionMode
   * @see http://help.adobe.com/en_US/as3/dev/WS5b3ccc516d4fbf351e63e3d118a9b90204-7cd6.html Using the System class
   *
   * /
  public static*/ function  get$ime$static()/*:IME*/ {
    throw new Error('not implemented'); // TODO: implement!
  }/*

  /**
   * The entire amount of memory (in bytes) used by an application. This is the amount of resident private memory for the entire process.
   * <p>AIR developers should use this property to determine the entire memory consumption of an application.</p>
   * <p>For Flash Player, this includes the memory used by the container application, such as the web browser.</p>
   * @see #freeMemory
   * @see #totalMemory
   * @see #totalMemoryNumber
   *
   * /
  public static*/ function  get$privateMemory$static()/*:Number*/ {
    throw new Error('not implemented'); // TODO: implement!
  }/*

  /**
   * The amount of memory (in bytes) currently in use that has been directly allocated by Flash Player or AIR.
   * <p>This property does not return <i>all</i> memory used by an Adobe AIR application or by the application (such as a browser) containing Flash Player content. The browser or operating system may consume other memory. The <code>System.privateMemory</code> property reflects <i>all</i> memory used by an application.</p>
   * <p>If the amount of memory allocated is greater than the maximum value for a uint object (<code>uint.MAX_VALUE</code>, or 4,294,967,295), then this property is set to 0. The <code>System.totalMemoryNumber</code> property allows larger values.</p>
   * @see #freeMemory
   * @see #privateMemory
   * @see #totalMemoryNumber
   * @see http://help.adobe.com/en_US/as3/dev/WS5b3ccc516d4fbf351e63e3d118a9b90204-7cd6.html Using the System class
   *
   * /
  public static*/ function  get$totalMemory$static()/*:uint*/ {
    return 1000000; // TODO: implement!
  }/*

  /**
   * The amount of memory (in bytes) currently in use that has been directly allocated by Flash Player or AIR.
   * <p>This property is expressed as a Number, which allows higher values than the <code>System.totalMemory</code> property, which is of type int.</p>
   * <p>This property does not return <i>all</i> memory used by an Adobe AIR application or by the application (such as a browser) containing Flash Player content. The browser or operating system may consume other memory. The <code>System.privateMemory</code> property reflects <i>all</i> memory used by an application.</p>
   * @see #freeMemory
   * @see #privateMemory
   * @see #totalMemory
   *
   * /
  public static*/ function  get$totalMemoryNumber$static()/*:Number*/ {
    throw new Error('not implemented'); // TODO: implement!
  }/*

  /**
   * A Boolean value that determines which code page to use to interpret external text files. When the property is set to <code>false</code>, external text files are interpretted as Unicode. (These files must be encoded as Unicode when you save them.) When the property is set to <code>true</code>, external text files are interpretted using the traditional code page of the operating system running the application. The default value of <code>useCodePage</code> is <code>false</code>.
   * <p>Text that you load as an external file (using <code>Loader.load()</code>, 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.</p>
   * <p>If you load external text files that are not Unicode-encoded, set <code>useCodePage</code> to <code>true</code>. Add the following as the first line of code of the file that is loading the data (for Flash Professional, add it to the first frame):</p>
   * <pre><code>System.useCodePage = true;</code></pre>
   * <p>When this code is present, the application interprets external text using the traditional code page of the operating system. For example, this is generally CP1252 for an English Windows operating system and Shift-JIS for a Japanese operating system.</p>
   * <p>If you set <code>useCodePage</code> to <code>true</code>, Flash Player 6 and later treat text as Flash Player 5 does. (Flash Player 5 treated all text as if it were in the traditional code page of the operating system running the player.)</p>
   * <p>If you set <code>useCodePage</code> to <code>true</code>, remember that the traditional code page of the operating system running the application must include the characters used in your external text file in order to display your text. For example, 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.</p>
   * <p>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 <code>useCodePage</code> set to <code>false</code>. This way, the application (Flash Player 6 and later, or AIR) interprets the text as Unicode.</p>
   * @see flash.display.Loader#load()
   * @see http://help.adobe.com/en_US/as3/dev/WS5b3ccc516d4fbf351e63e3d118a9b90204-7cd6.html Using the System class
   *
   * /
  public static*/ function  get$useCodePage$static()/*:Boolean*/ {
    throw new Error('not implemented'); // TODO: implement!
  }/*

  /**
   * @private
   * /
  public static*/ function  set$useCodePage$static(value/*:Boolean*/)/*:void*/ {
    throw new Error('not implemented'); // TODO: implement!
  }/*

  /**
   * Makes the specified XML object immediately available for garbage collection. This method will remove parent and child connections between all the nodes for the specified XML node.
   * @param node XML reference that should be made available for garbage collection.
   *
   * /
  public static*/ function disposeXML$static(node/*:XML*/)/*:void*/ {
    throw new Error('not implemented'); // TODO: implement!
  }/*

  /**
   * Closes Flash Player.
   * <p>For the standalone Flash Player debugger version only.</p>
   * <p>AIR applications should call the <code>NativeApplication.exit()</code> method to exit the application.</p>
   * @param code A value to pass to the operating system. Typically, if the process exits normally, the value is 0.
   *
   * @see flash.desktop.NativeApplication#exit()
   *
   * /
  public static*/ function exit$static(code/*:uint*/)/*:void*/ {
    throw new Error('not implemented'); // TODO: implement!
  }/*

  /**
   * Forces the garbage collection process.
   * <p><i>For the Flash Player debugger version and AIR applications only.</i> In an AIR application, the <code>System.gc()</code> method is only enabled in content running in the AIR Debug Launcher (ADL) or, in an installed applcation, in content in the application security sandbox.</p>
   * /
  public static*/ function gc$static()/*:void*/ {
    throw new Error('not implemented'); // TODO: implement!
  }/*

  /**
   * Pauses Flash Player or the AIR Debug Launcher (ADL). After calling this method, nothing in the application continues except the delivery of Socket events.
   * <p>For the Flash Player debugger version or the AIR Debug Launcher (ADL) only.</p>
   * @see #resume()
   *
   * /
  public static*/ function pause$static()/*:void*/ {
    throw new Error('not implemented'); // TODO: implement!
  }/*

  /**
   * Resumes the application after calling <code>System.pause()</code>.
   * <p>For the Flash Player debugger version or the AIR Debug Launcher (ADL) only.</p>
   * @see #pause()
   *
   * /
  public static*/ function resume$static()/*:void*/ {
    throw new Error('not implemented'); // TODO: implement!
  }/*

  /**
   * Replaces the contents of the Clipboard with a specified text string. This method works from any security context when called as a result of a user event (such as a keyboard or input device event handler).
   * <p>This method is provided for SWF content running in Flash Player 9. It allows only adding String content to the Clipboard.</p>
   * <p>Flash Player 10 content and content in the application security sandbox in an AIR application can call the <code>Clipboard.setData()</code> method.</p>
   * @param string A plain-text string of characters to put on the system Clipboard, replacing its current contents (if any).
   *
   * @see flash.desktop.Clipboard
   * @see http://help.adobe.com/en_US/as3/dev/WS5b3ccc516d4fbf351e63e3d118a9b90204-7cd6.html Using the System class
   *
   * /
  public static*/ function setClipboard$static(string/*:String*/)/*:void*/ {
    // TODO: implement!
  }/*
}*/function System() {}/*
}

============================================== Jangaroo part ==============================================*/
    $primaryDeclaration(AS3.class_($module, {
      members: {constructor: System},
      staticMembers: {
        freeMemory: {get: get$freeMemory$static},
        ime: {get: get$ime$static},
        privateMemory: {get: get$privateMemory$static},
        totalMemory: {get: get$totalMemory$static},
        totalMemoryNumber: {get: get$totalMemoryNumber$static},
        useCodePage: {
          get: get$useCodePage$static,
          set: set$useCodePage$static
        },
        disposeXML: disposeXML$static,
        exit: exit$static,
        gc: gc$static,
        pause: pause$static,
        resume: resume$static,
        setClipboard: setClipboard$static
      }
    }));
  });
});
//# sourceMappingURL=System.js.map
New to GrepCode? Check out our FAQ X