unloadMovie

  • jzauner
  • Born
  • Born
  • jzauner
  • Posts: 1

Post 3+ Months Ago

I'm trying to unload an externally loaded movie from the externally loaded movie.

The externally loaded movie:
1) The movie is nested
2) A button takes the play head to the last frame in the nested movie
3) The code on the last frame would unload the movie from the container in the other movie.

The movie loading the external movie:
1) The container is nested

The code that DOES load the external movie:

on (release) {
_parent.container.loadMovie("pumpOne.swf");
}

The code that does NOT unload the external movie (located on the last frame of the external, nested movie):

with(_root.movieMC){
container.unloadMovie("movieName.swf");
}
trace("container : " + container);
unloadMovieNum(25);
stop();

Any help is appreciated.
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • IceCold
  • Guru
  • Guru
  • User avatar
  • Posts: 1254
  • Loc: Ro

Post 3+ Months Ago

did u actually looked up for the unloadMovie syntax?
there's no parameter required.
basic stuff:
1) container.loadMovie("1.swf"); // -> overwrites everything that exists in container with 1.swf
2) container.loadMovie("2.swf"); // -> overwrites 1.swf with 2.swf (1.swf is lost)
3) container.unloadMovie(); // erase 2.swf from container

4) u can do:
container.container1.loadMovie("1.swf");
container.container2.loadMovie("2.swf");
container.container3.loadMovie("3.swf");
container.container1.unloadMovie();
// after this code, u`ll still have "2.swf" and "3.swf";

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-2014. Ozzu® is a registered trademark of Unmelted, LLC.