Loading External Images - MACROMEDIA FLASH 8-DEVELOPING FLASH LITE 2.X Develop Manual

Developing flash lite 2.x applications
Hide thumbs Also See for FLASH 8-DEVELOPING FLASH LITE 2.X:
Table of Contents

Advertisement

The following methods and properties of the Video object in the desktop version of Flash
Player are not supported by Flash Lite 2.0:
Video.attachVideo()
Video.clear()
Video.deblocking
Video.height
Video.smoothing
Video.width
.
Video
_visible
For more information about using the Video object in Flash Lite, see the
in the Flash Lite 2.x ActionScript Language Reference.

Loading external images

In Flash Lite 2.0, as in Flash Lite 1.1, you can use the
the
method of the MovieClip object) to load external SWF files into your
loadMovie()
application. Additionally, in Flash Lite 2.0, you can use the
any arbitrary image format that the device supports.
For example, assuming that the target device can decode PNG files, the following code loads
and displays an external PNG file that resides on the web server:
loadMovie("http://www.macromedia.com/image.png", "image_target");
To determine what image formats the target device supports, you can use the
System.capabilities.imageMIMETypes
image MIME types. The index of each element in the array is equal to each supported MIME
type.
For example, the following ActionScript determines whether a device supports PNG images
before the device attempts to load an external PNG file:
if (System.capabilities.imageMIMETypes["image/png"]) {
loadMovie("images/image.png", "mc_myPngImage");
}
Flash Lite limits to five the number of
perform in a given frame, and 10 total operations at any one time. For example, suppose your
application contains code on frame 1 to load six external JPEG images, as shown below:
image1.loadMovie("image1.jpg");
image2.loadMovie("image2.jpg");
image3.loadMovie("image3.jpg");
image4.loadMovie("image4.jpg");
image5.loadMovie("image5.jpg");
image6.loadMovie("image6.jpg"); // Won't load
68
Working with Sound, Video, and Images
loadMovie()
property, which contains an array of supported
operations that an application can
loadMovie()
object entry
Video
function (or, equivalently,
function to load
loadMovie()

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH 8-DEVELOPING FLASH LITE 2.X and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flash 8

Table of Contents