# Igonoring a function call

**URL:** <https://forum.kirupa.com/t/igonoring-a-function-call/317815>\
**Category:** flash\
**Created:** [January 3, 2011, 11:43pm UTC](https://forum.kirupa.com/t/igonoring-a-function-call/317815 "2011-01-03T23:43:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jfx1026](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/jfx1026/32/2943_2.png) [@jfx1026](https://forum.kirupa.com/u/jfx1026)\
**Post date:** [January 3, 2011, 11:43pm UTC](https://forum.kirupa.com/t/igonoring-a-function-call/317815/1 "2011-01-03T23:43:58Z")

</div>

I’m building a simple matching game (still really early on) and I’m running into an odd situation where I’m making a simple function call and getting not action what-so-ever. Not even an error.

Here’s the function

```auto

//correct answer
function correctAnswer(evt:MouseEvent):void {
    question++;
    trace ("jump to question frame");
    trace ("frame # "+((q_rand [question])+10));
    //trace ("answers_jump");
    //trace (((q_rand [question])+1)*10);
    trace ("question # "+question);
    //trace (question);
    
    if (question == 10) {
        gotoAndStop("score");
    }

    //answers.gotoAndStop(((q_rand [question])+1)*10);
    gotoAndStop((q_rand [question])+10);

    trace ("----end-q----");
}

```

and my listener

```auto

correctButton.addEventListener(MouseEvent.MOUSE_UP, correctAnswer);

```

This same chunk of code works fine in initiating the first question, when not in a function. Any idea why it’s going dull?
