I figured out how to get sound to load from the library in AS3, which is good, however I’m trying to do the same technique in another fla with different mp3s and i get the following error. WTF?
’Sound has no valid device sound path although exporting device sounds was requested in the export settings. This sound will be ignored.'
You can check out my code below, anyone else thats run into this let me know.
<code>
var scratchyA:Sound;
var scratchyAChannel:SoundChannel;
var scratchyATransform:SoundTransform;
scratchyA = new ScratchSoundA() as Sound;
scratchyAChannel = scratchyA.play (0,1,null);
setVolume (scratchyAChannel, 0.75);
scratchyAChannel.stop ();
function setVolume (channel:SoundChannel, volume:Number) {
var transform:SoundTransform = channel.soundTransform;
transform.volume = volume;
channel.soundTransform = transform;
}
</code>