Copy link to clipboard
Copied
Copy link to clipboard
Copied
tell me more
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
Copy link to clipboard
Copied
then remove the code you used and use the code i suggested.
Copy link to clipboard
Copied
thanks a lot for the code
but i dont know where to paste
i am lost
tell me
Copy link to clipboard
Copied
on the main timeline where your sound graphic symbols are
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
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();
}
}
Copy link to clipboard
Copied
ok thanks
what do i replace what
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
Copy link to clipboard
Copied
ok now we are gettin in toch
thanks
Copy link to clipboard
Copied
you're welcome,
Copy link to clipboard
Copied
i did all you told me
here i send what ive done
here the errors
i donot know how to deal with this errors
you got it you are the man tell me what to do
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){
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
Copy link to clipboard
Copied
replace the lines that start with
for(
to
for(i=0;i<buttonA.length;i++){
Copy link to clipboard
Copied
you got it
it worked
there just one problem i send you here
Copy link to clipboard
Copied
add } at the end of the code
Copy link to clipboard
Copied
but already have two
take a look at the end
what now man thank you
Copy link to clipboard
Copied
add. a 3rd
Copy link to clipboard
Copied
Copy link to clipboard
Copied
what now man
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
Copy link to clipboard
Copied
ok
Copy link to clipboard
Copied
here we go man
Copy link to clipboard
Copied
where's var i?