Adobe 38039336 - Flash CS3 Professional User Manual page 507

User guide
Hide thumbs Also See for 38039336 - Flash CS3 Professional:
Table of Contents

Advertisement

For example, suppose a file attempts to load an XML file that's 100 KB, but the device's operating system has allocated
only 30 KB to handle that incoming data stream. In this case, Flash Lite displays an error message to the user,
indicating that not enough memory is available.
To load large amounts of data, group the data in smaller pieces—for example, in several XML files—and make several
data-loading calls for each piece. The size of each piece of data, and therefore the number of data-loading calls you
need to make, varies by device and file. To determine an appropriate balance between the number of data requests
and the likelihood of a memory failure, test files on a variety of target devices.
For optimum performance, avoid loading and parsing XML files if possible. Instead, store data in simple name/value
pairs and load the data from a text file using
For more tips and techniques for creating content for mobile phones and devices, see
www.adobe.com/go/learn_cs_mobilewiki_en
Exclude classes from compilation for Flash Lite
To reduce the size of a SWF file, consider excluding classes from compilation but retaining the ability to access and
use them for type checking. For example, try this if you are developing a file that uses multiple SWF files or shared
libraries, especially those that access many of the same classes. Excluding classes helps avoid duplicating classes in
those files.
Create a new XML file.
1
2
Name the XML file FLA_filename_exclude.xml, where FLA_filename is the name of the FLA file without the .fla
extension. For example, if the FLA file is sellStocks.fla, the XML filename must be sellStocks_exclude.xml.
Save the file in the same directory as the FLA file.
3
4
Place the following tags in the XML file:
excludeAssets>)
<asset name="className1" />)
<asset name="className2" />
</excludeAssets>
The values specified for the name attributes in the
from the SWF file. Add as many as required for the file. For example, the following XML file excludes the
and
mx.core.UIObject
mx.screens.Slide
<excludeAssets>)
<asset name="mx.core.UIObject" />)
<asset name="mx.screens.Slide" />
</excludeAssets>
For more tips and techniques for creating content for mobile phones and devices, see
www.adobe.com/go/learn_cs_mobilewiki_en.
or from precompiled SWF files.
loadVars
tags are the names of classes that should be excluded
<asset>
classes from the SWF file:
FLASH CS3
501
User Guide

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flash cs3 professional

Table of Contents