# Question on Load movie?

**URL:** https://forum.kirupa.com/t/question-on-load-movie/10039
**Category:** flash
**Created:** [December 23, 2002, 4:48am UTC](https://forum.kirupa.com/t/question-on-load-movie/10039 "2002-12-23T04:48:31Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Alex](https://avatars.discourse-cdn.com/v4/letter/a/db5fbb/32.png) [@Alex](https://forum.kirupa.com/u/Alex)
#### Post date: [December 23, 2002, 4:48am UTC](https://forum.kirupa.com/t/question-on-load-movie/10039/1 "2002-12-23T04:48:31Z")

</div>

I found this code and i was wondering where it says container.\_x = 150 what does that mean. is there where the box it going to open.

thanks

but.onPress = function () {  
\_root.createEmptyMovieClip(“container”, 1);  
loadMovie(“loaded.swf”, “container”);  
container.\_x = 150 ;  
container.\_y = 20 ;  
}🙂

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [December 23, 2002, 4:52am UTC](https://forum.kirupa.com/t/question-on-load-movie/10039/2 "2002-12-23T04:52:46Z")

</div>

That refers to where the newly created “container” movieclip sits on the X axis. If you edit the numbers in the x and y axis then it will change the position of your “container” movieclip that was created.

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [December 23, 2002, 4:54am UTC](https://forum.kirupa.com/t/question-on-load-movie/10039/3 "2002-12-23T04:54:12Z")

</div>

This will explain better.  
When you press the button it will creat a new MC and will go on the stage at the cordinates.  
witch is \_y and \_x

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [December 23, 2002, 4:56am UTC](https://forum.kirupa.com/t/question-on-load-movie/10039/4 "2002-12-23T04:56:53Z")

</div>

i put the code in for the button but my new movie doesnt load. i get the error message -

Scene=Main, Layer=Layer 2, Frame=2: Line 1: Statement must appear within on handler  
but.onPress = function () {

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [December 23, 2002, 4:20pm UTC](https://forum.kirupa.com/t/question-on-load-movie/10039/5 "2002-12-23T16:20:39Z")

</div>

Im trying to get the effect of opening the box when you click on the menu buttons. after the box opens, i want to have a close button but im not sure how to make the close button work

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [December 23, 2002, 5:48pm UTC](https://forum.kirupa.com/t/question-on-load-movie/10039/6 "2002-12-23T17:48:46Z")

</div>

that code must go on the timeline, not on the button.

=)
