Accessibility

Table of Contents

Memory management and optimizations in Flash Lite

Measuring available memory

There are two ways you can keep track of how much memory you have available:

  1. ActionScript commands
    1. fscommand2("GetFreePlayerMemory") returns the amount of heap memory, in kilobytes, currently available to Flash Lite
    2. fscommand2("GetTotalPlayerMemory") returns the total amount of heap memory, in kilobytes, allocated to Flash Lite.

             

      Note that some of the device manufacturers do not support the above commands. You just have to try the command to find out!

  2. Adobe Device Central CS3

    Adobe Device Central CS3 makes it very convenient to track and display the memory available to the application at any instance of time. It also provides the static and dynamic heap memory that is initially set by the manufacturer for certain devices.

    The Adobe Device Central memory tracking feature

    Figure 1. The Adobe Device Central memory tracking feature