# Attacking problem

**URL:** <https://forum.kirupa.com/t/attacking-problem/242582>\
**Category:** Uncategorized\
**Created:** [October 28, 2007, 12:07am UTC](https://forum.kirupa.com/t/attacking-problem/242582 "2007-10-28T00:07:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![leonthelion](https://avatars.discourse-cdn.com/v4/letter/l/58956e/32.png) [@leonthelion](https://forum.kirupa.com/u/leonthelion)\
**Post date:** [October 28, 2007, 12:07am UTC](https://forum.kirupa.com/t/attacking-problem/242582/1 "2007-10-28T00:07:46Z")

</div>

I get a problem when I use this code:

```php
 
if(jabbing=false) && Key.isDown(88)){gotoAndPlay("jab")}}

```

The problem is I get this error when I try and run the game:

```php
 
**Error** Scene=Scene 1, layer=Layer 1, frame=1:Line 8: Unexpected '&&' encountered
      if(jabbing=false) && Key.isDown(88)){gotoAndPlay("jab")}}
Total ActionScript Errors: 1 Reported Errors: 1

```

So what my code does is if the variable jabbing = false and the x key is down then the stick figure will go to the “jab” frame. Thanks for helping me ^^

OFF TOPIC  
attach movie clip help needed ^^

> **[how does attachMovie work?](https://www.kirupa.com/forum/showthread.php?p=2231003)**
>
> Got a web design/development question or just want to hang out with the most awesome people on the planet? Drop on in!

  
I just need people to see if im right about each part of the code (commented)  
Thanks
