# Re-sizing a movieclip with keyboard without on(keyPress "x")

**URL:** <https://forum.kirupa.com/t/re-sizing-a-movieclip-with-keyboard-without-on-keypress-x/36531>\
**Category:** Uncategorized\
**Created:** [November 27, 2003, 8:12pm UTC](https://forum.kirupa.com/t/re-sizing-a-movieclip-with-keyboard-without-on-keypress-x/36531 "2003-11-27T20:12:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![k\_boy](https://avatars.discourse-cdn.com/v4/letter/k/13edae/32.png) [@k\_boy](https://forum.kirupa.com/u/k_boy)\
**Post date:** [November 27, 2003, 8:12pm UTC](https://forum.kirupa.com/t/re-sizing-a-movieclip-with-keyboard-without-on-keypress-x/36531/1 "2003-11-27T20:12:40Z")

</div>

How can I re-size a movieclip with a button on the keyboard **without** using on(keyPress “x”)? The code will be placed inside a function, like this

[AS]function control2(){  
on (keyPress “x”) {

```
happenings

```

}  
}[/AS]
