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.

See also<br />

_droptarget (MovieClip._droptarget property), startDrag function, stopDrag<br />

(MovieClip.stopDrag method)<br />

stop (MovieClip.stop method)<br />

public stop() : Void<br />

Stops the movie clip currently playing.<br />

You can extend the methods <strong>and</strong> event h<strong>and</strong>lers of the MovieClip class by creating a subclass.<br />

Example<br />

The following example shows how to stop a movie clip named aMovieClip:<br />

aMovieClip.stop();<br />

See also<br />

stop function<br />

stopDrag (MovieClip.stopDrag method)<br />

public stopDrag() : Void<br />

Ends a MovieClip.startDrag() method. A movie clip that was made draggable with that<br />

method remains draggable until a stopDrag() method is added, or until another movie clip<br />

becomes draggable. Only one movie clip is draggable at a time.<br />

You can extend the methods <strong>and</strong> event h<strong>and</strong>lers of the MovieClip class by creating a subclass.<br />

Note: This method is supported in Flash Lite only if System.capabilities.hasMouse is<br />

true or System.capabilities.hasStylus is true.<br />

Example<br />

The following example creates a draggable movie clip instance called mc_1:<br />

this.createEmptyMovieClip("mc_1", 1);<br />

with (mc_1) {<br />

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

beginFill(0x4827CF);<br />

moveTo(0, 0);<br />

lineTo(80, 0);<br />

lineTo(80, 60);<br />

lineTo(0, 60);<br />

lineTo(0, 0);<br />

endFill();<br />

468 ActionScript classes

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

Saved successfully!

Ooh no, something went wrong!