Re: [{SPAM?}] - [Flashcoders] Stop loading sounds - Email found in subject
Try mySound.stop(); delete mySound; - Ben http://www.bencline.net On Feb 26, 2007, at 4:34 PM, Omar Fouad wrote: Nah, i tried mySound.load(); but it only stops the sound, and doesnt stol loading it better ideas?? On 2/26/07, Omar Fouad [EMAIL PROTECTED] wrote: allright i'll try it thanks so much On 2/25/07, Cole Peterson [EMAIL PROTECTED] wrote: mySound.load(file.mp3, true); then ... mySound.load(); will stop the loading of the mp3. thanks cole peterson -Original Message- From: [EMAIL PROTECTED] on behalf of Omar Fouad Sent: Sun 2/25/2007 11:52 AM To: Flashcoders mailing list Subject: [{SPAM?}] - [Flashcoders] Stop loading sounds - Email found in subject i have a Sound object called mySound i set it to load an mp3 and set is streaming to true as follow: mySound.load(file.mp3, true); so it plays and buffers the mp3 untill the load is complete. Actually i need my stop button to stop the song and to stop it buffering!!! as in buffering will let the movie itself load the external swfs very slowly. is there something that pauses streaming i can use in this case Thanks so much -- Omar Fouad - Digital Emotions... Love is always patient and kind. It is never jealous. Love is never boastful nor conceited It is never rude or selfish. It does not take offense and is not resentful. Love takes no pleasure in other people's sins...but delights in the truth. It is always ready to excuse, to trust, to hope... and to endure... whatever comes. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com -- Omar Fouad - Digital Emotions... Love is always patient and kind. It is never jealous. Love is never boastful nor conceited It is never rude or selfish. It does not take offense and is not resentful. Love takes no pleasure in other people's sins...but delights in the truth. It is always ready to excuse, to trust, to hope... and to endure... whatever comes. -- Omar Fouad - Digital Emotions... Love is always patient and kind. It is never jealous. Love is never boastful nor conceited It is never rude or selfish. It does not take offense and is not resentful. Love takes no pleasure in other people's sins...but delights in the truth. It is always ready to excuse, to trust, to hope... and to endure... whatever comes. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [{SPAM?}] - [Flashcoders] Stop loading sounds - Email found in subject
i tried deleting it but it still buffers on the background it seems the load method isnt static... On 2/28/07, Ben Cline [EMAIL PROTECTED] wrote: Try mySound.stop(); delete mySound; - Ben http://www.bencline.net On Feb 26, 2007, at 4:34 PM, Omar Fouad wrote: Nah, i tried mySound.load(); but it only stops the sound, and doesnt stol loading it better ideas?? On 2/26/07, Omar Fouad [EMAIL PROTECTED] wrote: allright i'll try it thanks so much On 2/25/07, Cole Peterson [EMAIL PROTECTED] wrote: mySound.load(file.mp3, true); then ... mySound.load(); will stop the loading of the mp3. thanks cole peterson -Original Message- From: [EMAIL PROTECTED] on behalf of Omar Fouad Sent: Sun 2/25/2007 11:52 AM To: Flashcoders mailing list Subject: [{SPAM?}] - [Flashcoders] Stop loading sounds - Email found in subject i have a Sound object called mySound i set it to load an mp3 and set is streaming to true as follow: mySound.load(file.mp3, true); so it plays and buffers the mp3 untill the load is complete. Actually i need my stop button to stop the song and to stop it buffering!!! as in buffering will let the movie itself load the external swfs very slowly. is there something that pauses streaming i can use in this case Thanks so much -- Omar Fouad - Digital Emotions... Love is always patient and kind. It is never jealous. Love is never boastful nor conceited It is never rude or selfish. It does not take offense and is not resentful. Love takes no pleasure in other people's sins...but delights in the truth. It is always ready to excuse, to trust, to hope... and to endure... whatever comes. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com -- Omar Fouad - Digital Emotions... Love is always patient and kind. It is never jealous. Love is never boastful nor conceited It is never rude or selfish. It does not take offense and is not resentful. Love takes no pleasure in other people's sins...but delights in the truth. It is always ready to excuse, to trust, to hope... and to endure... whatever comes. -- Omar Fouad - Digital Emotions... Love is always patient and kind. It is never jealous. Love is never boastful nor conceited It is never rude or selfish. It does not take offense and is not resentful. Love takes no pleasure in other people's sins...but delights in the truth. It is always ready to excuse, to trust, to hope... and to endure... whatever comes. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com -- Omar Fouad - Digital Emotions... Love is always patient and kind. It is never jealous. Love is never boastful nor conceited It is never rude or selfish. It does not take offense and is not resentful. Love takes no pleasure in other people's sins...but delights in the truth. It is always ready to excuse, to trust, to hope... and to endure... whatever comes. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [{SPAM?}] - [Flashcoders] Stop loading sounds - Email found in subject
Nah, i tried mySound.load(); but it only stops the sound, and doesnt stol loading it better ideas?? On 2/26/07, Omar Fouad [EMAIL PROTECTED] wrote: allright i'll try it thanks so much On 2/25/07, Cole Peterson [EMAIL PROTECTED] wrote: mySound.load(file.mp3, true); then ... mySound.load(); will stop the loading of the mp3. thanks cole peterson -Original Message- From: [EMAIL PROTECTED] on behalf of Omar Fouad Sent: Sun 2/25/2007 11:52 AM To: Flashcoders mailing list Subject: [{SPAM?}] - [Flashcoders] Stop loading sounds - Email found in subject i have a Sound object called mySound i set it to load an mp3 and set is streaming to true as follow: mySound.load(file.mp3, true); so it plays and buffers the mp3 untill the load is complete. Actually i need my stop button to stop the song and to stop it buffering!!! as in buffering will let the movie itself load the external swfs very slowly. is there something that pauses streaming i can use in this case Thanks so much -- Omar Fouad - Digital Emotions... Love is always patient and kind. It is never jealous. Love is never boastful nor conceited It is never rude or selfish. It does not take offense and is not resentful. Love takes no pleasure in other people's sins...but delights in the truth. It is always ready to excuse, to trust, to hope... and to endure... whatever comes. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com -- Omar Fouad - Digital Emotions... Love is always patient and kind. It is never jealous. Love is never boastful nor conceited It is never rude or selfish. It does not take offense and is not resentful. Love takes no pleasure in other people's sins...but delights in the truth. It is always ready to excuse, to trust, to hope... and to endure... whatever comes. -- Omar Fouad - Digital Emotions... Love is always patient and kind. It is never jealous. Love is never boastful nor conceited It is never rude or selfish. It does not take offense and is not resentful. Love takes no pleasure in other people's sins...but delights in the truth. It is always ready to excuse, to trust, to hope... and to endure... whatever comes. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] Stop loading sounds
i have a Sound object called mySound i set it to load an mp3 and set is streaming to true as follow: mySound.load(file.mp3, true); so it plays and buffers the mp3 untill the load is complete. Actually i need my stop button to stop the song and to stop it buffering!!! as in buffering will let the movie itself load the external swfs very slowly. is there something that pauses streaming i can use in this case Thanks so much -- Omar Fouad - Digital Emotions... Love is always patient and kind. It is never jealous. Love is never boastful nor conceited It is never rude or selfish. It does not take offense and is not resentful. Love takes no pleasure in other people's sins...but delights in the truth. It is always ready to excuse, to trust, to hope... and to endure... whatever comes. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [{SPAM?}] - [Flashcoders] Stop loading sounds - Email found in subject
mySound.load(file.mp3, true); then ... mySound.load(); will stop the loading of the mp3. thanks cole peterson -Original Message- From: [EMAIL PROTECTED] on behalf of Omar Fouad Sent: Sun 2/25/2007 11:52 AM To: Flashcoders mailing list Subject: [{SPAM?}] - [Flashcoders] Stop loading sounds - Email found in subject i have a Sound object called mySound i set it to load an mp3 and set is streaming to true as follow: mySound.load(file.mp3, true); so it plays and buffers the mp3 untill the load is complete. Actually i need my stop button to stop the song and to stop it buffering!!! as in buffering will let the movie itself load the external swfs very slowly. is there something that pauses streaming i can use in this case Thanks so much -- Omar Fouad - Digital Emotions... Love is always patient and kind. It is never jealous. Love is never boastful nor conceited It is never rude or selfish. It does not take offense and is not resentful. Love takes no pleasure in other people's sins...but delights in the truth. It is always ready to excuse, to trust, to hope... and to endure... whatever comes. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] Stop loading
Whats the best way to stop a sound from loading ? I fired the Sound.loadsound() method but suddenly for a reason, I need to stop the loading right away. Same thing with MovieClipoader. Will the MovieClipLoader.unloadClip method simply stop the downloading of the image ? ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Stop loading
afaik there is no way to stop the actual load. On 5/13/06, Patrick Matte [EMAIL PROTECTED] wrote: Whats the best way to stop a sound from loading ? I fired the Sound.loadsound() method but suddenly for a reason, I need to stop the loading right away. Same thing with MovieClipoader. Will the MovieClipLoader.unloadClip method simply stop the downloading of the image ? ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com -- j:pn http://www.lennel.org ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Stop loading
Have you researched the livedocs yet? http://livedocs.macromedia.com/flash/mx2004/main_7_2/wwhelp/wwhimpl/ common/html/wwhelp.htm?context=Flash_MX_2004file=0364.html#77315 On May 13, 2006, at 3:23 PM, Patrick Matte wrote: Whats the best way to stop a sound from loading ? I fired the Sound.loadsound() method but suddenly for a reason, I need to stop the loading right away. Same thing with MovieClipoader. Will the MovieClipLoader.unloadClip method simply stop the downloading of the image ? ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Stop loading
It seems the only way to stop a sound from loading is to start loading another sound in the same Sound Object. You can even load a sound that doesn't actually exists on the server, it creates an error but it stops the sound from loading. For MovieClipLoader, the unloadClip method works fine although it doesn't fire the onLoadError method like it says it should in the help docs. Le 13/05/06 15:26, « Johannes Nel » [EMAIL PROTECTED] a écrit : afaik there is no way to stop the actual load. On 5/13/06, Patrick Matte [EMAIL PROTECTED] wrote: Whats the best way to stop a sound from loading ? I fired the Sound.loadsound() method but suddenly for a reason, I need to stop the loading right away. Same thing with MovieClipoader. Will the MovieClipLoader.unloadClip method simply stop the downloading of the image ? ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Stop loading
I just tested this code and it worked as it should. code var s:Sound = new Sound(); s.loadSound(Finish Line.mp3 , true); s.start(999,1); function stopSong(){ s.stop(); clearInterval(myTimer); trace(stopSong called); } myTimer= setInterval(stopSong , 1); /code I of course put the swf and the mp3 in the same directory to test this. I used the setInterval just to do a quick test that it shuts off after 10 seconds. Gerry ... http://www.thespikeranch.com Certified Macromedia Flash MX Designer ... On May 13, 2006, at 3:23 PM, Patrick Matte wrote: Whats the best way to stop a sound from loading ? I fired the Sound.loadsound() method but suddenly for a reason, I need to stop the loading right away. Same thing with MovieClipoader. Will the MovieClipLoader.unloadClip method simply stop the downloading of the image ? ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Stop loading
Your code will actually stop the streaming sound from playing, but not from being downloaded from the server. Le 13/05/06 17:14, « Gerry Creighton » [EMAIL PROTECTED] a écrit : I just tested this code and it worked as it should. code var s:Sound = new Sound(); s.loadSound(Finish Line.mp3 , true); s.start(999,1); function stopSong(){ s.stop(); clearInterval(myTimer); trace(stopSong called); } myTimer= setInterval(stopSong , 1); /code I of course put the swf and the mp3 in the same directory to test this. I used the setInterval just to do a quick test that it shuts off after 10 seconds. Gerry ... http://www.thespikeranch.com Certified Macromedia Flash MX Designer ... On May 13, 2006, at 3:23 PM, Patrick Matte wrote: Whats the best way to stop a sound from loading ? I fired the Sound.loadsound() method but suddenly for a reason, I need to stop the loading right away. Same thing with MovieClipoader. Will the MovieClipLoader.unloadClip method simply stop the downloading of the image ? ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Stop loading
True...I didn't cover that. On May 13, 2006, at 6:01 PM, Patrick Matte wrote: Your code will actually stop the streaming sound from playing, but not from being downloaded from the server. Le 13/05/06 17:14, « Gerry Creighton » [EMAIL PROTECTED] a écrit : I just tested this code and it worked as it should. code var s:Sound = new Sound(); s.loadSound(Finish Line.mp3 , true); s.start(999,1); function stopSong(){ s.stop(); clearInterval(myTimer); trace(stopSong called); } myTimer= setInterval(stopSong , 1); /code I of course put the swf and the mp3 in the same directory to test this. I used the setInterval just to do a quick test that it shuts off after 10 seconds. Gerry . ... ... http://www.thespikeranch.com Certified Macromedia Flash MX Designer . ... ... On May 13, 2006, at 3:23 PM, Patrick Matte wrote: Whats the best way to stop a sound from loading ? I fired the Sound.loadsound() method but suddenly for a reason, I need to stop the loading right away. Same thing with MovieClipoader. Will the MovieClipLoader.unloadClip method simply stop the downloading of the image ? ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Stop loading
What about using the following code... s.loadSound(,true); code var s:Sound = new Sound(); s.loadSound(Finish Line.mp3 , true); s.start(999,1); function stopSong(){ //s.stop(); s.loadSound(,true); clearInterval(myTimer); trace(stopSong called); } myTimer= setInterval(stopSong , 5000); /code This would load nothing. Gerry On May 13, 2006, at 6:01 PM, Patrick Matte wrote: Your code will actually stop the streaming sound from playing, but not from being downloaded from the server. Le 13/05/06 17:14, « Gerry Creighton » [EMAIL PROTECTED] a écrit : I just tested this code and it worked as it should. code var s:Sound = new Sound(); s.loadSound(Finish Line.mp3 , true); s.start(999,1); function stopSong(){ s.stop(); clearInterval(myTimer); trace(stopSong called); } myTimer= setInterval(stopSong , 1); /code I of course put the swf and the mp3 in the same directory to test this. I used the setInterval just to do a quick test that it shuts off after 10 seconds. Gerry . ... ... http://www.thespikeranch.com Certified Macromedia Flash MX Designer . ... ... On May 13, 2006, at 3:23 PM, Patrick Matte wrote: Whats the best way to stop a sound from loading ? I fired the Sound.loadsound() method but suddenly for a reason, I need to stop the loading right away. Same thing with MovieClipoader. Will the MovieClipLoader.unloadClip method simply stop the downloading of the image ? ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Stop loading
Yes thats exactly what i found, loading another sound is the only way to stop a sound from loading once its started. - Original Message - From: Gerry Creighton [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Saturday, May 13, 2006 6:21 PM Subject: Re: [Flashcoders] Stop loading What about using the following code... s.loadSound(,true); code var s:Sound = new Sound(); s.loadSound(Finish Line.mp3 , true); s.start(999,1); function stopSong(){ //s.stop(); s.loadSound(,true); clearInterval(myTimer); trace(stopSong called); } myTimer= setInterval(stopSong , 5000); /code This would load nothing. Gerry On May 13, 2006, at 6:01 PM, Patrick Matte wrote: Your code will actually stop the streaming sound from playing, but not from being downloaded from the server. Le 13/05/06 17:14, « Gerry Creighton » [EMAIL PROTECTED] a écrit : I just tested this code and it worked as it should. code var s:Sound = new Sound(); s.loadSound(Finish Line.mp3 , true); s.start(999,1); function stopSong(){ s.stop(); clearInterval(myTimer); trace(stopSong called); } myTimer= setInterval(stopSong , 1); /code I of course put the swf and the mp3 in the same directory to test this. I used the setInterval just to do a quick test that it shuts off after 10 seconds. Gerry . ... ... http://www.thespikeranch.com Certified Macromedia Flash MX Designer . ... ... On May 13, 2006, at 3:23 PM, Patrick Matte wrote: Whats the best way to stop a sound from loading ? I fired the Sound.loadsound() method but suddenly for a reason, I need to stop the loading right away. Same thing with MovieClipoader. Will the MovieClipLoader.unloadClip method simply stop the downloading of the image ? ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Stop loading
How do you know the sound is no longer loading? At 07:32 PM 5/13/2006, you wrote: Yes thats exactly what i found, loading another sound is the only way to stop a sound from loading once its started. - Original Message - From: Gerry Creighton [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Saturday, May 13, 2006 6:21 PM Subject: Re: [Flashcoders] Stop loading What about using the following code... s.loadSound(,true); code var s:Sound = new Sound(); s.loadSound(Finish Line.mp3 , true); s.start(999,1); function stopSong(){ //s.stop(); s.loadSound(,true); clearInterval(myTimer); trace(stopSong called); } myTimer= setInterval(stopSong , 5000); /code This would load nothing. Gerry On May 13, 2006, at 6:01 PM, Patrick Matte wrote: Your code will actually stop the streaming sound from playing, but not from being downloaded from the server. Le 13/05/06 17:14, « Gerry Creighton » [EMAIL PROTECTED] a écrit : I just tested this code and it worked as it should. code var s:Sound = new Sound(); s.loadSound(Finish Line.mp3 , true); s.start(999,1); function stopSong(){ s.stop(); clearInterval(myTimer); trace(stopSong called); } myTimer= setInterval(stopSong , 1); /code I of course put the swf and the mp3 in the same directory to test this. I used the setInterval just to do a quick test that it shuts off after 10 seconds. Gerry . ... ... http://www.thespikeranch.com Certified Macromedia Flash MX Designer . ... ... On May 13, 2006, at 3:23 PM, Patrick Matte wrote: Whats the best way to stop a sound from loading ? I fired the Sound.loadsound() method but suddenly for a reason, I need to stop the loading right away. Same thing with MovieClipoader. Will the MovieClipLoader.unloadClip method simply stop the downloading of the image ? ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] Stop loading
I thought that I read someplace that this method worked (Where 'audio' is a created sound object): code this.audio.stop (); // delete this.audio.onSoundComplete; // this.audio = null; // The only way to stop a sound from downloading is to delete it delete this.audio; /code -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Marc Hoffman Sent: Saturday, May 13, 2006 10:47 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] Stop loading How do you know the sound is no longer loading? At 07:32 PM 5/13/2006, you wrote: Yes thats exactly what i found, loading another sound is the only way to stop a sound from loading once its started. - Original Message - From: Gerry Creighton [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Saturday, May 13, 2006 6:21 PM Subject: Re: [Flashcoders] Stop loading What about using the following code... s.loadSound(,true); code var s:Sound = new Sound(); s.loadSound(Finish Line.mp3 , true); s.start(999,1); function stopSong(){ //s.stop(); s.loadSound(,true); clearInterval(myTimer); trace(stopSong called); } myTimer= setInterval(stopSong , 5000); /code This would load nothing. Gerry On May 13, 2006, at 6:01 PM, Patrick Matte wrote: Your code will actually stop the streaming sound from playing, but not from being downloaded from the server. Le 13/05/06 17:14, « Gerry Creighton » [EMAIL PROTECTED] a écrit : I just tested this code and it worked as it should. code var s:Sound = new Sound(); s.loadSound(Finish Line.mp3 , true); s.start(999,1); function stopSong(){ s.stop(); clearInterval(myTimer); trace(stopSong called); } myTimer= setInterval(stopSong , 1); /code I of course put the swf and the mp3 in the same directory to test this. I used the setInterval just to do a quick test that it shuts off after 10 seconds. Gerry . ... ... http://www.thespikeranch.com Certified Macromedia Flash MX Designer . ... ... On May 13, 2006, at 3:23 PM, Patrick Matte wrote: Whats the best way to stop a sound from loading ? I fired the Sound.loadsound() method but suddenly for a reason, I need to stop the loading right away. Same thing with MovieClipoader. Will the MovieClipLoader.unloadClip method simply stop the downloading of the image ? ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Stop loading
You can watch a sound loading with an interval tracing the Sound.getBytesLoaded method. - Original Message - From: Marc Hoffman [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Saturday, May 13, 2006 11:46 PM Subject: Re: [Flashcoders] Stop loading How do you know the sound is no longer loading? At 07:32 PM 5/13/2006, you wrote: Yes thats exactly what i found, loading another sound is the only way to stop a sound from loading once its started. - Original Message - From: Gerry Creighton [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Saturday, May 13, 2006 6:21 PM Subject: Re: [Flashcoders] Stop loading What about using the following code... s.loadSound(,true); code var s:Sound = new Sound(); s.loadSound(Finish Line.mp3 , true); s.start(999,1); function stopSong(){ //s.stop(); s.loadSound(,true); clearInterval(myTimer); trace(stopSong called); } myTimer= setInterval(stopSong , 5000); /code This would load nothing. Gerry On May 13, 2006, at 6:01 PM, Patrick Matte wrote: Your code will actually stop the streaming sound from playing, but not from being downloaded from the server. Le 13/05/06 17:14, « Gerry Creighton » [EMAIL PROTECTED] a écrit : I just tested this code and it worked as it should. code var s:Sound = new Sound(); s.loadSound(Finish Line.mp3 , true); s.start(999,1); function stopSong(){ s.stop(); clearInterval(myTimer); trace(stopSong called); } myTimer= setInterval(stopSong , 1); /code I of course put the swf and the mp3 in the same directory to test this. I used the setInterval just to do a quick test that it shuts off after 10 seconds. Gerry . ... ... http://www.thespikeranch.com Certified Macromedia Flash MX Designer . ... ... On May 13, 2006, at 3:23 PM, Patrick Matte wrote: Whats the best way to stop a sound from loading ? I fired the Sound.loadsound() method but suddenly for a reason, I need to stop the loading right away. Same thing with MovieClipoader. Will the MovieClipLoader.unloadClip method simply stop the downloading of the image ? ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Stop loading
Thanks. I had not tried that one. No need to load another sound then. It is so simple, i guess i was looking too far : ) - Original Message - From: Ash Warren [EMAIL PROTECTED] To: 'Flashcoders mailing list' flashcoders@chattyfig.figleaf.com Sent: Sunday, May 14, 2006 12:05 AM Subject: RE: [Flashcoders] Stop loading I thought that I read someplace that this method worked (Where 'audio' is a created sound object): code this.audio.stop (); // delete this.audio.onSoundComplete; // this.audio = null; // The only way to stop a sound from downloading is to delete it delete this.audio; /code -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Marc Hoffman Sent: Saturday, May 13, 2006 10:47 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] Stop loading How do you know the sound is no longer loading? At 07:32 PM 5/13/2006, you wrote: Yes thats exactly what i found, loading another sound is the only way to stop a sound from loading once its started. - Original Message - From: Gerry Creighton [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Saturday, May 13, 2006 6:21 PM Subject: Re: [Flashcoders] Stop loading What about using the following code... s.loadSound(,true); code var s:Sound = new Sound(); s.loadSound(Finish Line.mp3 , true); s.start(999,1); function stopSong(){ //s.stop(); s.loadSound(,true); clearInterval(myTimer); trace(stopSong called); } myTimer= setInterval(stopSong , 5000); /code This would load nothing. Gerry On May 13, 2006, at 6:01 PM, Patrick Matte wrote: Your code will actually stop the streaming sound from playing, but not from being downloaded from the server. Le 13/05/06 17:14, « Gerry Creighton » [EMAIL PROTECTED] a écrit : I just tested this code and it worked as it should. code var s:Sound = new Sound(); s.loadSound(Finish Line.mp3 , true); s.start(999,1); function stopSong(){ s.stop(); clearInterval(myTimer); trace(stopSong called); } myTimer= setInterval(stopSong , 1); /code I of course put the swf and the mp3 in the same directory to test this. I used the setInterval just to do a quick test that it shuts off after 10 seconds. Gerry . ... ... http://www.thespikeranch.com Certified Macromedia Flash MX Designer . ... ... On May 13, 2006, at 3:23 PM, Patrick Matte wrote: Whats the best way to stop a sound from loading ? I fired the Sound.loadsound() method but suddenly for a reason, I need to stop the loading right away. Same thing with MovieClipoader. Will the MovieClipLoader.unloadClip method simply stop the downloading of the image ? ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman
Re: [Flashcoders] Stop loading
Well, Sound.getBytesLoaded() wouldn't show if a sound was continuing to load into cache after starting to load a new (or even missing) sound file into the same sound object. It would just show loading for the new sound. But I just ran a test which shows that loading a new sound into a sound object does, in fact, curtail an earlier loading of a different sound into the same object: http://www.dartfrogmedia.com/stopSoundLoad/index.html In this test, press the first button to start streaming a 5.7 MB MP3 (just a long pink noise) via a Sound object. Then immediately press the second button, which attempts to load a non-existent MP3 into the same Sound object. Wait a minute and check your browser cache and you'll see the first sound (longSound.mp3) never loaded. If you then click the first button again but DON'T click the second button, and wait a minute or so (depending on connection speed), you'll see that longSound.mp3 DOES show in the browser cache. Marc Hoffman At 09:28 PM 5/13/2006, you wrote: You can watch a sound loading with an interval tracing the Sound.getBytesLoaded method. - Original Message - From: Marc Hoffman [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Saturday, May 13, 2006 11:46 PM Subject: Re: [Flashcoders] Stop loading How do you know the sound is no longer loading? At 07:32 PM 5/13/2006, you wrote: Yes thats exactly what i found, loading another sound is the only way to stop a sound from loading once its started. - Original Message - From: Gerry Creighton [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Saturday, May 13, 2006 6:21 PM Subject: Re: [Flashcoders] Stop loading What about using the following code... s.loadSound(,true); code var s:Sound = new Sound(); s.loadSound(Finish Line.mp3 , true); s.start(999,1); function stopSong(){ //s.stop(); s.loadSound(,true); clearInterval(myTimer); trace(stopSong called); } myTimer= setInterval(stopSong , 5000); /code This would load nothing. Gerry On May 13, 2006, at 6:01 PM, Patrick Matte wrote: Your code will actually stop the streaming sound from playing, but not from being downloaded from the server. Le 13/05/06 17:14, « Gerry Creighton » [EMAIL PROTECTED] a écrit : I just tested this code and it worked as it should. code var s:Sound = new Sound(); s.loadSound(Finish Line.mp3 , true); s.start(999,1); function stopSong(){ s.stop(); clearInterval(myTimer); trace(stopSong called); } myTimer= setInterval(stopSong , 1); /code I of course put the swf and the mp3 in the same directory to test this. I used the setInterval just to do a quick test that it shuts off after 10 seconds. Gerry . ... ... http://www.thespikeranch.com Certified Macromedia Flash MX Designer . ... ... On May 13, 2006, at 3:23 PM, Patrick Matte wrote: Whats the best way to stop a sound from loading ? I fired the Sound.loadsound() method but suddenly for a reason, I need to stop the loading right away. Same thing with MovieClipoader. Will the MovieClipLoader.unloadClip method simply stop the downloading of the image ? ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Stop loading
I guess you're right about the getBytesLoaded method. Another test we should do is just deleting the Sound object like Ash said in is reply. - Original Message - From: Marc Hoffman [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Sunday, May 14, 2006 12:50 AM Subject: Re: [Flashcoders] Stop loading Well, Sound.getBytesLoaded() wouldn't show if a sound was continuing to load into cache after starting to load a new (or even missing) sound file into the same sound object. It would just show loading for the new sound. But I just ran a test which shows that loading a new sound into a sound object does, in fact, curtail an earlier loading of a different sound into the same object: http://www.dartfrogmedia.com/stopSoundLoad/index.html In this test, press the first button to start streaming a 5.7 MB MP3 (just a long pink noise) via a Sound object. Then immediately press the second button, which attempts to load a non-existent MP3 into the same Sound object. Wait a minute and check your browser cache and you'll see the first sound (longSound.mp3) never loaded. If you then click the first button again but DON'T click the second button, and wait a minute or so (depending on connection speed), you'll see that longSound.mp3 DOES show in the browser cache. Marc Hoffman At 09:28 PM 5/13/2006, you wrote: You can watch a sound loading with an interval tracing the Sound.getBytesLoaded method. - Original Message - From: Marc Hoffman [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Saturday, May 13, 2006 11:46 PM Subject: Re: [Flashcoders] Stop loading How do you know the sound is no longer loading? At 07:32 PM 5/13/2006, you wrote: Yes thats exactly what i found, loading another sound is the only way to stop a sound from loading once its started. - Original Message - From: Gerry Creighton [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Saturday, May 13, 2006 6:21 PM Subject: Re: [Flashcoders] Stop loading What about using the following code... s.loadSound(,true); code var s:Sound = new Sound(); s.loadSound(Finish Line.mp3 , true); s.start(999,1); function stopSong(){ //s.stop(); s.loadSound(,true); clearInterval(myTimer); trace(stopSong called); } myTimer= setInterval(stopSong , 5000); /code This would load nothing. Gerry On May 13, 2006, at 6:01 PM, Patrick Matte wrote: Your code will actually stop the streaming sound from playing, but not from being downloaded from the server. Le 13/05/06 17:14, « Gerry Creighton » [EMAIL PROTECTED] a écrit : I just tested this code and it worked as it should. code var s:Sound = new Sound(); s.loadSound(Finish Line.mp3 , true); s.start(999,1); function stopSong(){ s.stop(); clearInterval(myTimer); trace(stopSong called); } myTimer= setInterval(stopSong , 1); /code I of course put the swf and the mp3 in the same directory to test this. I used the setInterval just to do a quick test that it shuts off after 10 seconds. Gerry . ... ... http://www.thespikeranch.com Certified Macromedia Flash MX Designer . ... ... On May 13, 2006, at 3:23 PM, Patrick Matte wrote: Whats the best way to stop a sound from loading ? I fired the Sound.loadsound() method but suddenly for a reason, I need to stop the loading right away. Same thing with MovieClipoader. Will the MovieClipLoader.unloadClip method simply stop the downloading of the image ? ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com