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.

length function<br />

length(expression)length(variable)<br />

Deprecated since Flash Player 5. This function, along with all the string functions, has been<br />

deprecated. <strong>Adobe</strong> recommends that you use the methods of the String class <strong>and</strong> the<br />

String.length property to perform the same operations.<br />

Returns the length of the specified string or variable.<br />

Parameters<br />

expression:String - A string.<br />

variable:Object - The name of a variable.<br />

Returns<br />

Number - The length of the specified string or variable.<br />

Example<br />

The following example returns the length of the string "Hello": length("Hello"); The<br />

result is 5.<br />

See also<br />

" string delimiter operator, String, length (String.length property)<br />

loadMovie function<br />

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

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

Loads a SWF or JPEG file into Flash Player while the original SWF file plays. JPEG files<br />

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

TIP<br />

If you want to monitor the progress of the download, use<br />

MovieClipLoader.loadClip() instead of this function.<br />

The loadMovie() function lets you display several SWF files at once <strong>and</strong> switch among SWF<br />

files without loading another HTML document. Without the loadMovie() function, Flash<br />

Player displays a single SWF file.<br />

If you want to load a SWF or JPEG file into a specific level, use loadMovieNum() instead of<br />

loadMovie().<br />

54 ActionScript language elements

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

Saved successfully!

Ooh no, something went wrong!