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.

};<br />

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

//<br />

start_button.clickH<strong>and</strong>ler = function() {<br />

trace("Starting...");<br />

start_button.enabled = false;<br />

stop_button.enabled = true;<br />

//<br />

image_mcl.addListener(mclListener);<br />

image_mcl.loadClip("http://www.helpexamples.com/flash/images/<br />

image1.jpg", image_mc);<br />

};<br />

stop_button.clickH<strong>and</strong>ler = function() {<br />

trace("Stopping...");<br />

start_button.enabled = true;<br />

stop_button.enabled = false;<br />

//<br />

image_mcl.removeListener(mclListener);<br />

};<br />

stop_button.enabled = false;<br />

If your SWF file includes a version 2 component, use the version 2 component's<br />

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

used in this example.<br />

See also<br />

addListener (MovieClipLoader.addListener method)<br />

unloadClip (MovieClipLoader.unloadClip method)<br />

public unloadClip(target:Object) : Boolean<br />

Removes a movie clip that was loaded by using MovieClipLoader.loadClip(). If you issue<br />

this comm<strong>and</strong> while a movie is loading, MovieClipLoader.onLoadError is invoked.<br />

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

Parameters<br />

target:Object - The string or integer that is passed to the corresponding call to<br />

my_mcl.loadClip().<br />

Returns<br />

Boolean - A Boolean value. Returns true if the movie clip was removed successfully;<br />

otherwise false.<br />

MovieClipLoader 973

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

Saved successfully!

Ooh no, something went wrong!