Skip to main content
Inspiring
Feb 14, 2024 12:31 PM UTC
Question

botao de pause ou codigo snippet para pause

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 is closed to new replies. Start a new post to keep the conversation going.

    101 replies

    Feb 26, 2024 11:08 AM UTC

    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

    Translate
    Inspiring
    Feb 26, 2024 11:45 AM UTC

    but i want a play/pause button

    Translate
    Feb 26, 2024 11:48 AM UTC

    Well there is one at the timeline try doing that

    Translate
    JoãoCésar17023019
    Community Expert
    Community Expert
    Feb 14, 2024 1:27 PM UTC

    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

    Translate
    Inspiring
    Feb 22, 2024 3:05 PM UTC

    but at which frame do i place the script

    Translate
    Inspiring
    Feb 22, 2024 3:14 PM UTC

    which frame do i place 

    thanks for the support

    here i send another video screen

    Translate