# Using LoadMovie?

**URL:** https://forum.kirupa.com/t/using-loadmovie/191818
**Category:** Uncategorized
**Created:** [June 23, 2006, 8:14am UTC](https://forum.kirupa.com/t/using-loadmovie/191818 "2006-06-23T08:14:44Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![kramp](https://avatars.discourse-cdn.com/v4/letter/k/ac91a4/32.png) [@kramp](https://forum.kirupa.com/u/kramp)
#### Post date: [June 23, 2006, 8:14am UTC](https://forum.kirupa.com/t/using-loadmovie/191818/1 "2006-06-23T08:14:44Z")

</div>

Hi all,  
I need some help with getting a piece of action script right - hope someone can help .

I have a button within a movieclip. The movie clip sits on the main timeline, & there is a stop action on the main timeline at frame 517. I want the button to execute the loading of an external swf file into an empty movieclip ( instance name - a ) which sits on the main timeline at frame 518. So, i need the actionscript on the button to start the main timeline, & load the external.swf file ( called cap1.swf) into the empty movie clip ( instance name - a) so that it plays on the main timeline.

The code that i have attached to the button is :

on (press) {  
\_root.play();  
} (starts the main timeline ok)

on (press) {  
this.\_parent.a.loadMovie(“cap1.swf”);  
} (should load the movieclip - but doesnt)

However, the external.swf does not load into the empty movieclip. What is it that i’m getting wrong ??

Thanks.
