How to check that sound is playing

This is a discussion on "How to check that sound is playing" within the Flash & Multimedia Forum section. This forum, and the thread "How to check that sound is playing are both part of the Design Your Website category.



Go Back   Webforumz.com > Main Forums > Design Your Website > Flash & Multimedia Forum

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Nov 24th, 2005, 09:27
New Member
Join Date: Nov 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
How to check that sound is playing

Hello everybody!

I have a task to play a sound when mouse is moving. So the code is:

var plesk:Sound = new Sound();
plesk.onLoad = function(success:Boolean) {
if (success) {
plesk.stop();
}
};
// load the sound
plesk.loadSound("/sounds/MYSHKA.mp3", true);
myListener = new Object();
myListener.onMouseMove = function () {
plesk.start(0,1);
}
Mouse.addListener(myListener);

It sounds. But the problem is that it starts to play on every mouse movement. So it sounds argly bad because of overlaping. I understand that I have to check weather it's playing at the start of the mouse movement or not, but don't know how. Does anybody know how to solve this?

Thanx a lot
Reply With Quote

  #2 (permalink)  
Old Nov 25th, 2005, 10:22
Junior Member
Join Date: Nov 2005
Location: Cleveland, Ohio
Age: 24
Posts: 32
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to yngexec Send a message via Yahoo to yngexec Send a message via Skype™ to yngexec
Re: How to check that sound is playing

I'm by absolutely no means a Flash guru, and I'm not sure how the loadSound method works, but would it work to do an "if loadsound=false then loadsound"?

Sounds logical to me, but like I said, I'm a Flash idiot...
Reply With Quote
  #3 (permalink)  
Old Nov 25th, 2005, 17:53
New Member
Join Date: Nov 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Re: How to check that sound is playing

Thanks yngexec,
I posted same question on the actionscript.org forum and look what I'got
http://www.actionscript.org/forums/s....php3?p=418940

It helped.
vbmenu_register("postmenu_23379", true);
Reply With Quote
  #4 (permalink)  
Old Nov 25th, 2005, 23:48
Junior Member
Join Date: Nov 2005
Location: Cleveland, Ohio
Age: 24
Posts: 32
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to yngexec Send a message via Yahoo to yngexec Send a message via Skype™ to yngexec
Re: How to check that sound is playing

good stuff. Glad things are working, and sorry I couldn't answer completely
Reply With Quote
Reply

Tags
check, sound, playing

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
This guy likes playing with his balls saltedm8 Webforumz Cafe 1 Apr 12th, 2008 12:49
Playing with Photoshop Daniel Graphics and 3D 13 Dec 16th, 2007 17:48
FLV continues playing in background in IE TunaFish Flash & Multimedia Forum 5 Oct 5th, 2006 03:37
My movie isn't playing on my site sjh Flash & Multimedia Forum 6 Jul 12th, 2006 15:19
playing sound in flash skyfire400 Flash & Multimedia Forum 2 May 4th, 2006 23:02


All times are GMT. The time now is 07:36.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43