Width (Button._Width Property) - MACROMEDIA FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE Reference

Actionscript 2.0 language reference
Table of Contents

Advertisement

Example
Create two buttons on the Stage with the instance names
Enter the following ActionScript in Frame 1 of the Timeline:
myBtn1_btn.onRelease = function() {
this._visible = false;
trace("clicked "+this._name);
};
myBtn2_btn.onRelease = function() {
this._alpha = 0;
trace("clicked "+this._name);
};
Notice how you can still click
See also
_visible (MovieClip._visible property)
property)

_width (Button._width property)

public _width : Number
The width of the button, in pixels.
Availability: ActionScript 1.0; Flash Player 6
Example
The following example increases the width property of a button called
the width in the Output panel. Enter the following ActionScript in Frame 1 of the Timeline:
my_btn.onRelease = function() {
trace(this._width);
this._width ~= 1.1;
};
See also
_width (MovieClip._width property)
376
ActionScript classes
after the alpha is set to 0.
myBtn2_btn
,
_visible (TextField._visible
and
myBtn1_btn
myBtn2_btn
, and displays
my_btn
.

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

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

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flash 8

Table of Contents

Save PDF