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.

with (box_mc) {<br />

lineStyle(1, 0xCCCCCC);<br />

beginFill(0xEEEEEE);<br />

moveTo(0, 0);<br />

lineTo(80, 0);<br />

lineTo(80, 60);<br />

lineTo(0, 60);<br />

lineTo(0, 0);<br />

endFill();<br />

};<br />

box_mc.onRollOver = function() {<br />

this._x -= this._width/2;<br />

this._y -= this._height/2;<br />

this._xscale = 200;<br />

this._yscale = 200;<br />

};<br />

box_mc.onRollOut = function() {<br />

this._xscale = 100;<br />

this._yscale = 100;<br />

this._x += this._width/2;<br />

this._y += this._height/2;<br />

};<br />

See also<br />

_height (MovieClip._height property), _x (MovieClip._x property), _xscale<br />

(MovieClip._xscale property), _y (MovieClip._y property)<br />

MovieClipLoader<br />

Object<br />

|<br />

+-MovieClipLoader<br />

public class MovieClipLoader<br />

extends Object<br />

This class lets you implement listener callbacks that provide status information while SWF,<br />

JPEG, GIF, <strong>and</strong> PNG files are being loaded into movie clips. To use MovieClipLoader<br />

features, use MovieClipLoader.loadClip() instead of loadMovie() or<br />

MovieClip.loadMovie() to load SWF files.<br />

Note: MovieClipLoader support for GIF <strong>and</strong> PNG file formats was new to Flash 8. If you<br />

import a project from an earlier version of the tool, you need to update the Publish settings to<br />

target Flash 8, or later, otherwise only SWF <strong>and</strong> JPEG file formats will work.<br />

954 <strong>ActionScript</strong> classes

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

Saved successfully!

Ooh no, something went wrong!