Hi, im completely new to Flash ActionScripting, and pretty much flash in general. Im using SWiSHmax unti I can get used to using Flash MX, anyhow, the scripting is pretty much if not exactly the same (from what I can tell)…
I’m trying to make it so that when you click on the flash the movie pauses (if there is no pause, stop is fine) I would rather it not do either of those and just mute all of the sound I have in the movie (4 different .wav files) I tried using stopallsound() or whatever, but it would only stop the sound currently playing, the next time one got called it would still play. So I would prefer muting the sounds, or second pausing the movie, or worst, stopping the movie. I want it so that after you have clicked to stop the movie(or mute the sounds), you can click again and reactivate the movie (or sound). Like a toggle button except with the entire movie.
I could easily do something like this in another language, but ActionScript is alot … different
Thus far I’ve gotton:
on (release) {
if (type = “” || type = “playing”)
var type = “stopped”;
gotoAndStop(1);
}
on (release) {
if (type = “stopped”)
var type = “playing”;
gotoAndPlay(1);
}
I would MUCH RATHER it just mute the sound, but I havn’t got a clue how to do this. Starting and stopping the movie was really my last resort.
Also any beginner tutorials on actionscripting, etc would be very helpful if you guys have any Thanks!