# Input Commands for a Game Not Working Outside of Compiler?

**URL:** <https://forum.kirupa.com/t/input-commands-for-a-game-not-working-outside-of-compiler/325814>\
**Category:** Uncategorized\
**Created:** [November 6, 2011, 4:04am UTC](https://forum.kirupa.com/t/input-commands-for-a-game-not-working-outside-of-compiler/325814 "2011-11-06T04:04:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Scheisse](https://avatars.discourse-cdn.com/v4/letter/s/839c29/32.png) [@Scheisse](https://forum.kirupa.com/u/Scheisse)\
**Post date:** [November 6, 2011, 4:04am UTC](https://forum.kirupa.com/t/input-commands-for-a-game-not-working-outside-of-compiler/325814/1 "2011-11-06T04:04:21Z")

</div>

I am trying to accept inputs for special moves in a game I am making. The following code works fine inside of the Flash Pro program, but once it is compiled to a SWF it no longer works.

The buttons that I use for this are Z,A and C and none of them work. All I do is add a “Z” “A” or “C” to an array and pop the last one every time. If the 3 most recent inputs match what the special move is, it does the moves.

Again, it works fine in Flash, but once it’s in the SWF it doesn’t. Anyone know what I could be doing wrong?

```auto

public function TestSpecialAttack(SpecialAttack)
{
    if(SpecialAttack[0] == playerInput[0] &&
    SpecialAttack[1] == playerInput[1] &&
    SpecialAttack[2] == playerInput[2])

    return true;
}

```

Does Flash have a problem using those buttons properly in a SWF?

Thanks in advance.
