Skip to main content
Deaf_Guy
Inspiring
March 4, 2021
Question

Requesting info on running web slideshow

  • March 4, 2021
  • 1 reply
  • 323 views

I used to use Muse because it made making slideshows that run over and over and also with buttons easy to make. I lost access to it [don't ask me why as it's too complicated to explain] so I've switched over to Animate.

 

I got a basic 950x350 slideshow with previous and after buttons working. There's no animation though - the first photo comes on and stops, you click either previous and next for the next or prior one.

 

So I'd like for this to run continuously with a photo and its text staying on for maybe 10 seconds then fading to the next over and over and of course with the buttons as well. I know the more things you add with actionscript the more complex.

 

So I'm just seeking any resources for this on how to code this in AS. Any guidance, help or links are appreciated. Thank you.

    This topic has been closed for replies.

    1 reply

    kglad
    Community Expert
    Community Expert
    March 4, 2021

    if it's for the web, you don't want to use as.  you should use a canvas/html5 document which uses javascript/createjs:

     

    this.alreadyExecuted;

    if(!this.alreadyExecuted){
    this.alreadyExecuted = true;
    createjs.Ticker.interval = 50000; // define slide duration in ms
    createjs.Ticker.addEventListener("tick",nextF.bind(this));
    }

    function nextF(){
    if(this.currentFrame+1<this.totalFrames)
    this.gotoAndStop(this.currentFrame+1);
    } else {
    this.gotoAndStop(0);
    }
    }

    Deaf_Guy
    Deaf_GuyAuthor
    Inspiring
    March 5, 2021

    OK thank you for your help on this and for that code. So bottom line is do I put this on frame 1 on an actions layer? Also - and for what it's worth - I followed a YT demo and used AS. I got it to work and put it on the server and it works there as well, so I'm a little puzzled about your statement of don't use AS.

    kglad
    Community Expert
    Community Expert
    March 5, 2021

    while the playhead is on the first frame, open the actions panel and paste that code.

     

    put the first slide on the first frame, 2nd slide on the 2nd frame etc.

     

    and almost no one else is going to be able to see your as3 slideshow because almost no one else has a flash player enabled on their browser.