Closing a container movie

  • maxijazz
  • Beginner
  • Beginner
  • No Avatar
  • Joined: Jan 26, 2005
  • Posts: 39
  • Loc: Milton Keynes
  • Status: Offline

Post May 18th, 2005, 7:41 am

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
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post May 18th, 2005, 7:41 am

  • lostinbeta
  • Guru
  • Guru
  • User avatar
  • Joined: Jun 26, 2003
  • Posts: 1402
  • Loc: Philadelphia, PA
  • Status: Offline

Post May 22nd, 2005, 3:10 pm

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 44 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
 
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.