I'm sure there is a simple answer to this as usuall 
A simple movie with few same buttons and have the same code for all of buttons to stack external swf files on the stage. This is the code for each button: (obviously the button and swf names and are different for each):
menu_mc.spec_btn.onPress = function() {
var someDepth = empty_mc.getNextHighestDepth();
var mc_New = empty_mc.createEmptyMovieClip("1up", someDepth);
mc_New.loadMovie("spec.swf");
trace(someDepth);
var mc_Target = empty_mc.getInstanceAtDepth(someDepth-2);
trace("mc_Target = "+mc_Target);
if (mc_Target != undefined) {
removeMovieClip(mc_Target);
}
};
Everything is working and external swf files stack nicely on top of each other. Now, how can i load a swf when movie starts and no buttun is pressed using the same function? Its the intro.swf that must load first, and then it get stacked with the new swf files as buttons are pressed.I hope i explained properly. in simple terms:
"when movie starts, load intro.swf into the same Empty_mc using the same Function :
= function() (
var someDepth = empty_mc.getNextHighestDepth();
........the rest.
Its unbelievable how much time you can waste when you dont have enough knowledge.
Thanks for reading
Koosha
A simple movie with few same buttons and have the same code for all of buttons to stack external swf files on the stage. This is the code for each button: (obviously the button and swf names and are different for each):
menu_mc.spec_btn.onPress = function() {
var someDepth = empty_mc.getNextHighestDepth();
var mc_New = empty_mc.createEmptyMovieClip("1up", someDepth);
mc_New.loadMovie("spec.swf");
trace(someDepth);
var mc_Target = empty_mc.getInstanceAtDepth(someDepth-2);
trace("mc_Target = "+mc_Target);
if (mc_Target != undefined) {
removeMovieClip(mc_Target);
}
};
Everything is working and external swf files stack nicely on top of each other. Now, how can i load a swf when movie starts and no buttun is pressed using the same function? Its the intro.swf that must load first, and then it get stacked with the new swf files as buttons are pressed.I hope i explained properly. in simple terms:
"when movie starts, load intro.swf into the same Empty_mc using the same Function :
= function() (
var someDepth = empty_mc.getNextHighestDepth();
........the rest.
Its unbelievable how much time you can waste when you dont have enough knowledge.
Thanks for reading
Koosha