Question on Load movie?

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 ;
}:slight_smile:

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.

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

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 () {

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

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

=)