how can I change this code so>first visual1.swf or2,3 or 4 should be loaded( depending on witch button the vistor hits).after the visual has loaded load in sound.swf.if sound.swf has loaded load in content 1 or 2,3,4( depending on witch button the vistor hits. The external file are all coded by buttons on the main swf file.Have a look at the code.Hope someone can help out.Big thx in advance.
coded on frame2:
but1.onRelease=function(){
//set a variable that stores the next external movie to be loaded
nextMovie="visual1.swf";
//tell the cover mc to play its closing animation
cover.gotoAndPlay("close");
}
but2.onRelease=function(){
nextMovie="visual2.swf";
cover.gotoAndPlay("close");
}
but3.onRelease=function(){
nextMovie="visual3.swf";
cover.gotoAndPlay("close");
}
but4.onRelease=function(){
nextMovie="visual4.swf";
cover.gotoAndPlay("close");
}
_root.visual.loadMovie("visual1.swf");
loadMovieNum("sound2.swf",1);
coded on button(object)
on(release){
_level1.unloadMovie(); // empty old song from level 1
loadMovieNum("sound2.swf",1); // load new song in level 1
}
on(release){
loadMovie("content3.swf", "content");
}