Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
but at which frame do i place the script
Copy link to clipboard
Copied
Copy link to clipboard
Copied
place where your button appears (and you want to enable it.
Copy link to clipboard
Copied
Copy link to clipboard
Copied
is it working the way you want?
Copy link to clipboard
Copied
its almost working
Copy link to clipboard
Copied
you need to assign instance names
Copy link to clipboard
Copied
i understood the instances and the action script.....how to deal ....
could you tell me what is yourMC in AS you sent to me ?
thanks for the supporot
leo
Copy link to clipboard
Copied
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
you need to use the properties panel to assign instance names
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
you're trying to stop a button (that has no timeline to stop).
Copy link to clipboard
Copied
so how do i proceed now
please help me
Copy link to clipboard
Copied
what timeline do you want to stop?
Copy link to clipboard
Copied
i want pause in the first timeline(first sheet music and
a pause in the seconda timeline(second sheet music)
thanks for the support
Copy link to clipboard
Copied
hold on
...i got it
latter on i will talk to you
Copy link to clipboard
Copied
ok
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
is everything working?
Copy link to clipboard
Copied