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

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

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

var image_mcl:MovieClipLoader = new MovieClipLoader();<br />

var mclListener:Object = new Object();<br />

mclListener.onLoadInit = function(target_mc:MovieClip) {<br />

trace(target_mc._name+" = "+target_mc._width+" X "+target_mc._height+"<br />

pixels");<br />

};<br />

image_mcl.addListener(mclListener);<br />

image_mcl.loadClip("example.jpg", image_mc);<br />

The MovieClip.getNextHighestDepth() method used in this example requires Flash Player<br />

7 or later. If your SWF file includes a version 2 component, use the version 2 components'<br />

DepthManager class instead of the MovieClip.getNextHighestDepth() method.<br />

The MovieClipLoader class used in this example requires Flash Player 7 or later.<br />

See also<br />

_width (MovieClip._width property)<br />

_highquality (MovieClip._highquality property)<br />

public _highquality : Number<br />

Deprecated since Flash Player 7. This property was deprecated in favor of<br />

MovieClip._quality.<br />

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

apply high quality with bitmap smoothing always on. Specify 1 (high quality) to apply antialiasing;<br />

this smooths bitmaps if the SWF file does not contain animation. Specify 0 (low<br />

quality) to prevent anti-aliasing. This property can overwrite the global _highquality<br />

property.<br />

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

Example<br />

The following <strong>ActionScript</strong> specifies that best quality anti-aliasing should be applied to the<br />

SWF file.<br />

my_mc._highquality = 2;<br />

See also<br />

_quality (MovieClip._quality property), _quality property<br />

890 <strong>ActionScript</strong> classes

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

Saved successfully!

Ooh no, something went wrong!