03.05.2013 Views

ActionScript 2.0 Language Reference - Adobe Help and Support

ActionScript 2.0 Language Reference - Adobe Help and Support

ActionScript 2.0 Language Reference - 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.

ifFrameLoaded function<br />

ifFrameLoaded([scene:String], frame) {<br />

statement(s);<br />

}<br />

Deprecated since Flash Player 5. This function has been deprecated. <strong>Adobe</strong> recommends that<br />

you use the MovieClip._framesloaded property.<br />

Checks whether the contents of a specific frame are available locally. Use ifFrameLoaded to<br />

start playing a simple animation while the rest of the SWF file downloads to the local<br />

computer. The difference between using _framesloaded <strong>and</strong> ifFrameLoaded is that<br />

_framesloaded lets you add custom if or else statements.<br />

Availability: <strong>ActionScript</strong> 1.0; Flash Player 4<br />

Parameters<br />

scene:String [optional] - A string that specifies the name of the scene that must be loaded.<br />

frame:Object - The frame number or frame label that must be loaded before the next<br />

statement is executed.<br />

See also<br />

addListener (MovieClipLoader.addListener method)<br />

int function<br />

int(value:Number) : Number<br />

Deprecated since Flash Player 5. This function was deprecated in favor of Math.floor() for<br />

positive values <strong>and</strong> Math.ceil for negative values.<br />

Converts a decimal number to an integer value by truncating the decimal value. This function<br />

is equivalent to Math.floor() if the value parameter is positive <strong>and</strong> Math.ceil() if the<br />

value parameter is negative.<br />

Availability: <strong>ActionScript</strong> 1.0; Flash Player 4<br />

Parameters<br />

value:Number - A number to be rounded to an integer.<br />

Returns<br />

Number - The truncated integer value.<br />

68 <strong>ActionScript</strong> language elements

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

Saved successfully!

Ooh no, something went wrong!