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
whats the action script syntax
is this just gotoAndPlay(first frame) in last frame ?
Copy link to clipboard
Copied
gotoAndPlay right ?
Copy link to clipboard
Copied
no script is needed. just extend the parent timeline to contain twice the frames that the sheet music graphic contains.
Copy link to clipboard
Copied
ok thanks
Copy link to clipboard
Copied
you're welcome.
Copy link to clipboard
Copied
i am intending to make a presentation like this file below
https://www.youtube.com/watch?v=E1dVsu1J8yY
but with sheet music for my students...instead of
making a progressive loading audio like in the video
but with sheet music passing by
is this possible ?
Copy link to clipboard
Copied
yes
Copy link to clipboard
Copied
i got it
already making
Copy link to clipboard
Copied
ok
Copy link to clipboard
Copied
Copy link to clipboard
Copied
stop what? a streaming sound?
Copy link to clipboard
Copied
yes but i guess i already have the action script for stop here i ll find here
Copy link to clipboard
Copied
stopping (and more importantly continuing) a streaming sound will require using actionscript to start, stop, continue the sound. ie, the sound will need to be removed from the timeline.
Copy link to clipboard
Copied
do you know how to make a home button? after playing the sheet it goes back to the main window with all song names with a play button
Copy link to clipboard
Copied
it depends on your setup.
Copy link to clipboard
Copied
the first scene leads to sheet music animation (with line, sheet, and sound)
there are 3 sheets, one play for each one in the main scene
when i am in the sheet choosen(after pressin play).....i want a home button to go back to the main scene
so i can play another sheet
how is the home button configured? whats the AC
thanks
Copy link to clipboard
Copied
can i use
gotoframe(frame 1) and stop?
Copy link to clipboard
Copied
no, you have to know the path to the home timeline from the timeline that's going to contain the code.
Copy link to clipboard
Copied
hello man
give me an example
thanks
Copy link to clipboard
Copied
this.parent.gotoAndStop(1);
Copy link to clipboard
Copied
i see..........i am beggining to understand..
more one example with fictional parameters
Copy link to clipboard
Copied
there are no fictional parameters in the code i suggested. it will work IF the target timeline is the parent of the one with the code.
Copy link to clipboard
Copied
ok could you send me a screenshot?
Copy link to clipboard
Copied
a screenshot of what?
Copy link to clipboard
Copied
what is the parent