Connecting Tech Pros Worldwide Forums | Help | Site Map

Sound doesn't work when i upload to the web

Member
 
Join Date: Jan 2008
Posts: 113
#1: Mar 2 '09
Hi,

I've added a number of sounds to my flash movie, which are triggered by actionscript:

Expand|Select|Wrap|Line Numbers
  1. var bg_sound:Sound = new Sound();
  2. bg_sound.attachSound("bg_sound");
  3. bg_sound.setVolume(0);
  4. bg_sound.start(0,999);
  5.  
The sounds play fine locally when the sound.swf is loaded. However when i load the sound.swf file through my preloader (loader.swf), the sounds do not work. Now i'm guessing this is a reference problem. However when i create a dynamic text box and display the bg_sound reference through that, it comes up as a an object meaning the reference is correct.

Does anyone know why this is not working?

Thanks,

Chromis

gopan's Avatar
Member
 
Join Date: Apr 2009
Location: Kochi (COK), India
Posts: 41
#2: Apr 23 '09

re: Sound doesn't work when i upload to the web


I'm not getting what is your problem...

is the AS you written in the sound.swf ?
if is the sound "bg_sound" is available in sound.swf as a linked identifier ?
Reply