Duplicate Function Error
The code below is used to make a play, pause and stop button.
Flash keeps giving Duplicate Function Errors. It would be much appreciated if someone with more actionscript expertise could fix this error.
THANK YOU ![]()
![]()
![]()
![]()
stop();
start_btn.addEventListener(MouseEvent.CLICK, startMove);
stop_btn.addEventListener(MouseEvent.CLICK, stopMove);
pause_btn.addEventListener(MouseEvent.CLICK, pauseMove);
function startMove(e:MouseEvent):void {
play();
}
function stopMove(e:MouseEvent):void {
gotoAndPlay(1, 'Scene 1')
stop();
}
function pauseMove(e:MouseEvent):void {
stop();
}