all groups > flash actionscript > june 2005 >
You're in the

flash actionscript

group:

Slide Presentation auto slide changes...[urgent]


Slide Presentation auto slide changes...[urgent] ba-doyn
6/25/2005 9:11:37 PM
flash actionscript:
Sorry for the urgent tag, but this one is...

I am building my first Flash slide presentation and I would like a set of
slides to automatically switch to the next slide when that one is finished.

I have the following layout:

Presentation
title
contentHeader
1_slide
2_slide
3_slide
etc.

I would like the user to navigate from 1_slide to 2_slide via buttons (this I
understand) and then after the animation on 2_slide, it needs to go to 3_slide
automatically, play that animation, go to 3_slide, etc.

I'm at a loss as to how to script this in a presentation.

Thanks,
Michael
Re: Slide Presentation auto slide changes...[urgent] jayclue
6/25/2005 11:12:48 PM
Hi,

use setInterval
EXAMPLE:

background._alpha = 50;
var i:Number = 1;
var path:String = "images/pic_";
empty.loadMovie(path+i+".jpg");
var myTimer:Number = setInterval(myFunction, 5000);
function myFunction() {
i++;
empty.loadMovie(path+i+".jpg");
if (i>4) {
clearInterval(myTimer);
}
}

Re: Slide Presentation auto slide changes...[urgent] I flash therefore I am
6/26/2005 12:00:00 AM
type in "gotoSlide" in the action script window and press the help button
and it should give you all you need. I will depend to some extent on whether
your slides have any nesting and, in fact, you MAY have to remove nesting
or, at least, restructure it to be able to do what you want.

AddThis Social Bookmark Button