# Making flash stop and go with spacebar

**URL:** <https://forum.kirupa.com/t/making-flash-stop-and-go-with-spacebar/4873>\
**Category:** Uncategorized\
**Created:** [August 23, 2002, 2:37pm UTC](https://forum.kirupa.com/t/making-flash-stop-and-go-with-spacebar/4873 "2002-08-23T14:37:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![saraaimee](https://avatars.discourse-cdn.com/v4/letter/s/45deac/32.png) [@saraaimee](https://forum.kirupa.com/u/saraaimee)\
**Post date:** [August 23, 2002, 2:37pm UTC](https://forum.kirupa.com/t/making-flash-stop-and-go-with-spacebar/4873/1 "2002-08-23T14:37:45Z")

</div>

Hello,  
I was just wondering if anyone could help me make flash stop and then go when you press the space bar  
i tried to stop  
and then go to  
functions but i dont think i did it right.  
please help

saraaimee:rambo:

---

<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:** [August 23, 2002, 3:02pm UTC](https://forum.kirupa.com/t/making-flash-stop-and-go-with-spacebar/4873/2 "2002-08-23T15:02:30Z")

</div>

You can catch the event like that:

```auto
on (keyPress "<Space>") {
    trace ("Space pressed");
}

```

Then all you have to do is make it stop or play.

pom :asian:

Edit: Between the quotes, you must put \< Space \> without the space between \< and Space (weird sentence…)
