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

why does it play both of audios together after some seconds in sheet music animation

Contributor ,
Mar 15, 2024 Mar 15, 2024

Copy link to clipboard

Copied

hello there here i send atached the situation

its working the sheet music animation but

after some seconds it plays both audios

from movie clips....

whats the action script to use here in this situation

to stop the audio when the other plays?

 

Views

2.5K
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 100 Replies 100
Contributor ,
Mar 20, 2024 Mar 20, 2024

Copy link to clipboard

Copied

i dont know

please you telme where to place it

Votes

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 20, 2024 Mar 20, 2024

Copy link to clipboard

Copied

the code i suggested has var i declared in the first for-loop

Votes

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 20, 2024 Mar 20, 2024

Copy link to clipboard

Copied

did not get it 

where do i place please

Votes

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 20, 2024 Mar 20, 2024

Copy link to clipboard

Copied

var sound_mcA:Array = [sound1_mc,sound2_mc,sound3_mc];

 

var buttonA:Array= [b1,b2,b3];

 

for(var i:int=0;i<buttonA.length;i++){
buttonA[i].addEventListener etc

}

function f(e:MouseEvent):void{
var j:int =buttonA.indexOf(e.currentTarget);

for(i=0;i<buttonA.length;i++){
if(i==j){
sound_mcA[i].play();

} else {
sound_mcA[i].stop();

}

}

}

Votes

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 20, 2024 Mar 20, 2024

Copy link to clipboard

Copied

done

but gets error

leo240861267932_0-1710979137699.png

 

Votes

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 20, 2024 Mar 20, 2024

Copy link to clipboard

Copied

i made the graphic symbols.........and put the name of them in the code but apears this

leo240861267932_0-1710979516232.png

they are in library

leo240861267932_1-1710979568191.png

 

Votes

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 20, 2024 Mar 20, 2024

Copy link to clipboard

Copied

those need to be instance names.

Votes

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 20, 2024 Mar 20, 2024

Copy link to clipboard

Copied

i know the instance of a button 

but not from a graphic symbol

how do i know that 

thanks

Votes

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 20, 2024 Mar 20, 2024

Copy link to clipboard

Copied

i got it 

ill try now

Votes

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 20, 2024 Mar 20, 2024

Copy link to clipboard

Copied

i named the instance sheet1 and sheet2

and happens this...below ... take a look at the graphic...there is a instance named sheet1 for example

leo240861267932_1-1710980036522.png

 

 

Votes

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 20, 2024 Mar 20, 2024

Copy link to clipboard

Copied

pick different names

 make sure there are no lead/trailing spaces

Votes

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 20, 2024 Mar 20, 2024

Copy link to clipboard

Copied

i am trying.......happens the same 

what is lead/trailig spaces ?

Votes

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 20, 2024 Mar 20, 2024

Copy link to clipboard

Copied

a space before or after the alphanumeric characters 

Votes

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 21, 2024 Mar 21, 2024

Copy link to clipboard

Copied

i give up 

it did not work

Votes

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 21, 2024 Mar 21, 2024

Copy link to clipboard

Copied

whats your opinion about it

Votes

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 21, 2024 Mar 21, 2024

Copy link to clipboard

Copied

in the properties panel, change graphic to movieclip for both sheets

Votes

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 21, 2024 Mar 21, 2024

Copy link to clipboard

Copied

now its gettin error with the button of the graphic(movieclip now)... the instance is right i dont know why its happening

leo240861267932_0-1711033033628.png

 

Votes

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 21, 2024 Mar 21, 2024

Copy link to clipboard

Copied

change your buttons to buttons or movieclips

Votes

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 21, 2024 Mar 21, 2024

Copy link to clipboard

Copied

the problem persists in button now

leo240861267932_0-1711033722770.png

 

Votes

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 21, 2024 Mar 21, 2024

Copy link to clipboard

Copied

play1?

Votes

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 21, 2024 Mar 21, 2024

Copy link to clipboard

Copied

play1 is my button

leo240861267932_0-1711035140600.png

 

Votes

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 21, 2024 Mar 21, 2024

Copy link to clipboard

Copied

they need to be on the main timeline 

Votes

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 21, 2024 Mar 21, 2024

Copy link to clipboard

Copied

ok ill try

Votes

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 21, 2024 Mar 21, 2024

Copy link to clipboard

Copied

it got static

does not move the line of the sheet music and theres no sound

there s no erros anymore

but does not work

leo240861267932_0-1711037974450.png

 

Votes

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 21, 2024 Mar 21, 2024

Copy link to clipboard

Copied

what now

Votes

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