• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

play/pause button sheet music animation

Contributor ,
Mar 01, 2024 Mar 01, 2024

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

Views

2.2K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
replies 124 Replies 124
Community Expert ,
Mar 01, 2024 Mar 01, 2024

Copy link to clipboard

Copied

again, you need to stream your music IF your sound is added to the timeline.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Mar 01, 2024 Mar 01, 2024

Copy link to clipboard

Copied

ok ill try

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Mar 01, 2024 Mar 01, 2024

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Mar 01, 2024 Mar 01, 2024

Copy link to clipboard

Copied

i found this

does this work in animate ?

https://www.youtube.com/watch?v=8V2gP93dfxs

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 01, 2024 Mar 01, 2024

Copy link to clipboard

Copied

just use stop() and play() for the timeline.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Mar 01, 2024 Mar 01, 2024

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 01, 2024 Mar 01, 2024

Copy link to clipboard

Copied

the timeline with the sheet music the same one with the code or a movieclip instance?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Mar 01, 2024 Mar 01, 2024

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

 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 02, 2024 Mar 02, 2024

Copy link to clipboard

Copied

use:

 

this.play();  //unpause

//and

this.stop();  // pause

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Mar 02, 2024 Mar 02, 2024

Copy link to clipboard

Copied

thanks for the answer

but where ?

describe me

you are the man

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 02, 2024 Mar 02, 2024

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();

}

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Mar 02, 2024 Mar 02, 2024

Copy link to clipboard

Copied

again

you are the man

is this for only one button?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Mar 02, 2024 Mar 02, 2024

Copy link to clipboard

Copied

where do i paste where 

i get the point

give it to me ready to paste

thanks a lot

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 02, 2024 Mar 02, 2024

Copy link to clipboard

Copied

it's for 2 buttons like you showed.  and where to place is explained.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Mar 02, 2024 Mar 02, 2024

Copy link to clipboard

Copied

thats ok but do i paste this in the same Action Script page?

thanks

 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 02, 2024 Mar 02, 2024

Copy link to clipboard

Copied

in your code layer, actions panel, using your instance names for yourpausebutton and yourplaybutton, use the code i suggested.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Mar 02, 2024 Mar 02, 2024

Copy link to clipboard

Copied

ok thanks 

 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 02, 2024 Mar 02, 2024

Copy link to clipboard

Copied

is it working the way you expect?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Mar 02, 2024 Mar 02, 2024

Copy link to clipboard

Copied

i will try later

i am busy now

regards 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Mar 02, 2024 Mar 02, 2024

Copy link to clipboard

Copied

your are amazing

it worked

i deserve you a gift.........

thank you so much

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 02, 2024 Mar 02, 2024

Copy link to clipboard

Copied

you're welcome 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Mar 02, 2024 Mar 02, 2024

Copy link to clipboard

Copied

how did you find out this ?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 02, 2024 Mar 02, 2024

Copy link to clipboard

Copied

how'd i learn actionscript 3?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Mar 02, 2024 Mar 02, 2024

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 ?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines