I am working on a flash webiste and what I found out that my sound are slowing down my flash to run animations. I have added a dog wh is scratching himself and meanwhile sound is playing. It gets stuck for a second or two. I've checked if ther is duplicate frames that might cuse this but no... So I removed sound and it works well.
Problem is that if there is no sound, it seems booring. What I think is if I would just preload all sounds like preloading movie, i would get it working. I know there's way to do that. So can anybody give me some code for it or maybe even integrate it to my preloader:
total = _root.getBytesTotal();
loaded = _root.getBytesLoaded();
percent = int(loaded / total * 100);
text = "Loaded " + percent + "%";
if (loaded == total)
} // end if
Sound file is located in "symbol 601" and in layer called "Stream Sound Layer".