Hallo Zusammen
Ich hab da eine super Slideshow gefunden und sie ein bischen abgeändert. Leider möchte ich gerne ab und zu ein Bild hinzufügen oder entfernen, und das habe ich leider nicht geschafft.
Ich wäre froh wenn mir jemand einen Lösungsvorschlag hat oder eine Idee wie es funktionieren könnte.
danke vielmals
Ich hab da eine super Slideshow gefunden und sie ein bischen abgeändert. Leider möchte ich gerne ab und zu ein Bild hinzufügen oder entfernen, und das habe ich leider nicht geschafft.
Ich wäre froh wenn mir jemand einen Lösungsvorschlag hat oder eine Idee wie es funktionieren könnte.
Code:
Path = "bilder/"
anzahlBilder = 9
Pictures = new Array()
Pictures[0] = ["0.jpg"];
Pictures[1] = ["1.jpg"];
Pictures[2] = ["2.jpg"];
Pictures[3] = ["3.jpg"];
Pictures[4] = ["4.jpg"];
Pictures[5] = ["5.jpg"];
Pictures[6] = ["6.jpg"];
Pictures[7] = ["7.jpg"];
Pictures[8] = ["8.jpg"];
for(i = 0; i < anzahlBilder; i++){
_root.createEmptyMovieClip("Pic" + i, 600 + i);
_root["Pic" + i]._alpha = 0;
_root["Pic" + i].loadMovie(Path + Pictures[i]);
trace (anzahlBilder)
}
Active = 0
function switching(){
Active ++
if(Active == Pictures.length){
Active = 0
}
ActivePic = _root["Pic" + Active]
fadePic()
}
function fadePic(){
FadeOut = new mx.transitions.Tween(OldPic, "_alpha", mx.transitions.easing.Regular.easeInOut , 100, 0, 4, true);
FadeIn = new mx.transitions.Tween(ActivePic, "_alpha", mx.transitions.easing.Regular.easeInOut , 0, 100, 2, true);
FadeIn.onMotionFinished = function(){
OldPic = ActivePic
}
}
switching()
setInterval(switching, 4000)
danke vielmals