all groups > flash actionscript > november 2004 >
You're in the

flash actionscript

group:

My sound will not play.


Re: My sound will not play. tralfaz
11/19/2004 3:29:21 PM
flash actionscript:
my_sound = new Sound(this); // add "this"
I never was clear why 'this' is needed but it does often fix the
problem.
tralfaz

[quoted text, click to view]

My sound will not play. Randy Collier
11/19/2004 10:11:11 PM
:confused;

I have an .as file that has many functions. One of the functions is supposed
to attach a variable the the word sound, attach sound and .start(); all from
another function.

ex.

function start()
{
//blah blah
playsound();
//blah blah
}

function playsound()
{

my_sound = new Sound();
my_sound.attachSound("1sound1english");
my_sound.start();
}

but it does not work. (this is simple version of what I am working with)
I have place traces all around the darn thing and found that the first
function calls to playsound but it just does not want to play the sound.

I need help!
Re: My sound will not play. aharris NO[at]SPAM cs.iupui.edu
11/20/2004 6:14:46 AM
[quoted text, click to view]

Usually this is a problem with the audio file's linkage. Right click
on the sound in the library, choose 'linkages' and set linkage to
'export for actionscript' It will automatically set 'load in first
frame.'

Re: My sound will not play. aharris NO[at]SPAM cs.iupui.edu
11/20/2004 6:35:27 AM
[quoted text, click to view]

Usually this is a problem with the audio file's linkage. Right click
on the sound in the library, choose 'linkages' and set linkage to
'export for actionscript' It will automatically set 'load in first
frame.'

AddThis Social Bookmark Button