I am creating a flash file that when it is opened as swf it starts playing an mp3 which is stored in the same folder on the cd. I can get it to play fine using the below code. I am trying to add a button to pause it or even mute it but i cant get it to work. Can some one point me in the right direction.
Code:var req:URLRequest = new URLRequest("abc.mp3"); var trans:SoundTransform = new SoundTransform(-50, -50); var s:Sound = new Sound(req); s.play(1,1);
There are currently 1 users browsing this thread. (0 members and 1 guests)