# Accessing contents of loaded SWF

**URL:** <https://forum.kirupa.com/t/accessing-contents-of-loaded-swf/183300>\
**Category:** flash\
**Created:** [March 25, 2006, 5:15pm UTC](https://forum.kirupa.com/t/accessing-contents-of-loaded-swf/183300 "2006-03-25T17:15:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hermet](https://avatars.discourse-cdn.com/v4/letter/h/4af34b/32.png) [@Hermet](https://forum.kirupa.com/u/Hermet)\
**Post date:** [March 25, 2006, 5:15pm UTC](https://forum.kirupa.com/t/accessing-contents-of-loaded-swf/183300/1 "2006-03-25T17:15:49Z")

</div>

I loaded an external swf into flash using loadMovie. The loaded movie has a hidden button which does some actions. How can I, by clicking on a button on flash execute the actions of the button which exists on the loaded swf?

---

<div class="post-metadata">

**Author:** ![NovemberRain](https://avatars.discourse-cdn.com/v4/letter/n/73ab20/32.png) [@NovemberRain](https://forum.kirupa.com/u/NovemberRain)\
**Post date:** [March 26, 2006, 8:43am UTC](https://forum.kirupa.com/t/accessing-contents-of-loaded-swf/183300/2 "2006-03-26T08:43:00Z")

</div>

The loaded movie merged to the holder movie clip in your base movie. For example if you have a empty movie clip (\_root.holder) on the stage. You are loading an exeternal SWF to that movie you can access the button instance name after  
\_root.holder. \<instance name of button in the external SWF)

\_root.holder.b1.onRelease = function () { // b1 is the button instance of movie clip  
//instance in external SWF  
//Do something.  
}  
You can write this script in the base movie’s first frame

:jailbreak

> [@Hermet](#):
>
> I loaded an external swf into flash using loadMovie. The loaded movie has a hidden button which does some actions. How can I, by clicking on a button on flash execute the actions of the button which exists on the loaded swf?
