if you don't want your swf to start until the user does something, put an empty keyframe in frame 1 of the swf and attach a stop(). add code that first frame to respond to the user by executing a play() method.
in flash player i wont to do hem to play after click not when reloed page...
in code i mast write that...
var music:Sound = new Sound(); music.load(soundRequest); var theChannel:SoundChannel = music.play(root.pointDebut); var newSetting:SoundTransform = new SoundTransform();
maybe is needed to insert
autoPlay:Boolean = false;
yes or not? i do same errors in code?
A
Anonymous
January 30, 2010
SergyK,
I built this mp3 player a while back that has the play and pause button sitting on top of each other. I searched and searched for this tutorial, but couldn't find it for you. So... here is my .fla file so you can see how it is built. This project really needs to show the mp3 file loading... it won't do anything till the mp3 file is downloaded completely... about 5-10 seconds depending upon your connection to the internet. A work in progress...
The user has to initiate the play button for the mp3 to play however.