# Current frames

**URL:** <https://forum.kirupa.com/t/current-frames/58531>\
**Category:** flash\
**Created:** [July 23, 2004, 7:33am UTC](https://forum.kirupa.com/t/current-frames/58531 "2004-07-23T07:33:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![stockdill](https://avatars.discourse-cdn.com/v4/letter/s/5daacb/32.png) [@stockdill](https://forum.kirupa.com/u/stockdill)\
**Post date:** [July 23, 2004, 7:33am UTC](https://forum.kirupa.com/t/current-frames/58531/1 "2004-07-23T07:33:16Z")

</div>

Hi I am making a bowling game. There is a moving bowling ball which had 50 frames. If they press it during current frame 25 one thing will happen but if they press it for example during frame 10 a different thing will happen. The code I am using is

on (release) {

if(\_root.ball.\_currentframe == 1) {  
\_root.ballgutter1.play();

}else if(\_root.ball.\_currentframe == 2){  
\_root.ballgutter2.play();

It works fine, but will take me ages to do for all 50 frames, is there a way to say if current frame == 2 4 6 10 and 12 . As this would save me time?  
Hope someone can help  
Lesley :lol:

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 23, 2004, 7:39pm UTC](https://forum.kirupa.com/t/current-frames/58531/2 "2004-07-23T19:39:25Z")

</div>

[http://www.kirupaforum.com/forums/showthread.php?t=60750&highlight=statement](http://www.kirupaforum.com/forums/showthread.php?t=60750&highlight=statement)  
that help?

Prophet.
