Event
Description
Invoked when the pointer moves over a button area.
onRollOver
=
function() {}
Invoked when a button receives keyboard focus.
onSetFocus
=
function(oldFocu
s:Object) {}
Method summary
Modifiers
Signature
getDepth() : Number
Methods inherited from class Object
addProperty (Object.addProperty
(Object.hasOwnProperty
(Object.isPropertyEnumerable
method),
registerClass (Object.registerClass
(Object.toString
(Object.valueOf
method),
_alpha (Button._alpha property)
public _alpha : Number
The alpha transparency value of the button specified by
transparent) to 100 (fully opaque). The default value is 100. Objects in a button with
set to 0 are active, even though they are invisible.
Availability: ActionScript 1.0; Flash Player 6
Example
The following code sets the
user clicks the button. First, add a Button instance on the Stage. Second, give it an instance
name of myBtn_btn. Lastly, with frame 1 selected, place the following code into the Actions
panel:
myBtn_btn.onRelease = function(){
this._alpha = 50;
};
See also
_alpha (MovieClip._alpha property)
Description
Returns the depth of the button instance.
method),
method),
isPropertyEnumerable
method),
method),
unwatch (Object.unwatch
watch (Object.watch method)
property of a button named myBtn_btn to 50% when the
_alpha
,
hasOwnProperty
isPrototypeOf (Object.isPrototypeOf
method),
method),
. Valid values are 0 (fully
my_btn
_alpha (TextField._alpha property)
toString
valueOf
_alpha
Button
347
Need help?
Do you have a question about the FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE and is the answer not in the manual?