PDA

View Full Version : Adjusting paths of this Slideshow (f5)



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 ;) )

blah-de-blah
September 5th, 2003, 11:46 AM
I havn't really looked at it but have you tried taking the 'var' out and then outisde the whole function, do currWindow = "123" or something?

ericinho
September 5th, 2003, 11:48 AM
which good would that do?

Voetsjoeba
September 5th, 2003, 12:34 PM
Something like this ?

ericinho
September 5th, 2003, 05:27 PM
i think the correct phrase would be: "you are the man!!!!"

great, thanks so much!!!

just for this it is completely fair that you live not only in the beautiful town of Ghent (where i ate the best lamb chops to date ;) ), but also close to Brugge :). Shame though about the aweful traffic jams that always seem to clog the 'rings' around Belgiums bigger towns.

Uhm, Thanks! Really :)

Voetsjoeba
September 6th, 2003, 02:14 AM
You're welcome =)