ericinho
September 5th, 2003, 10:54 AM
Hello,
Long time ago I got this slideshow working... and it still does.
however, i want to alter the paths.
now everything works fine because it is all staged in the same place. But what I want is that I put those for Images (the ones stacked on top of eachothers and called window0,1,2,3 etc.) in an external SWF (which will be loaded on the main.swf into a container MC called 'container'.
But which lines do I have to alter to get it to work and to what?
I have been trying several combinations, but with no luck (luck? luck? it's no luck dammit, it's knowledge).
Anyone?
code on frame 1 of the main timeline:
FadeIn = function (windowNum) {
var currWindow = this["window"+windowNum];
if (lastWindow != currWindow) {
lastWindow.gotoAndStop(lastWindow._totalframes);
currWindow.swapDepths(++depth);
currWindow.gotoAndPlay(2);
lastWindow = currWindow;
}
}
code on button:
on (press) {
FadeIn(0)
}
(0 changes in 1,2 or 3 depending on which of the 4 buttons you take ;) )
Long time ago I got this slideshow working... and it still does.
however, i want to alter the paths.
now everything works fine because it is all staged in the same place. But what I want is that I put those for Images (the ones stacked on top of eachothers and called window0,1,2,3 etc.) in an external SWF (which will be loaded on the main.swf into a container MC called 'container'.
But which lines do I have to alter to get it to work and to what?
I have been trying several combinations, but with no luck (luck? luck? it's no luck dammit, it's knowledge).
Anyone?
code on frame 1 of the main timeline:
FadeIn = function (windowNum) {
var currWindow = this["window"+windowNum];
if (lastWindow != currWindow) {
lastWindow.gotoAndStop(lastWindow._totalframes);
currWindow.swapDepths(++depth);
currWindow.gotoAndPlay(2);
lastWindow = currWindow;
}
}
code on button:
on (press) {
FadeIn(0)
}
(0 changes in 1,2 or 3 depending on which of the 4 buttons you take ;) )