View Full Version : loadmovie question
dpcamp
11-09-2006, 04:46 PM
I'm making a website that is in all flash. I have the main page that has top bar with links and a mainpage that also have links. the links load a movie into a empy container that loads over the mainpage. The problem is when i load a new movie into the container, the links from the original main page, although not visible, are still clickable. I would assume that unloading the movie before i load the new movie would fix this. But if i did that the top bar would also unload and I don't want it to do that. what would be the best method to do this?
thanks
eldix
11-09-2006, 05:42 PM
you could try to 'hide' the buttons you want
instanceClip._visible=false;
anonymous
11-09-2006, 05:50 PM
The easiest is simply to add an invisible button on the lowest layer of the loaded movie itself, covering the whole stage area. This invisible button will override any other underlying symbol's actions. When you unload that movie, the underlying symbols become active again.
You can get rid of the pointing finger cursor on that invisible button by adding the following on the first frame where the button is present on stage...
my_invisible_btn.useHandCursor = false;
dpcamp
11-09-2006, 06:17 PM
awesome! thanks for the help!
anonymous
11-09-2006, 06:19 PM
Ÿou're welcome. ;)
dpcamp
11-13-2006, 06:58 PM
I don't know if i should make a new post for this or not but I figured since its on the same project I'll do it in here.
when I load a movie into the container and then swith to a different movie in the same container for a split second the container is empty and whats beneath everything shows. I don't want it to show I would like the existing movie to remain until the new movie loads. I tried making individual containers for each movie, but that didn't work because some movies were below other movies so they would not be visible if a movie was loaded in a layer above itself. how would I get this to work?
anonymous
11-13-2006, 07:57 PM
Use 2 containers (one over the other) and always load the new movie on the top container, before swapping depths on the containers...
If you attach your main movie's .fla (or mail it to me) and point me to 2 of your external .swfs, I can probably help you set it up.
dpcamp
11-14-2006, 04:39 PM
ok I pm'd you the links
anonymous
11-14-2006, 04:43 PM
The showrooms.swf hasn't been uploaded... As of yet anyways! Or can't be found.
Going out. Will be back later today.
|
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.