MACROMEDIA FLEX-FLEX ACTIONSCRIPT LANGUAGE Reference page 626

Actionscript language reference
Table of Contents

Advertisement

Description
Property; a Boolean value that indicates whether the movie clip specified by
Movie clips that are not visible (
button in a movie clip with
Example
The following example sets the
. The property is set to
myMC2_mc
instance cannot be clicked after the
myMC1_mc
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
TextField._visible
MovieClip._width
Availability
Flash Player 4 as a read-only property.
Usage
my_mc._width:Number
Description
Property; the width of the movie clip, in pixels.
Example
The following code example writes the height and width of a movie clip to the log file:
this.createEmptyMovieClip("image_mc", this.getNextHighestDepth());
var image_mcl:MovieClipLoader = new MovieClipLoader();
var mclListener:Object = new Object();
mclListener.onLoadInit = function(target_mc:MovieClip) {
trace(target_mc._name+" = "+target_mc._width+" X "+target_mc._height+"
pixels");
};
image_mcl.addListener(mclListener);
image_mcl.loadClip("http://www.macromedia.com/devnet/mx/blueprint/articles/
nielsen/spotlight_jnielsen.jpg", image_mc);
See also
MovieClip._height
626
Chapter 7: ActionScript for Flash
property set to
_visible
set to
_visible
false
property for two movie clips called
_visible
for one instance, and
true
_visible
) are disabled. For example, a
false
cannot be clicked.
for the other. Notice that
false
property is set to
is visible.
my_mc
and
myMC1_mc
.
false

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLEX-FLEX ACTIONSCRIPT LANGUAGE and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Flex

Table of Contents