# '(' expected

**URL:** <https://forum.kirupa.com/t/expected/236945>\
**Category:** flash\
**Created:** [August 25, 2007, 10:06am UTC](https://forum.kirupa.com/t/expected/236945 "2007-08-25T10:06:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![stillbeating](https://avatars.discourse-cdn.com/v4/letter/s/c57346/32.png) [@stillbeating](https://forum.kirupa.com/u/stillbeating)\
**Post date:** [August 25, 2007, 10:06am UTC](https://forum.kirupa.com/t/expected/236945/1 "2007-08-25T10:06:15Z")

</div>

I’m making a beat 'em up style game where you click a button and your character attacks…  
heres my problem. on the button named ‘punch’ i want it so when you enter a certain frame on the ‘ragebar’ the enemy starts to go red.  
i think i got the code right

on (release)  
{\_root.joe.gotoAndPlay(Punch);}  
on {\_root.ragebar.enterFrame(‘red1’); gotoAndPlay(‘gored’);}

but it keeps saying ‘(’ expected  
and no matter what i do, it says the same thing OR says other things are wrong and the ‘(’ expected again…

help would be greatly apprectiated.  
Thanks.
