Okay, I don’t know why this won’t work.
EDIT: Read the bottom
//index.swf file
//defaults the MCLoader to invisible
MCLoader._visible=false
//this sets the movie button variable, and defaults it to "index"
var movieVar = "index"
//does the initial index loading
container_1._visible=false;
container_2._visible=false;
loadMovie(movieVar+"_1.swf","container_1")
loadMovie(movieVar+"_2.swf","container_2")
MCLoader.gotoAndPlay (2);
MCLoader._visible=true
function RunLoader() {
container_1._visible=false;
container_2._visible=false;
loadMovie(movieVar+"_1.swf","container_1")
loadMovie(movieVar+"_2.swf","container_2")
MCLoader.gotoAndPlay (2)
trace("Please work")
}
//home index functions -----------------------------HOME
function home() {
movieVar = "index"
RunLoader()
}
home_b.onPress = function ()
{
movieVar = "index"
RunLoader()
};
//store functions-----------------------------------STORE
function store() {
movieVar = "store"
RunLoader()
}
store_b.onPress = function ()
{
movieVar = "store"
RunLoader()
};
//etc etc with more meny options
Edit:
Thanks to Adam14 the links work correctly now.
Still have an issue with the preloader though.
//MCLoader Clip inside index.swf
//frame 1
stop();
//frame 2
loading = _root.container_1.getBytesLoaded();
total = _root.container_1.getBytesTotal();
percent -= (percent-((loading/total)*100))*.25;
per = int(percent);
percentage = per+"%";
loaded_txt.text = loading
total_txt.text = total+" /"
if (percent>99) {
_root.McLoader._visible=false
_root.container_1._visible=true
_root.container_2._visible=true
gotoAndPlay(1);
}
//frame 3
gotoAndPlay(2);
What is going wrong with the pre-loader? It is supposed to hide the container movie, load the movie, unhide the MCloader, give the status of the thing, and then hide itself AGAIN, and make the container visible again.
Its just loading the movie and keeping everything visible. You guys ee anythign wrong?