Hey,

Try giving your library sound a Class linkage name such as 'MySound', and instantiating with:

var mySound:Sound = new MySound();


// the Sound object will bind to the audio clip in the library, so you should be able to do:

mySound.play();


We had the same issue today...

J


P.S. this is the same situation as with attachMovie - MovieClips are now bound to the resulting Object returned by the Class...



Jason Boyd wrote:
I didn't get any repsonses with my earlier post. Here's a shorter version.

Is anyone using embedded event sounds in ActionScript 3?

The published docs do not make clear how one is supposed to replace
attachSound(), as they only give a Flex example, which in itself is
screwy in that it requires a Sound subclass for each loaded sound.
This does not bode well for my app that loads 4 chromatic octaves of
notes with distinct Sound instances, calling attachSound() on each.
It's preventing me from even attempting to migrate to AS 3...

Any help or comments appreciated.
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to