Skip to main content
Inspiring
February 14, 2024
Question

botao de pause ou codigo snippet para pause

  • February 14, 2024
  • 2 replies
  • 12973 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

    Inspiring
    February 26, 2024

    Well there is one at the timeline try doing that


    but it stops

    does not pause

    i want pause to continue from where it stoped

    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

    but at which frame do i place the script

    Inspiring
    February 22, 2024

    which frame do i place 

    thanks for the support

    here i send another video screen