Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Flash Slide Presentations: Make slide advance after x seconds

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

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

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

This is intended to introduce all collision detection principles in flash, their strengths, weaknesses and workarounds. The main method for Collision Detection in flash is using hitTestObject. But unless you'll be pushing rectangular shapes without …
Sometimes you know that one object has a specific child in it, but you can't find the child. This happened to me when I was trying to code some actionScript to make a toolbar work with its embedded buttons.  My partner had created the toolbar usi…
In this tutorial viewers will learn how to create a basic motion tween animation in Flash Open a new document in Flash: Draw/import an image: Press CTRL + F8 to convert it into a graphic symbol: Select a frame (how long you want the tween to last): …
This Micro Tutorial will teach to how to utilize bit rate in Adobe Flash Media Live Encoder.

618 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