# Wierd output error

**URL:** <https://forum.kirupa.com/t/wierd-output-error/310800>\
**Category:** Uncategorized\
**Created:** [June 19, 2010, 7:32pm UTC](https://forum.kirupa.com/t/wierd-output-error/310800 "2010-06-19T19:32:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![SephirothOWA](https://avatars.discourse-cdn.com/v4/letter/s/439d5e/32.png) [@SephirothOWA](https://forum.kirupa.com/u/SephirothOWA)\
**Post date:** [June 19, 2010, 7:32pm UTC](https://forum.kirupa.com/t/wierd-output-error/310800/1 "2010-06-19T19:32:17Z")

</div>

Hey guys,

I’m a bit of a noob when it comes to flash and as3. Only started to learn just after Feb cos we had a Flash Game module in my university course. I like to think I’ve learnt quitre alot and can figure out most things but output errors are the hard things for me.

I’m working on adding a difficulty setting to my platofrm-type game but I got an error and cant figure out what’s actually wrong. I’m trying to click anywhere on the stage to take you to the next scene.  
The error says:

**ArgumentError: Error #1063: Argument count mismatch on LevelKey(). Expected 3, got 0.  
at flash.display::MovieClip/gotoAndPlay()  
at Engine/NormHandler()[Engine::frame3:55]  
ArgumentError: Error #1063: Argument count mismatch on Engine/startGame(). Expected 0, got 1.**

And my entire code for the scene is:

```auto
 stop();

stage.addEventListener(MouseEvent.CLICK, startGame)

function startGame ():void {
       stage.removeEventListener(MouseEvent.CLICK, startGame);
       Engine.playGame = true;
       gotoAndPlay(1, "Level One");
}

```

The error only comes up when I jump to this scene so I ruled out the possibility that the gotoAndPlay part from the previous function NormHandler rom the previous scene was the actual cause.  
The \*\*ArgumentError: Error #1063: Argument count mismatch on LevelKey(). Expected 3, got 0 \*\*error only comes up because there’s a movieclip on the scene which has no need for arguments (which is something I’ve encountered with some of my scenes but know what the problem is), so I know that shouldn’t have anything to do with it.

The NormHandler function does the same (pretty much) as they EasyHandler and that function works fine:

```auto
function EasyHandler(event:MouseEvent):void {
       clearSceneData_Mode();
       Engine.modeSelect = "Easy";
       Engine.playGame = true;
       gotoAndPlay(1, "Level One");
}

function NormHandler(event:MouseEvent):void {
       clearSceneData_Mode();
       Engine.modeSelect = "Normal";
       gotoAndPlay(1, "LevelKeys");
}

```

Any ideas on how I could fix this?

Thanks
