03.05.2013 Views

FLASH® LITE™ 2.x - Adobe Help and Support

FLASH® LITE™ 2.x - Adobe Help and Support

FLASH® LITE™ 2.x - Adobe Help and Support

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

The loadMovieNum() action also lets you load JPEG files into a SWF file while it plays. For<br />

images <strong>and</strong> SWF files, the upper left corner of the image aligns with the upper left corner of<br />

the Stage when the file loads. Also in both cases, the loaded file inherits rotation <strong>and</strong> scaling,<br />

<strong>and</strong> the original content is overwritten in the specified level.<br />

NOTE<br />

JPEG files saved in progressive format are not supported.<br />

Use unloadMovieNum() to remove SWF files or images that were loaded with<br />

loadMovieNum().<br />

Parameters<br />

url:String - The absolute or relative URL of the SWF or JPEG file to be loaded. A relative<br />

path must be relative to the SWF file at level 0. For use in the st<strong>and</strong>-alone Flash Player or for<br />

testing in test mode in the Flash authoring application, all SWF files must be stored in the<br />

same folder <strong>and</strong> the filenames cannot include folder or disk drive specifications.<br />

level:Number - An integer specifying the level in Flash Player into which the SWF file will<br />

load.<br />

method:String [optional] - Specifies an HTTP method for sending variables. The parameter<br />

must be the string GET or POST . If there are no variables to be sent, omit this parameter. The<br />

GET method appends the variables to the end of the URL <strong>and</strong> is used for small numbers of<br />

variables. The POST method sends the variables in a separate HTTP header <strong>and</strong> is used for<br />

long strings of variables.<br />

Example<br />

The following example loads the JPEG image tim.jpg into level 2 of Flash Player:<br />

loadMovieNum("http://www.helpexamples.com/flash/images/image1.jpg", 2);<br />

See also<br />

unloadMovieNum function, loadMovie function, loadClip<br />

(MovieClipLoader.loadClip method), _level property<br />

loadVariables function<br />

loadVariables(url:String, target:Object [, method:String]) : Void<br />

Global Functions 57

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!