ForumsProgramming Forum[AS2] Sounds glitching. :l

3 3348
Schnuffles
offline
Schnuffles
2 posts
Nomad

Alright, I have attached sounds (within classes) using

example = new Sound(this);
example.attachSound("linkageName"
example.start();


And it worked perfectly fine before, but out of nowhere it just went screwy. Now all the sounds are delayed or don't even play.

Can someone help? If this isn't fixed I won't be able to finish my game and that will make me sad.

  • 3 Replies
rynad27
offline
rynad27
4 posts
Nomad

i had this problem while i was making option buttons to mute sound and music separately, and when the music was turned off only one sound effect would play and the sounds would be delayed, i fixed it by using setVolume() for the music.

rynad27
offline
rynad27
4 posts
Nomad

try test the swf file in your documents instead of testing the movie, it mite just be flash.

PixelSmash
offline
PixelSmash
566 posts
Nomad

What rynad said actually applies to a broader aspect - on more than one occasion I've had a project where a movie didn't behave the same when comparing between the in-flash test, and as standalone swf.

As for your problem specifically... I;m just brainstorming here, but could it be that you've added more code which has to run every frame? Perhaps the movie wants to execute too much at the same time... Like I said, it's just a guess, and if it is indeed the case I don't know a quick solution to it...

Showing 1-3 of 3