Hi. Im doing a little game with three kinds of enemies. When each enemy blows up I’m trying to put in a different sound. Right now I get sound for my first enemy and none for the other two. The code is the same for all(?). Here’s the code:
from my main ship>
function onLoad()
{
_root.backGroundMusic=new Sound(); // mine
_root.miniBossBlow=new Sound(); //mine
_root.enemyBlow=new Sound(); //mine
_root.shot= new Sound(); //mine
_root.soundFX= new Sound(); //mine trying to get more sounds
from my enemy ship class(this one works)>
function explode()
{
_root.enemyBlow.attachSound(“bigExplosion1.mp3”);
_root.enemyBlow.start();
from miniBoss class(no sound)>
function explode()
{
_root.miniBossBlow.attachSound=(“miniBossBlow1.mp3”);
_root.miniBossBlow.start();
from my boss class(no sound)>
function explode()
{
_root.bossBlow.attachSound=(“bossBlow.mp3”);
_root.bossBlow.start();
i have NO idea but will continue 2 scrabble around blindly 'till someone throws me a bone:stare: