I made this little musicplayer with only a stop and a play in it.
The thing is it will only stop the sound, and not play it again.
I don't know what i did wrong. The code seems fine, the mc has the correct instance name..
Can anyone tell me?
Posted 22 January 2007 - 05:21 AM
Posted 22 January 2007 - 08:54 AM
Posted 22 January 2007 - 09:24 AM
Posted 22 January 2007 - 09:37 AM
Posted 22 January 2007 - 09:44 AM
Posted 22 January 2007 - 11:03 AM
Posted 22 January 2007 - 07:56 PM
Posted 23 January 2007 - 03:06 AM
Hopefully they removed the stopAllSounds(); function with Actionscript 3.0. I can't download it yet.
stopAll () method
public static function stopAll():void
Stops all sounds currently playing.
This method does not stop the playhead. Sounds set to stream will resume playing as the playhead moves over the frames in which they are located.
When using this property, consider the Flash Player security model:
* By default, calling the soundMixer.stopAll() method stops only sounds in the same security sandbox as the object that is calling the method. Any sounds whose playback was not started from the same sandbox as the calling object are not stopped.
* When you load the sound, using the load() method of the Sound class, you can specify a context parameter, which is a SoundLoaderContext object. If you set the checkPolicyFile property of the SoundLoaderContext object to true, Flash Player checks for a cross-domain policy file on the server from which the sound is loaded. If the server has a cross-domain policy file, and the file permits the domain of a SWF file, then the file can stop the loaded sound by using the soundMixer.stopAll() method; otherwise it cannot.
Posted 23 January 2007 - 03:36 AM
Posted 23 January 2007 - 04:50 AM
Posted 23 January 2007 - 05:43 AM
Yeah I know, but I still don't see why it needs to be used.hmm.. let me think.. I've used it once or twice..
Eitherway, I'm pretty sure that they took the function to AS3 because it's beeing used. you & me are no reference for them There needs to be 100s of people saying to take that function out..
Posted 23 January 2007 - 09:32 AM
Posted 23 January 2007 - 08:06 PM
0 members, 0 guests, 0 anonymous users