| Package | net.guttershark.display |
| Class | public dynamic class MovieClipButton |
| Inheritance | MovieClipButton flash.display.MovieClip |
A frame in the movie clip represents a state that the button is in.
Default frame states:
locked property.Sound support is also available for each of the button states.
Sound Properties
This class also uses high priority event listeners for mouse events.
When you set the locked property, all MouseEvents will not
be dispatched. If you absolutely need mouse events even though the button is locked,
you can add an event listener with a higher priority than 10.
| Property | Defined by | ||
|---|---|---|---|
| downFrame : int = 3
The frame to go to for the down state.
| MovieClipButton | ||
| downSound : String
The down sound to play.
| MovieClipButton | ||
| lockable : Boolean = false
Set whether or not this button is lockable.
| MovieClipButton | ||
| locked : Boolean
Lock or unlock the button.
| MovieClipButton | ||
| lockedFrame : int = 4
The frame to go to for the (optional)
locked state.
| MovieClipButton | ||
| lockSound : String
The sound to play when this button is locked.
| MovieClipButton | ||
| normalFrame : int = 1
The frame to go to for the normal state.
| MovieClipButton | ||
| outSound : String
The out sound to play.
| MovieClipButton | ||
| overFrame : int = 2
The frame to go to for the over state.
| MovieClipButton | ||
| overSound : String
The over sound to play.
| MovieClipButton | ||
| unlockSound : String
The sound to play when this movie clip is unlocked.
| MovieClipButton | ||
| upSound : String
The up sound to play.
| MovieClipButton | ||
| Method | Defined by | ||
|---|---|---|---|
|
Constructor for MovieClipButton instances.
| MovieClipButton | ||
| Constant | Defined by | ||
|---|---|---|---|
| LOCKED : String = "locked" [static]
Event identifier for the locked state
| MovieClipButton | ||
| UNLOCKED : String = "unlocked" [static]
Event identifier for the unlocked state
| MovieClipButton | ||
| downFrame | property |
public var downFrame:int = 3The frame to go to for the down state.
| downSound | property |
public var downSound:StringThe down sound to play. The SoundManager class is used internally here, so that sound should have been registered with the SoundManager previously.
| lockable | property |
public var lockable:Boolean = falseSet whether or not this button is lockable. If so, it uses the lockedFrame when enabled is set to false.
| locked | property |
locked:Boolean [read-write]Lock or unlock the button.
Implementation public function get locked():Boolean
public function set locked(value:Boolean):void
| lockedFrame | property |
public var lockedFrame:int = 4The frame to go to for the (optional) locked state.
| lockSound | property |
public var lockSound:StringThe sound to play when this button is locked. The SoundManager class is used internally here, so that sound should have been registered with the SoundManager previously.
| normalFrame | property |
public var normalFrame:int = 1The frame to go to for the normal state.
| outSound | property |
public var outSound:StringThe out sound to play. The SoundManager class is used internally here, so that sound should have been registered with the SoundManager previously.
| overFrame | property |
public var overFrame:int = 2The frame to go to for the over state.
| overSound | property |
public var overSound:StringThe over sound to play. The SoundManager class is used internally here, so that sound should have been registered with the SoundManager previously.
| unlockSound | property |
public var unlockSound:StringThe sound to play when this movie clip is unlocked. The SoundManager class is used internally here, so that sound should have been registered with the SoundManager previously.
| upSound | property |
public var upSound:StringThe up sound to play. The SoundManager class is used internally here, so that sound should have been registered with the SoundManager previously.
| MovieClipButton | () | constructor |
public function MovieClipButton()Constructor for MovieClipButton instances. Generally you want to bind this class to a movie clip in the library.
| LOCKED | constant |
public static const LOCKED:String = "locked"Event identifier for the locked state
| UNLOCKED | constant |
public static const UNLOCKED:String = "unlocked"Event identifier for the unlocked state