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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Specifies the level of anti-aliasing applied to the current SWF file. Specify 2 (best quality) to<br />

apply the best quality. Specify 1 (high quality) to apply anti-aliasing. Specify 0 (low quality) to<br />

prevent anti-aliasing.<br />

Example<br />

The following ActionScript is placed on the main timeline, <strong>and</strong> sets the global quality<br />

property to apply anti-aliasing. _highquality = 1;<br />

See also<br />

_quality property<br />

_level property<br />

_levelN<br />

A reference to the root Timeline of _levelN. You must use loadMovieNum() to load SWF<br />

files into the Flash Player before you use the _level property to target them. You can also use<br />

_levelN to target a loaded SWF file at the level assigned by N.<br />

The initial SWF file loaded into an instance of the Flash Player is automatically loaded into<br />

_level0. The SWF file in _level0 sets the frame rate, background color, <strong>and</strong> frame size for<br />

all subsequently loaded SWF files. SWF files are then stacked in higher-numbered levels<br />

above the SWF file in _level0.<br />

You must assign a level to each SWF file that you load into the Flash Player using<br />

loadMovieNum(). You can assign levels in any order. If you assign a level that already contains<br />

a SWF file (including _level0), the SWF file at that level is unloaded <strong>and</strong> replaced by the<br />

new SWF file.<br />

Example<br />

The following example stops the playhead in the main timeline of the SWF file sub.swf that is<br />

loaded into _level9. The sub.swf file contains animation <strong>and</strong> is in the same directory as the<br />

document that contains the following ActionScript:<br />

loadMovieNum("sub.swf", 9);<br />

myBtn_btn.onRelease = function() {<br />

_level9.stop();<br />

};<br />

You could replace _level9.stop() in the previous example with the following code:<br />

_level9.gotoAndStop(5);<br />

This action sends the playhead in the main Timeline of the SWF file in _level9 to Frame 5<br />

instead of stopping the playhead.<br />

Global Properties 99

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

Saved successfully!

Ooh no, something went wrong!