Link in Zwischenablage kopieren
Kopiert
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
Link in Zwischenablage kopieren
Kopiert
again, you need to stream your music IF your sound is added to the timeline.
Link in Zwischenablage kopieren
Kopiert
ok ill try
Link in Zwischenablage kopieren
Kopiert
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
Link in Zwischenablage kopieren
Kopiert
Link in Zwischenablage kopieren
Kopiert
just use stop() and play() for the timeline.
Link in Zwischenablage kopieren
Kopiert
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
Link in Zwischenablage kopieren
Kopiert
the timeline with the sheet music the same one with the code or a movieclip instance?
Link in Zwischenablage kopieren
Kopiert
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
Link in Zwischenablage kopieren
Kopiert
use:
this.play(); //unpause
//and
this.stop(); // pause
Link in Zwischenablage kopieren
Kopiert
thanks for the answer
but where ?
describe me
you are the man
Link in Zwischenablage kopieren
Kopiert
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();
}
Link in Zwischenablage kopieren
Kopiert
again
you are the man
is this for only one button?
Link in Zwischenablage kopieren
Kopiert
where do i paste where
i get the point
give it to me ready to paste
thanks a lot
Link in Zwischenablage kopieren
Kopiert
it's for 2 buttons like you showed. and where to place is explained.
Link in Zwischenablage kopieren
Kopiert
thats ok but do i paste this in the same Action Script page?
thanks
Link in Zwischenablage kopieren
Kopiert
in your code layer, actions panel, using your instance names for yourpausebutton and yourplaybutton, use the code i suggested.
Link in Zwischenablage kopieren
Kopiert
ok thanks
Link in Zwischenablage kopieren
Kopiert
is it working the way you expect?
Link in Zwischenablage kopieren
Kopiert
i will try later
i am busy now
regards
Link in Zwischenablage kopieren
Kopiert
your are amazing
it worked
i deserve you a gift.........
thank you so much
Link in Zwischenablage kopieren
Kopiert
you're welcome
Link in Zwischenablage kopieren
Kopiert
how did you find out this ?
Link in Zwischenablage kopieren
Kopiert
how'd i learn actionscript 3?
Link in Zwischenablage kopieren
Kopiert
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 ?
Weitere Inspirationen, Events und Ressourcen finden Sie in der neuen Adobe Community
Jetzt ansehen