Skip to main content
Participant
Oct 14, 2023 2:49 PM UTC
Answered

how do i make a button, when pressed, goes to a specific frame in actionscript 2.0

pls help

    This topic is closed to new replies. Start a new post to keep the conversation going.
    kglad
    kgladCorrect answer
    Community Expert
    Oct 14, 2023 2:59 PM UTC

    assign your button an instance name (in the properties panel), eg btn and use

     

    btn.onPress=functiion(){

    gotoAndStop(your frame label or number);  /* assuming you want to navigate the movieclip that contains this code */

    }

    3 replies

    kglad
    Community Expert
    kgladCommunity ExpertCorrect answer
    Community Expert
    Oct 14, 2023 2:59 PM UTC

    assign your button an instance name (in the properties panel), eg btn and use

     

    btn.onPress=functiion(){

    gotoAndStop(your frame label or number);  /* assuming you want to navigate the movieclip that contains this code */

    }

    Translate
    Participant
    Oct 15, 2023 2:14 PM UTC

    thanks

    Translate
    kglad
    Community Expert
    Community Expert
    Oct 15, 2023 2:15 PM UTC

    you're welcome.

    Translate