# Can someone fix my FLA? :(

**URL:** <https://forum.kirupa.com/t/can-someone-fix-my-fla/11844>\
**Category:** Uncategorized\
**Created:** [January 23, 2003, 3:48am UTC](https://forum.kirupa.com/t/can-someone-fix-my-fla/11844 "2003-01-23T03:48:18Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Afro\_Ninja](https://avatars.discourse-cdn.com/v4/letter/a/85e7bf/32.png) [@Afro\_Ninja](https://forum.kirupa.com/u/Afro_Ninja)\
**Post date:** [January 23, 2003, 3:48am UTC](https://forum.kirupa.com/t/can-someone-fix-my-fla/11844/1 "2003-01-23T03:48:18Z")

</div>

ok so the object is one guy chasing another. I want the second guy to jump by pressing the space bar. The thing that confounds me is that it works fine for a bit, but will stop working after a few seconds. It seems simple… the guy running is a mc. When space is pressed, it skips to a different frame in the mc (the jump animation).

I threw in the “jumpok” variable so once the jump animation starts it can’t be restarted till the guy lands.

argh

---

<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:** [January 23, 2003, 4:12am UTC](https://forum.kirupa.com/t/can-someone-fix-my-fla/11844/2 "2003-01-23T04:12:41Z")

</div>

if anyone can figure out the problem, you don’t have to repost it fixed or anything, just let me know the code error.

thanks!

---

<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:** [January 23, 2003, 4:30am UTC](https://forum.kirupa.com/t/can-someone-fix-my-fla/11844/3 "2003-01-23T04:30:04Z")

</div>

Just thought I’d mention in the Animation/People/ Section of flashkit there’s a similar project where a woman is running and clicking the mouse she spazzes out and falls over… it reloops after completion… [Walking lady](http://www.flashkit.com/movies/Animations/Vector_Animations/People/Walking_-Magne_St-5182/index.php)

and man jumping  
[jump! jumo!](http://www.flashkit.com/movies/Animations/Vector_Animations/People/Jump-Gompie-2571/index.php)

Maybe that will help…

---

<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:** [January 23, 2003, 4:37am UTC](https://forum.kirupa.com/t/can-someone-fix-my-fla/11844/4 "2003-01-23T04:37:19Z")

</div>

hmmm those seem to be done with buttons though… with a button you can make it so that only one frame is clickable, wheras with key input you can press a keyboard button at any time.

Of course that’s my non-educated opinion. I could be completely wrong.

---

<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:** [January 23, 2003, 7:25am UTC](https://forum.kirupa.com/t/can-someone-fix-my-fla/11844/5 "2003-01-23T07:25:13Z")

</div>

Write an action script function using the

if (Key.isDown(Key.SHIFT)) {  
\<goto swf for the jumping guy\> ;

} else {

\<loop the running mc\> ;

}  
}

Just an idea…
