whoknows361
Technical User
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
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