Copy link to clipboard
Copied
hello there
i already learnt a lot here in 2 weeds
Actions Scripts for play button, stop button,
slideshow and more........
i am making a sheet music animation for my students
and in order to understand the sheet music....i need
a play/pause in the animation i attached here....
i have a play, i have a stop, i have a replay(the same as play)
but i need so much a help for the play/pause button action script
anyone help?
regards
leo
Copy link to clipboard
Copied
again, you need to stream your music IF your sound is added to the timeline.
Copy link to clipboard
Copied
ok ill try
Copy link to clipboard
Copied
but what does it have to do with pausing the line(sheet music line passing) and then continuing from where it
stoped.......i need so much this
regards
leo
Copy link to clipboard
Copied
Copy link to clipboard
Copied
just use stop() and play() for the timeline.
Copy link to clipboard
Copied
ok then
i am getting kinda confused sorry
its just the second week doing this
i want to use stop(the line in the middle of the sheet) and replay from where it stopped
how do i proceed
describe step by step please
thanks for the support
leo
Copy link to clipboard
Copied
the timeline with the sheet music the same one with the code or a movieclip instance?
Copy link to clipboard
Copied
i did not get the point
the sheet is one layer
the line is one layer with classic tween over the sheet
the play button is in one layere
the Action Script in another layer with the instance of the play button
what now
thanks for the support
Copy link to clipboard
Copied
use:
this.play(); //unpause
//and
this.stop(); // pause
Copy link to clipboard
Copied
thanks for the answer
but where ?
describe me
you are the man
Copy link to clipboard
Copied
in your code layer, actions panel, using your instance names for yourpausebutton and yourplaybutton:
yourpausebutton.addEventListener(MouseEvent.CLICK,pauseF);
yourplaybutton.addEventListener(MouseEvent.CLICK,playF)
function pauseF(e:MouseEvent):void{
this.stop();
}
function playF(e:MouseEvent):void{
this.play();
}
Copy link to clipboard
Copied
again
you are the man
is this for only one button?
Copy link to clipboard
Copied
where do i paste where
i get the point
give it to me ready to paste
thanks a lot
Copy link to clipboard
Copied
it's for 2 buttons like you showed. and where to place is explained.
Copy link to clipboard
Copied
thats ok but do i paste this in the same Action Script page?
thanks
Copy link to clipboard
Copied
in your code layer, actions panel, using your instance names for yourpausebutton and yourplaybutton, use the code i suggested.
Copy link to clipboard
Copied
ok thanks
Copy link to clipboard
Copied
is it working the way you expect?
Copy link to clipboard
Copied
i will try later
i am busy now
regards
Copy link to clipboard
Copied
your are amazing
it worked
i deserve you a gift.........
thank you so much
Copy link to clipboard
Copied
you're welcome
Copy link to clipboard
Copied
how did you find out this ?
Copy link to clipboard
Copied
how'd i learn actionscript 3?
Copy link to clipboard
Copied
hello there
i am intending to make instead of a line moving along the sheet music to place a boy with internal animation walking and move as the music passes by.........how should i proceed ?