package {
import flash.display.MovieClip;
import flash.events.*;
public class Button extends MovieClip {
var snd:Sound;
var wtf:MovieClip;
public function HexaClock() {
this.addEventListener(MouseEvent.ROLL_OVER, function() {
if (wtf != null) {
wtf.gotoAndPlay("over");
}
});
this.addEventListener(MouseEvent.ROLL_OUT, function() {
if (wtf != null) {
wtf.gotoAndPlay("out");
}
});
/* BLAH - BLAH */
this.addEventListener(MouseEvent.CLICK, function () {
if (snd != null) {
snd.play();
}
if (wtf != null) {
wtf.gotoAndPlay("press");
}
});
}
}