Skip to main content
Inspiring
Aug 24, 2024 3:45 PM UTC
Question

action for slideshow buttons next prev

hello there

i made a frame sequence that progresses every 5 frames....

but i dont know the action script for this sequence, oly for every 1 frame

does anybody has the action for 5 by 5?

 

    This topic is closed to new replies. Start a new post to keep the conversation going.

    34 replies

    kglad
    Community Expert
    Community Expert
    Aug 24, 2024 3:50 PM UTC

    you want to advance by 5 frames instead of one?  or you want to advance by one frame, but after 5 advances to something else?  or something else

    Translate
    Inspiring
    Aug 24, 2024 3:57 PM UTC

    i want the action script to avance....to progress every 5 frames no 1

    thanks for the support

    Translate
    kglad
    Community Expert
    Community Expert
    Aug 24, 2024 4:03 PM UTC

    function advanceFiveF(e:MouseEvent):void{

    if(currentFrame+5>totalFrames){

    gotoAndStop((currentFrame+5)%totalFrames);

    } else {

    gotoAndStop(currentFrame+5);

    }

    }

    Translate