EasyManua.ls Logo

MACROMEDIA FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE - Visible (Movieclip._Visible Property)

MACROMEDIA FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE
780 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
522 ActionScript classes
Example
The following example displays the URL of the image that is loaded into the
image_mc
instance in the Output panel.
this.createEmptyMovieClip("image_mc", 1);
var mclListener:Object = new Object();
mclListener.onLoadInit = function(target_mc:MovieClip) {
trace("_url: "+target_mc._url);
};
var image_mcl:MovieClipLoader = new MovieClipLoader();
image_mcl.addListener(mclListener);
image_mcl.loadClip("http://www.helpexamples.com/flash/images/image1.jpg",
image_mc);
_visible (MovieClip._visible property)
public _visible : Boolean
A Boolean value that indicates whether the movie clip is visible. Movie clips that are not
visible (
_visible property set to false) are disabled. For example, a button in a movie clip
with
_visible set to false cannot be clicked.
Availability: ActionScript 1.0; Flash Lite 2.0
Example
The following example sets the
_visible property for two movie clips called myMC1_mc and
myMC2_mc. The property is set to true for one instance, and false for the other. Notice that
myMC1_mc instance cannot be clicked after the _visible property is set to false.
myMC1_mc.onRelease = function() {
trace(this._name+"._visible = false");
this._visible = false;
};
myMC2_mc.onRelease = function() {
trace(this._name+"._alpha = 0");
this._alpha = 0;
};
See also
_visible (Button._visible property), _visible (TextField._visible property)

Table of Contents

Related product manuals