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:
"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.
You got me thinking about this some more. I think the root of my problem is that I want "site.swf" to remain in the cache so it can be called up quickly when the user hits the button to view it again.
When I test my movie (with Simulate Download) I can tell that unloadMovie removes it from the cache because "site.swf" has to completely reload. What method would keep a previously loaded movie in the cache?
I'm not sure, can't you store it in another variable before unloading? If you load it into Flash, you should be able to save it as some kind of variable, so you can call it later without downloading again.
(this reply keeps getting eaten up, so here is my 3rd retype...)
I think the problem was that the Simulate Download setting made it look like my "site.swf" files would need to completely reload each time a button is clicked to open them. On the Adobe forum, I read that the images in those swf's should be cached by the browser and will open quickly on revisits. I'll upload and see how my project works in the real world.
Thanks, Kirl, for your help. I guess this was aconfusing post.