JeremyH
09-09-2008, 02:59 PM
Is there a way to change the level of a movie that is already loaded?
"base.swf" is my level 0 movie. On opening, I have a script loadMovie("map.swf", 10). On "map.swf" is a button with this script:
on(release) {
loadMovieNum("site.swf", 15);
}
"site.swf" is a large file so I would hate for the user to have to reaload it if they closed it but wanted to view it again. Instead of unloading the movie, I thought I could just change the level so it would sit below "map.swf" at level 5 so when the user hit the button again in "map.swf", the level would change again to level 15, putting it on top of "map.swf".
I thought loadMovieNum("site.swf", 5) would change the movie level, putting it at a lower level than "map.swf" which is at 10. It didn't work.
Is there a way to do this?
I am no Flash genius, so if you have a different approach to this project, please share it.
Thanks a lot!
Jeremy
"base.swf" is my level 0 movie. On opening, I have a script loadMovie("map.swf", 10). On "map.swf" is a button with this script:
on(release) {
loadMovieNum("site.swf", 15);
}
"site.swf" is a large file so I would hate for the user to have to reaload it if they closed it but wanted to view it again. Instead of unloading the movie, I thought I could just change the level so it would sit below "map.swf" at level 5 so when the user hit the button again in "map.swf", the level would change again to level 15, putting it on top of "map.swf".
I thought loadMovieNum("site.swf", 5) would change the movie level, putting it at a lower level than "map.swf" which is at 10. It didn't work.
Is there a way to do this?
I am no Flash genius, so if you have a different approach to this project, please share it.
Thanks a lot!
Jeremy