Solved

Flash Slide Presentations: Make slide advance after x seconds

Posted on 2004-09-30
5
208 Views
Last Modified: 2011-10-03
I have been messing with the new slide screens feature in 2004 MX Pro and I was wondering if there was a way to automatically advance slides, I couldnt figure out a way except with mouse clicks...

Thanks!
0
Comment
Question by:jvosika
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 10

Expert Comment

by:muso120999
ID: 12190896
You can use setInterval:

function advanceSlide = function() {
    clearInterval(_root.id);
    // code to advance to next slide
    Slide.gotoNextSlide();
}

_root.id = setInterval(advanceSlide,3000); // wait 3 seconds before calling advanceSlide
0
 

Author Comment

by:jvosika
ID: 12191231
That threw an error, here is the output:

**Error** Screen=search:Line 10: '(' expected
     function advanceSlide = function() {

**Error** Screen=search:Line 16: Statement must appear within on/onClipEvent handler
     _root.id = setInterval(advanceSlide,3000); // wait 3 seconds before calling advanceSlide

Total ActionScript Errors: 2        Reported Errors: 2


Any ideas?
0
 
LVL 10

Accepted Solution

by:
muso120999 earned 500 total points
ID: 12191431
Sorry, I wasn't familiar with the slide code:

replace:

Slide.gotoNextSlide();

with:

_root.currentSlide.nextSlide();

also put the code onto a frame (i.e. the last frame, at the point where you want it to start timing) on the main timeline - not a button or movieclip as that is causing the error message.


0
 
LVL 10

Expert Comment

by:muso120999
ID: 12193273
Are you still getting errors?
0
 

Author Comment

by:jvosika
ID: 12237209
I had to do some checking but here is the final code that is needed to work:

on(reveal) {
advanceSlide = function ()
{
currentSlide.gotoNextSlide();
}
setInterval(advanceSlide, 5000)
}


Thanks.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is a very simple example to help those of you who are still migrating from AS2 to AS3 understand the redesigned event model in AS3. In AS2.0, event functions (that is, the function to be performed when an event is fired) were stored as a pro…
I know the transition can be hard. We got used to the ease of use ActionScript 2 had, but honestly, it became problematic later on, especially if designers were involved in the project and found it easy to add code as they saw fit. So, this artic…
The goal of the tutorial is to teach the user how to set there setting in Adobe Flash Media Live Encoder and YouTube for optimal video and audio quality.
The goal of the tutorial is to teach the user how to select the video input device. Make sure you have an input device that in connected and work and recognized by Adobe Flash Media Live Encoder and select it in the “video input” menu.

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question