# Jumping when space is pressed

**URL:** <https://forum.kirupa.com/t/jumping-when-space-is-pressed/196928>\
**Category:** Uncategorized\
**Created:** [August 11, 2006, 10:01pm UTC](https://forum.kirupa.com/t/jumping-when-space-is-pressed/196928 "2006-08-11T22:01:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bakamaru](https://avatars.discourse-cdn.com/v4/letter/b/bc8723/32.png) [@Bakamaru](https://forum.kirupa.com/u/Bakamaru)\
**Post date:** [August 11, 2006, 10:01pm UTC](https://forum.kirupa.com/t/jumping-when-space-is-pressed/196928/1 "2006-08-11T22:01:55Z")

</div>

I need to know what actionscript(2.0) to use in order to make my movieclip(player) jump when i press space and switch to another movieclip(player\_jump) and then switch back to “player” when it reaches the ground. otherwise i won’t be able to get my skateboarder to ollie(just so you know what kind of game it’s going to be).  
 ![](http://skate.websitedork.com/images/template.jpg)  
my movieclips(sorry about the watermarks…)
