# Argh! Why won't this work?

**URL:** <https://forum.kirupa.com/t/argh-why-wont-this-work/86688>\
**Category:** Uncategorized\
**Created:** [April 14, 2005, 9:06pm UTC](https://forum.kirupa.com/t/argh-why-wont-this-work/86688 "2005-04-14T21:06:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![DevDreamer](https://avatars.discourse-cdn.com/v4/letter/d/c2a13f/32.png) [@DevDreamer](https://forum.kirupa.com/u/DevDreamer)\
**Post date:** [April 14, 2005, 9:06pm UTC](https://forum.kirupa.com/t/argh-why-wont-this-work/86688/1 "2005-04-14T21:06:46Z")

</div>

Alright, I’m just trying to make a simple space shooter game, all is good but one line of code won’t work…

Heres the whole thing:

onClipEvent(load){  
moveSpeed=15;  
root.laser.\_visible=false;  
laserCounter=1;

}  
onClipEvent (enterFrame) {

if (Key.isDown(Key.CONTROL) { laserCounter++;  
\_root.laser.duplicateMovieClip( “laser”+laserCounter, laserCounter );  
\_root[“laser”+laserCounter].\_visible=true;  
}

if (Key.isDown(Key.RIGHT)) {  
this.\_x+=moveSpeed;  
} else if (Key.isDown(Key.LEFT)) {  
this.\_x-=moveSpeed;  
}  
if (Key.isDown(Key.DOWN)) {  
this.\_y+=moveSpeed;  
} else if (Key.isDown(Key.UP)) {  
this.\_y-=moveSpeed;  
}

}

And heres the error I get:

**Error** Scene=Scene 1, layer=Ship, frame=1:Line 11: ‘)’ expected  
if (Key.isDown(Key.CONTROL) { laserCounter++;  
Total ActionScript Errors: 1 Reported Errors: 1

I’ve tried everything and nothing works… if anyone can help it would be greatly appreciated! Thank you.
