# Control External MC With Keypress?

**URL:** https://forum.kirupa.com/t/control-external-mc-with-keypress/244212
**Category:** Uncategorized
**Created:** [November 15, 2007, 9:30am UTC](https://forum.kirupa.com/t/control-external-mc-with-keypress/244212 "2007-11-15T09:30:03Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![buckhouston](https://avatars.discourse-cdn.com/v4/letter/b/35a633/32.png) [@buckhouston](https://forum.kirupa.com/u/buckhouston)
#### Post date: [November 15, 2007, 9:30am UTC](https://forum.kirupa.com/t/control-external-mc-with-keypress/244212/1 "2007-11-15T09:30:03Z")

</div>

[FONT=Georgia]Hey guys - I’m a noob (someone has to be) and i’ve got a bit of a prob,  
I don’t use Flash all the time so my grasp of AS aint so hot sorry, here it is:

I have a mainmovie.swf and am loading in external.swf into a blank movieclip with loadmovie, on the external.swf I have this:

on(keyPress “\<Right\>”){  
gotoAndPlay(“img3”);  
}

which works fine. My question is, how could I get this to work the same in the main.swf?

Also please note that the main.swf is stopped at this point and the external.swf has a number of different actions on different frames, so I am looking for someway to maintain the external.swf’s actions and somehow make them just work through the toplevel if you know what I mean??? Sorry if thats a bit confusing!!!

Cheers guys. Jimbo!![/FONT]
