Poms Code

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

The above code works great to create empty movie clips on the fly, but I’m having a problem with my scenes.

Once I click on a button, the movie clip will play fine. But when I click on something else, the movie clip keeps playing. And then everything becomes a mess…

Can anyone help me out?
tks
bellir

Don’t recreate your clip with every press, try this instead… (don’t know if it will work, it is untested and it is 1am, and I am tired…lol.

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

Well, the movie clips go on playing until you tell them to stop, Bellir. Either by stopping them, or removing them.

pom <:}