PDA

View Full Version : Sound in Flash 5 on newer machines


planettom
06-09-2008, 10:36 AM
I've got a PC from 2004, I think it's a pentium 3 3.3 ghz.

I've occasionally still been using Flash 5 to make some little games. I know, ancient history, but it's what I can churn out stuff fastest with.

The problem is, when I run it on this older machine, it works fine...

...but when I tried it out recently on several much newer computers, and, I'd think, superior, I found a weird thing, when I play a .wav file, there's a distinct hiccup on the newer machines (when I've got keyboard-controlled objects moving around), the game sort of pauses for a split second, and it's annoying.

Basically I've got the sound set up like this early on:
(kaboom being a .wav file with linkage of that name, "kaboom"


mySound=new Sound();
mySound.attachSound("kaboom");
mySound.setVolume(25);

And then, later in the game when I need that sound:

mySound.start();

But as I say, it works swimmingly on my older machine, but on a new laptop and a friend's newer machine, when the sound plays, the game sort of shudders.

Any idea why, that Flash 5 sound seems to be more problematic on a newer machine?

It's annoying to have the game work really well on my older machine, and then, when I try to show it to a friend on their newer machine, find that it seems much more sluggish when the sound causes the game to sort of jerk in the midst of action....