# A little number action

**URL:** <https://forum.kirupa.com/t/a-little-number-action/240296>\
**Category:** flash\
**Created:** [October 1, 2007, 7:09pm UTC](https://forum.kirupa.com/t/a-little-number-action/240296 "2007-10-01T19:09:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![stratcat](https://avatars.discourse-cdn.com/v4/letter/s/8797f3/32.png) [@stratcat](https://forum.kirupa.com/u/stratcat)\
**Post date:** [October 1, 2007, 7:09pm UTC](https://forum.kirupa.com/t/a-little-number-action/240296/1 "2007-10-01T19:09:54Z")

</div>

This seems like such a simple task but I seem to be going about it wrong. I want to be able to toggle on and off different movieclips in a scene by pressing an assigned key number (on the keyboard and number pad) like: 1 would make movieclip1 start and stop, 2 would make movieclip2 start and stop, etc. I got it to work with the spacebar but with that, I can’t target specific movieclips. Tried different scenarios with key listener events but I must have missed a step. Also, would this be an actionscript that’s attached to each individual movieclip itself or something that must take place on the main timeline? Any ideas? Thanks for your wisdom!
