Wednesday, April 22, 2009

WED. scripts FRAME 1

stop();

btnBlack.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandlerD);
function mouseDownHandlerD(event:MouseEvent):void {
    gotoAndStop(2);
}

btnRed.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandlerH);
function mouseDownHandlerH(event:MouseEvent):void {
    gotoAndStop(6);
}





btnYellow.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandlerA);
function mouseDownHandlerA(event:MouseEvent):void {
    gotoAndStop(5);
}

btnCyan.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandlerB);
function mouseDownHandlerB(event:MouseEvent):void {
    gotoAndStop(4);
}

btnGreen.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandlerC);
function mouseDownHandlerC(event:MouseEvent):void {
    gotoAndStop(3);
}

No comments:

Post a Comment