# Controlling External SWF With Keypress?

**URL:** <https://forum.kirupa.com/t/controlling-external-swf-with-keypress/244141>\
**Category:** flash\
**Created:** [November 14, 2007, 5:06pm UTC](https://forum.kirupa.com/t/controlling-external-swf-with-keypress/244141 "2007-11-14T17:06:36Z")\
**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 14, 2007, 5:06pm UTC](https://forum.kirupa.com/t/controlling-external-swf-with-keypress/244141/1 "2007-11-14T17:06:36Z")

</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]
