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.

_url (MovieClip._url property)<br />

public _url : String [read-only]<br />

Retrieves the URL of the SWF, JPEG, GIF, or PNG file from which the movie clip was<br />

downloaded.<br />

Example<br />

The following example displays the URL of the image that is loaded into the image_mc<br />

instance in the Output panel.<br />

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

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

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

trace("_url: "+target_mc._url);<br />

};<br />

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

image_mcl.addListener(mclListener);<br />

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

image_mc);<br />

_visible (MovieClip._visible property)<br />

public _visible : Boolean<br />

A Boolean value that indicates whether the movie clip is visible. Movie clips that are not<br />

visible (_visible property set to false) are disabled. For example, a button in a movie clip<br />

with _visible set to false cannot be clicked.<br />

Example<br />

The following example sets the _visible property for two movie clips called myMC1_mc <strong>and</strong><br />

myMC2_mc. The property is set to true for one instance, <strong>and</strong> false for the other. Notice that<br />

myMC1_mc instance cannot be clicked after the _visible property is set to false.<br />

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

trace(this._name+"._visible = false");<br />

this._visible = false;<br />

};<br />

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

trace(this._name+"._alpha = 0");<br />

this._alpha = 0;<br />

};<br />

See also<br />

_visible (Button._visible property), _visible (TextField._visible property)<br />

MovieClip 475

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

Saved successfully!

Ooh no, something went wrong!