Hey guys im having a bit of a problem with the Transmision tutorial. Oke here’s the deal.
I have a index.swf file, in this file I have movieclip called “screen” and this code,
screen.loadMovie("home.swf");
Okay, so it loads home.swf in it.
On home.swf I have a button called “nederlands” when pressed it gives this code
on (release) {
if (_root.currMovie == undefined) {
_root.currMovie = "nederlands";
_root.screen.loadMovie("nederlands.swf");
} else if (_root.currMovie != "start") {
if (_root.screen._currentframe >= _root.screen.midframe) {
_root.currMovie = "nederlands";
_root.screen.play();
}
}
}
So as you can see it loads the file “nederlands.swf” into the _root. (index.swf) and to the movieclip “screen”. Also this works.
But here is the problem. On the file “nederlands.swf” I have a few buttons that load external swf files and a movieclip called “screencontent”.
Also I have this code. To load the file “start.swf” into the movieclip “screencontent”.
currMovie = "start";
screencontent.loadMovie(currMovie+".swf");
Back to the buttons, I dont want them to load into the _root. (index file) but in the same swf as where the buttons are in. (in the movieclip “screencontent”. So I use this code.
on (release) {
if (currMovie._parent == undefined) {
currMovie._parent = "vakantie";
screencontent.loadMovie("vakantie.swf");
} else if (currMovie != "vakantie") {
if (screencontent._currentframe >= screencontent.midframe) {
currMovie._parent = "vakantie";
screencontent.play();
}
}
}
Okay here starts the problem. If I press a other button like “boekvakantie” or “contacteer” (or a other one). It does load the external SWF file with the intro and stuff but it does not play the outro of the original SWF file that is allready loaded.
I think the problem is in the code from the buttons.
on (release) {
if (currMovie._parent == undefined) {
currMovie._parent = "vakantie";
screencontent.loadMovie("vakantie.swf");
} else if (currMovie != "vakantie") {
if (screencontent._currentframe >= screencontent.midframe) {
currMovie._parent = "vakantie";
screencontent.play();
}
}
}
Because it just does not play from the variable “midframe” but it does play the external SWF file.
screencontent.loadMovie(_parent.currMovie+".swf");
This code is placed in the last frame of the loaded swf file. It makes sure that the other SWF files get in the right movieclip etc. But this does not mather sinds it does not get played.
Does anyone see the problem here?