Yeah, cool.
btw if you want one of these let me know... :p
http://www.futurlab.co.uk/tshirt.jpg
J
Jason Boyd wrote:
Well it appears this is the shortest way:
var chromaticNames =
['a','aS','b','c','cS','d','dS','e','f','fS','g','gS'];
var loadedSounds:Array = new Array();
for (var oct=1; oct<6; oct++) {
for (var n=0; n<chromaticNames.length; n++) {
var sndClass:Class = flash.utils.getDefinitionByName(chromaticNames[n] +
oct);
var snd:Sound = Sound(new sndClass());
loadedSounds.push(snd);
}
}
It works, but is a bit clunky. And have to rename all sharp notes from
a# to
aS and such. Ah well. Thanks for the solution!
_______________________________________________
Flashcoders@chattyfig.figleaf.com
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
_______________________________________________
Flashcoders@chattyfig.figleaf.com
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