# \[FMX\]Arg! Desperate! need help please!

**URL:** https://forum.kirupa.com/t/fmx-arg-desperate-need-help-please/16888
**Category:** Uncategorized
**Created:** [March 29, 2003, 3:55pm UTC](https://forum.kirupa.com/t/fmx-arg-desperate-need-help-please/16888 "2003-03-29T15:55:34Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Dr\_kibbles](https://avatars.discourse-cdn.com/v4/letter/d/cc9497/32.png) [@Dr\_kibbles](https://forum.kirupa.com/u/Dr_kibbles)
#### Post date: [March 29, 2003, 3:55pm UTC](https://forum.kirupa.com/t/fmx-arg-desperate-need-help-please/16888/1 "2003-03-29T15:55:34Z")

</div>

could anyone help me out with some action scripting for sound…

I got a basic idea down from the tutorial but it keeps acting up. I got the play button to work but for some reason I can’t get any of the other buttons to do what I want them too.

I had done it once in flash 5 but, MX is a little different and wont let me do it the same way.

I had it set up so each song was like a number and if you press the button it subtracts or adds one to that number depending on what button you press so it will go to the next track.

I REALLY NEED JUST A WEE BIT OF HELP…thanks

display like this  
list like-

example:

play-  
on (release) {  
x = 1;  
Sound = new Sound(this);  
Sound.attachSound(“sound1”);  
Sound.start(0, 99);  
}

Forward- on (release) {  
x = x + 1;  
if (x=4) {  
x = 1;  
if (x=1) {  
Sound.attachSound(“sound1”);  
Sound.start(0, 99);  
if (x=2) {  
Sound.attachSound(“sound2”);  
Sound.start(0, 99);  
if (x=3) {  
Sound.attachSound(“sound3”);  
Sound.start(0, 99);  
}  
}  
}  
}  
}

stop- ?  
pause- ?  
backward- ?

None of the buttons work except play and i cant remember how i got them to work before, if an experience person could help It would be in my debt …thanks,  
Dr.Kibbles  
:elderly:

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [March 29, 2003, 5:37pm UTC](https://forum.kirupa.com/t/fmx-arg-desperate-need-help-please/16888/2 "2003-03-29T17:37:42Z")

</div>

Howdy…

You need == within the if statement to check the condition… 😉

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [March 31, 2003, 4:39am UTC](https://forum.kirupa.com/t/fmx-arg-desperate-need-help-please/16888/3 "2003-03-31T04:39:50Z")

</div>

That helps out a little bit but I still got a problem where It counts through the sounds…but refuses to play them …i think I labled the play command wrong - .attachsound(“sound1”) then .start (0,99)…but I’m not sure of what else to do…help please

Also whenever I use the stop command it refuses to start up again when you hit play…initially when the site first lauches play works for the first time…but hit stop then play and it doesn’t
