I have this code that plays m4a files. I can throw it in a frame in a Flash file (I'm using CS4) and it plays the file wonderfully.
I've looked through the source .fla and associated class files, but I can't find where the player actually starts playing the file to substitute this code in it. Of course, I'd have to change some of these variables so that they're not hardcoded.
var mySound:SoundTransform; var connect_nc:NetConnection = new NetConnection(); connect_nc.connect(null); var stream_ns:NetStream = new NetStream(connect_nc); stream_ns.client = this; stream_ns.play("http://www.example.com/sound.m4a"); mySound = stream_ns.soundTransform; mySound.volume = .5; stream_ns.soundTransform = mySound;