salaro
05-04-2002, 04:08 PM
I am using Flash MX but I thought since this is a basic question I post it here.
In my main movie, I would like to link from navigation buttons to load swf movies into an empty place holder MC
So I created an empty movie clip and placed it at the desired location on the stage of Main.swf, then on my first button I placed the attached script. There are more actions to this button but the last statement is the one relevant.
The middle.swf is in the same folder as the middle.swf is. And the MC1 is the name of the place holder.
It all works fantastic; however, I do not know how to have a start movie. To understand it I used the analogy of a framed HTML page where in this case,
-----------------------------------------------------------
Parent.htm = Parant frame is here it is = Main.swf
Nav.htm = navigation frame = Menu.swf
Main.htm= Content frame = MC1
In HTML the parent frame starts off with Main.htm, but in my case it is an empy MC called MC1 – so how do I populate the MC1 when the movie starts off? At the moment Middle.swf only is loaded after the button is released. Where I want it to be there on load.
Kind regards
salaro
---------------------------------------------------
on (rollOver) {
tellTarget ("mousetracer/items/m1") {
gotoAndStop (2);
}
}
on (rollOut) {
tellTarget ("mousetracer/items/m1") {
gotoAndStop (1);
}
}
on (rollOver) {var0 = v1; var1= v2;
if (var3==0)
{tellTarget ("subbar/homesub") {gotoAndPlay (1)}; var3 = 1};
if (var4==1)
{tellTarget ("subbar/schemasub") {gotoAndPlay (12)} var4=0}
}
on (release) {
loadMovie("Middle.swf", "MC1");
}
-----------------------------------------------------
In my main movie, I would like to link from navigation buttons to load swf movies into an empty place holder MC
So I created an empty movie clip and placed it at the desired location on the stage of Main.swf, then on my first button I placed the attached script. There are more actions to this button but the last statement is the one relevant.
The middle.swf is in the same folder as the middle.swf is. And the MC1 is the name of the place holder.
It all works fantastic; however, I do not know how to have a start movie. To understand it I used the analogy of a framed HTML page where in this case,
-----------------------------------------------------------
Parent.htm = Parant frame is here it is = Main.swf
Nav.htm = navigation frame = Menu.swf
Main.htm= Content frame = MC1
In HTML the parent frame starts off with Main.htm, but in my case it is an empy MC called MC1 – so how do I populate the MC1 when the movie starts off? At the moment Middle.swf only is loaded after the button is released. Where I want it to be there on load.
Kind regards
salaro
---------------------------------------------------
on (rollOver) {
tellTarget ("mousetracer/items/m1") {
gotoAndStop (2);
}
}
on (rollOut) {
tellTarget ("mousetracer/items/m1") {
gotoAndStop (1);
}
}
on (rollOver) {var0 = v1; var1= v2;
if (var3==0)
{tellTarget ("subbar/homesub") {gotoAndPlay (1)}; var3 = 1};
if (var4==1)
{tellTarget ("subbar/schemasub") {gotoAndPlay (12)} var4=0}
}
on (release) {
loadMovie("Middle.swf", "MC1");
}
-----------------------------------------------------