HMW5 .

Florence Gouvrit-Montano

SCENE CODE frame1


function removeAllf1() {
botbuttonA.removeEventListener(MouseEvent.CLICK, onClick1a );
botbuttonB.removeEventListener(MouseEvent.CLICK, onClick1B );
botbuttonC.removeEventListener(MouseEvent.CLICK, onClick1C );
//botbuttonD.removeEventListener(MouseEvent.CLICK, onClick1D );
//botbuttonM.removeEventListener(MouseEvent.CLICK, onClickM );
}
stop();

--------------------

BOTON LAYERS frame 1


function onClick1a(e:MouseEvent):void {
removeAllf1 ();
gotoAndPlay("1a");
}
function onClickAa(e:MouseEvent):void {
gotoAndPlay("Aa");
}
function onClickMa(e:MouseEvent):void {
gotoAndPlay("Ma");
}

// attach listeners to event sources
botbuttonA.addEventListener(MouseEvent.CLICK, onClick1a );

----------------------

BOTON LAYERS frame where animation is

stop();

// attach listeners to event sources
botbuttonA.addEventListener(MouseEvent.CLICK, onClickAa );

 

-