My site successfully uses ‘attachMovie’ to grab some pages from the library. I use this method so that these key pages are preloaded as they are (loaded before frame 1)
I have now added a page that uses ‘loadMovie’. It’s a big one (119kB) and it has its own preloader. Eerything worked well when I tested it, but the buttons that used attachMovie no longer worked.
Any ideas please ?
Oh, and what is the difference between loadMovie and loadMovieNum ?
i have solved it, I wasn’t using ‘unloadMovie’. I dodn’t think I had to. I thought that attachMovie and loadMovie were effectively the same in as much as they would load on top of the target host movie.
// my cut down code is:
on (press) {
_root.content.unloadMovie("test.swf");
// this movie (test) would have been loaded into content by a loadMovie action
}
on (release) {
_root.content.attachMovie(“about”, “content”, 0);
// this movie (about) is the new movie to replace test.swf.
}
The code works but because I am not very confident and experienced in this, I can’t help feel that there is a “correct” way