[FMX]Arg! Desperate! need help please!

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:

Howdy…

You need == within the if statement to check the condition… :wink:

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