I wanted to try a "simple" flash slideshow, quite willing to use
software to accomplish it. I spent much of last week trying out
different software -- from Coffee Cup, to ProShow Gold, ProShow
Producer, and just got SmishMax. (Some of these seem to require
purchasing templates ... to get enough out of them)
Finally, I decided to bite the bullet and try Flash itself, and found a
simple tutorial on creating a "simple" slideshow:
http://www.republicofcode.com/tutorials/flash/video/slideshow.php
This walks through creating AS2 code with 2 buttons-- next and previous.
That is great, except the narrator mentions a series of tutorials, and I
can't find the next ones, so am now struggling with what to do next. Now
I want to add pause/continue. I found some code that might work, but am
currently stuck on a really dopey problem. I inserted the code into
frame1 and cannot get it into the other frames. I just have 6 slides.
Each slide is a keyframe, and the button code shows up and works on
every page. How do I get the entire actionscript inserted into every
frame? Do I need to have the pause/restart buttons in order to do this.
The pause now works fine on slide one.
Here is the code:
============================
stop();
var startTime:Number = getTimer();
var pausedTime = 0;
//countTo = number of secs
var countTo:Number = 4;
var ref:MovieClip = this;
this.onEnterFrame = function():Void {
if (!paused) {
var elapsedTime:Number = getTimer()-ref.startTime-pausedTime;
var count:Number = Math.ceil(countTo-(elapsedTime*0.001));
if(count<1) {
this.gotoAndPlay(nextFrame());
}
}
}
next_btn.onRelease = function() {
if (_root._currentframe == 6) {
gotoAndStop(1);
}
else {
nextFrame();
}
}
prev_btn.onRelease = function() {
if (_root._currentframe == 1) {
gotoAndStop(6);
}
else {
prevFrame();
}
}
=============================
Thanks for any suggestions, including a tutorial on simple slide shows,
part 2.
Regards.
Romola Chrzanowski