jeudi 19 janvier 2017

type error #1009 button function

I seem to have a problem with type #1009 Error in buttons function code. The problem is that I put stop(); in each frame (two inner frames inside the button) for button and defined the entire button. Bi3 is next button that works, but bi2 does not. The problem is at the second line from bottom.

bi3.addEventListener(MouseEvent.MOUSE_DOWN, bi3Down)
bi3.addEventListener(MouseEvent.MOUSE_OVER, bi3Over)
bi3.addEventListener(MouseEvent.MOUSE_OUT, bi3Out)
bi2.addEventListener(MouseEvent.MOUSE_DOWN, bi2Down)
bi2.addEventListener(MouseEvent.MOUSE_OVER, bi2Over)
bi2.addEventListener(MouseEvent.MOUSE_OUT, bi2Out)

function bi3Down(event:Event):void{
    nextFrame();
}
function bi3Over(event:Event):void{
    bi3.gotoAndStop(2)
}
function bi3Out(event:Event):void{
    bi3.gotoAndStop(1)
}
function bi2Down(event:Event):void{
    gotoAndStop(35)
}
function bi2Over(event:Event):void{
    bi2.gotoAndStop(2)
}
function bi2Out(event:Event):void{
    bi2.gotoAndStop(1) 
}

Aucun commentaire:

Enregistrer un commentaire