Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / Flash / Flash Actionscript / September 2005



Tip: Looking for answers? Try searching our database.

If Statement for sound

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Cotolay - 30 Sep 2005 16:02 GMT
Hello i am having problems with a simple if statement.. i have a project with
some sound, and i have different frames for the content of the project. there
is a background music, and i made the background music stop on one frame. i
want the background music to continue when i click on the link for the other
frames, and i had a mysound.start(); function, but everytime i clicked on a
link the music started from the begining. i want to make an if function that
works something like this:

if mysound = stop, then, play mysound.... else do nothing. PLEASEEEE HELP ME!
apodkolinska - 30 Sep 2005 16:50 GMT
sound.stop is not a property but a method.  I would try using position... if
the sound is not playing position should be at 0... otherwise it will specify a
millisecond position.

if(_level1.mysound.position == 0){
_level1.mysound.play();
}
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.