Closing a container movie

  • maxijazz
  • Beginner
  • Beginner
  • maxijazz
  • Posts: 39
  • Loc: Milton Keynes

Post 3+ Months Ago

storage.onRollOver = function() {
_root.createEmptyMovieClip("container", 1);
loadMovie("storage.swf", "container");
container._x = 261.6;
container._y = 51.0;

Hi all, could do with a little help please.

Im using flash mx,
ive been loading extra movies onto the screen by mouse clicks or rollover etc
using the above code to call and position movies onto new layers.
within the movies that load are close window buttons. There are two options for
closing the container. Either target or level. As the above code creates a layer 1 i
figured that choosing on relaese unloadmovie layer 1 would unload the movie, this didnt work.
Also tried unloadmovie taget container. Neither ways have prooved successful. Im sure its
something simple im doing wrong but i just cant seem to sort it out.
What command do assign to the button to make it close the container movie clip when pressed?
Thanks in advance Maxijazz
  • lostinbeta
  • Guru
  • Guru
  • User avatar
  • Posts: 1402
  • Loc: Philadelphia, PA

Post 3+ Months Ago

container.unloadMovie() should work. and to unload a level you would use unloadMovieNum().

But also, it's not a great method doing it like that because do to modem speed differences someone may not see your movie onRollover... they will have to wait for it to load which may not be instant. Also you don't need to recreate the container clip with each rollOver.

Post Information

  • Total Posts in this topic: 2 posts
  • Users browsing this forum: No registered users and 6 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum

© 1998-2017. Ozzu® is a registered trademark of Unmelted, LLC.