WHew! Thanks, this relieves some worry. Now I have to figure out how to dynamically name classes...
I could do: var a1 = new a1(); var aSharp1 = new aSharp1(); var b1 = new b1(); ... But would be nice to keep same looping logic I've been using with an array of note names and looking up the sound in the library as noteName + octave. Any idea how to specify the name of a class dynamically like this? Reading up on the new introspection API... On 2/7/07, James Marsden <[EMAIL PROTECTED]> wrote:
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
_______________________________________________ [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

