# Need help with a simple problem

**URL:** <https://forum.kirupa.com/t/need-help-with-a-simple-problem/131383>\
**Category:** Uncategorized\
**Created:** [December 15, 2004, 5:58am UTC](https://forum.kirupa.com/t/need-help-with-a-simple-problem/131383 "2004-12-15T05:58:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![innoxist](https://avatars.discourse-cdn.com/v4/letter/i/a88e4f/32.png) [@innoxist](https://forum.kirupa.com/u/innoxist)\
**Post date:** [December 15, 2004, 5:58am UTC](https://forum.kirupa.com/t/need-help-with-a-simple-problem/131383/1 "2004-12-15T05:58:02Z")

</div>

I have an MC called “play\_mc” which is a box. On the first frame within the timeline of “play\_mc” is stop(); and on the second starts a animation, ending on frame 5 with stop();

Basically what I want is that when “play\_mc” is clicked, it will go into the animation. The problem is whenever it finishes the animation and I click it again, it does the animation all over again.

I’ve tried writing the code like this:

on(press) {  
if (\_currentFrame = 1) {  
gotoAndPlay(2);  
} else {  
stop();  
}  
}

But it doesn’t work. Anyone can help? Thanks in advance.

Here’s the fla: [Link](http://www.geocities.com/innoxism/play.fla)
