# How can i add an actionscript on the main movie that will control an external swf:(

**URL:** https://forum.kirupa.com/t/how-can-i-add-an-actionscript-on-the-main-movie-that-will-control-an-external-swf/237211
**Category:** Uncategorized
**Created:** [August 28, 2007, 6:41am UTC](https://forum.kirupa.com/t/how-can-i-add-an-actionscript-on-the-main-movie-that-will-control-an-external-swf/237211 "2007-08-28T06:41:13Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![nico](https://avatars.discourse-cdn.com/v4/letter/n/b5a626/32.png) [@nico](https://forum.kirupa.com/u/nico)
#### Post date: [August 28, 2007, 6:41am UTC](https://forum.kirupa.com/t/how-can-i-add-an-actionscript-on-the-main-movie-that-will-control-an-external-swf/237211/1 "2007-08-28T06:41:13Z")

</div>

help me guys, i have two movies, mainmovie.swf and loaded.swf…

loaded swf has movieclip inside it named button1.  
i want to create an button1.onRelease = function(){} but instead of writing the actionscript on the loaded swf movie. i added it on the mainmovie.swf…

is this possible, i will control the external movieclip by adding its actionscript in the mainmovie… the loaded.swf doesnt have actionscript, all of my as will go on the mainmovie… help please:(
