?
Solved

Flash Slide Presentations: Make slide advance after x seconds

Posted on 2004-09-30
5
Medium Priority
?
213 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 2000 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Recently, I was asked to recommend a tracking system to be implemented on a clients website. As the entire site was built on flash, my first thought was to suggest custom built tracking system. However, our company at that point of time didn't h…
I have found that much of my time doing support ends up being a constant repetition of the same steps to different people.  Early on I stated using web pages with Frequently Asked Questions (FAQs) to alleviate most of the burden.  Sometimes this jus…
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 which audio input to use. Once you have an audio input plugged into the laptop or computer, you will go into the audio input settings and choose which audio input you want to use.

777 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