Skip to main content
Inspiring
February 14, 2024
Question

botao de pause ou codigo snippet para pause

  • February 14, 2024
  • 2 replies
  • 12972 views

ola a todos

estou montando um arquivo com adobe animate

e preciso de um botão de pause(com codigo pronto)

ou codigo snippet de botao pause

nao achei nos presets do adobe animate

alguem pode me ajudar ?

como conseguir e proceder ?

obrigado a todos 

leo

preciso do pause para eventualmente parar no meio do loop 

envio anexo um video screen da situação

    This topic has been closed for replies.

    2 replies

    February 26, 2024

    This post is very late but I think I found a solution and its really simple

    Just press space in the middle of the loop

    Inspiring
    February 26, 2024

    but i want a play/pause button

    February 26, 2024

    Well there is one at the timeline try doing that

    JoãoCésar17023019
    Community Expert
    February 14, 2024

    Hi.

     

    You need to call the stop method on the target MovieClip instance. Like this:

    import flash.events.MouseEvent;
    
    function stopMovieClip(e:MouseEvent):void
    {
        yourMC.stop();
    }
    
    yourButton.addEventListener(MouseEvent.CLICK, stopMovieClip);



    Regards,

    JC

    Inspiring
    February 22, 2024

    could you give me an example of buttons from you?

    in order to uderstand where to place my instance button in the action script

    regards 

    leo

    Inspiring
    February 23, 2024

    do you have the action script for making photo slideshow?

    thanks for the support


    is it correct the action script for slide show presentation in animate ?