Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

a depth question when loading an .swf

Status
Not open for further replies.

whoknows361

Technical User
Sep 22, 2005
228
US
I have movie 1, which is my main movie. lets say this is the basic background graphics and navigation buttons.
On my nav buttons when u roll over, they expand to the right and down a little.

Now when you click on one of these buttons, they load a mc into the center of the flash file - kind of like loading a page. using the following:

_root.attachMovie("loader", "loader", 15)
_root.loader._x = 0;
_root.loader._y = 0;
_root.loader._visible = false;
my_mc = new MovieClipLoader();
preload = new Object();
my_mc.addListener(preload);

preload.onLoadStart = function(targetMC) {
_root.loader._visible = true;}

preload.onLoadProgress = function(targetMC, lBytes, tBytes) {
_root.loader.bar._width = (lBytes/tBytes)*100;
_root.loader.pText.text = "% "+Math.round((lBytes/tBytes)*100);
};

preload.onLoadComplete = function(targetMC) {
_root.loader._visible = false;

};

my_mc.loadClip("movie2.swf", _root.mainholder);
}

now movie2 is loaded into movie1..
however, when u rollover the nav buttons they now go underneath the movie2.

I have attempted swapdepths and other things -but how do I set the movieclip with my navigation buttons, to always be on top(higher depth) of whatever is loaded into _root.mainholder ??

Thanks in advance

Jonathan
 
You can probably succeed with swapDepths(), if your navigation buttons are nested within a mc, or make your navigation buttons a seperate external.swf, loaded on either a higher depth or even on a higher level... Then it'll always appear over underlying content on level 0.

Regards. FLASH HELP - OPENED FOR BUSINESS!
TO GET YOUR OWN FREE WEBSITE HOSTING
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top