• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
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.1K

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 100 Replies 100
Contributor ,
Mar 19, 2024 Mar 19, 2024

Copy link to clipboard

Copied

tell me more

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

Copy link to clipboard

Copied

i just got a look at all you told me 

and i thank you 

but i did not get the point

when you sent to me buttons i new what to do 

just to place the name of the instance in button code

but for this situation i dont know what to do

help me please

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

Copy link to clipboard

Copied

then remove the code you used and 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 20, 2024 Mar 20, 2024

Copy link to clipboard

Copied

thanks a lot for the code 

but i dont know where to paste

i am lost

tell me

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

Copy link to clipboard

Copied

on the main timeline where your sound graphic symbols are

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

Copy link to clipboard

Copied

thats ok thank you

its been a long conversation here

i am confused.....

tell me exactly what is suposed to paste in the timeline 

describe please

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 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

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

ok thanks

what do i replace what

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

Copy link to clipboard

Copied

remove all your code and use the code i suggested.  use your graphic instance names instead of sound1_mc etc and use your button instance names instead of b1 etc

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

Copy link to clipboard

Copied

ok now we are gettin in toch

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

Copy link to clipboard

Copied

i did all you told me 

here i send what ive done

leo240861267932_0-1710950239452.png

here the errors

i donot know how to deal with this errors

you got it you are the man tell me what to do

leo240861267932_1-1710950372827.png

 

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

Copy link to clipboard

Copied

after for(... the commas should be semicolons 

 

 

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){

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

Copy link to clipboard

Copied

o dont understand this symbol name 

this is the first time you talk to me about this

show me here

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

Copy link to clipboard

Copied

replace the lines that start with

 

for(

 

to

 

for(i=0;i<buttonA.length;i++){

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

Copy link to clipboard

Copied

you got it 

it worked 

there just one problem i send you here

leo240861267932_0-1710951231358.png

 

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

Copy link to clipboard

Copied

add } at the end of the code

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

Copy link to clipboard

Copied

but already have two

take a look at the end

leo240861267932_0-1710954452139.png

what now man thank you

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

Copy link to clipboard

Copied

add. a 3rd

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

Copy link to clipboard

Copied

take a look at the video to see what happens after i place one more }

 

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

Copy link to clipboard

Copied

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

Copy link to clipboard

Copied

you don't need a video to show errors. just paste a screenshot here so it's easier for me (on my cell phone) to check.

 

that looks like you haven't defined sheet1 etc

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

Copy link to clipboard

Copied

ok

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

Copy link to clipboard

Copied

here we go man

leo240861267932_0-1710962690281.png

 

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

Copy link to clipboard

Copied

where's var i?

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