Adobe Flash slideshow navigation automatisieren ..

C

crazyjunk

Aktives Mitglied
Thread Starter
Dabei seit
31.10.2004
Beiträge
315
Reaktionspunkte
15
hallo!

ich hab mir mit diesem tutorial einen flash-header gebastelt:
http://www.layoutgalaxy.com/html/htmnewletter43-page1.htm

aussehen tut das ganze bisher so:
http://breitschopf.probeseite.at/assets/flash/home.swf

Nun, fehlen mir sozusagen noch 2 features:
Das ganze sollte automatisch laufen. das heist jedes bild etwa 10sek. stehenbleiben und dann automatischer switch zum nächsten pic. die möglichkeit das ganze über die sidebar als user zu beeinflussen, sollte aber trotzdem bestehen bleiben.

und ich möchte die rollovers noch umswitchen so dass gezeigt wird wo ich mich in der slideshow befinde. wie kann ich per actionscript einen button in den rolloverstatus versetzen?

Nochmal das AS zum überblick.
Das is im ersten frame des hauptclips:
Code:
stop();

// _root.imagewidth defines the width of the image//
_root.imagewidth = 418;

// _root.speed defines the speed of the sliding images//
_root.speed = 3;

/* _root.trig.xposnew defines the x position of the sliding images */
_root.trig.xposnew = -(_root.imagewidth);

// About us Button action
but1.onRelease = function() {
_root.trig.xposnew = -(_root.imagewidth);
};

// Products Button action
but2.onRelease = function() {
_root.trig.xposnew = -((_root.imagewidth)*2);
};

// Services Button action
but3.onRelease = function() {
_root.trig.xposnew = -((_root.imagewidth)*3);
};

// Clients Button action
but4.onRelease = function() {
_root.trig.xposnew = -((_root.imagewidth)*4);
};

// Contact Us Button action
but5.onRelease = function() {
_root.trig.xposnew = -((_root.imagewidth)*5);
};

Dieses script läd die bilder (sollte also so bleiben können):

Code:
 	/* Loading the images in their appropriate Movie Clips from the folder named as 'images' */

loadMovie("images/image1.jpg","clip1");
loadMovie("images/image2.jpg","clip2");
loadMovie("images/image3.jpg","clip3");
loadMovie("images/image4.jpg","clip4");
loadMovie("images/image5.jpg","clip5");

/* Setting the x and y position of Movie Clips in which images are loaded */

setProperty("clip1",_x,_root.imagewidth*1);
setProperty("clip1",_y,0);

setProperty("clip2",_x,_root.imagewidth*2);
setProperty("clip2",_y,0);

setProperty("clip3",_x,_root.imagewidth*3);
setProperty("clip3",_y,0);

setProperty("clip4",_x,_root.imagewidth*4);
setProperty("clip4",_y,0);

setProperty("clip5",_x,_root.imagewidth*5);
setProperty("clip5",_y,0);

das ist die animation:

Code:
/* Below is the formula created for moving the 'scroller' Movie Clip in an ease out form */

xpos = getProperty(_root.mainscroller.scroller,_x);

xpos2 = xposnew-xpos;

xmove = xpos2/_root.speed;

setProperty(_root.mainscroller.scroller,_x, xpos+xmove);

habt ihr zufällig tipps für mich wo bzw wie ich am besten ansetze? habe hier erstmal eine kleine denkblockade.

mfg
Flo
 
Zurück
Oben Unten