Flash Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignFlash Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old February 6th, 2004, 09:28 AM
gobadgrs gobadgrs is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Posts: 71 gobadgrs User rank is Private First Class (20 - 50 Reputation Level)gobadgrs User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 4 h 48 m 21 sec
Reputation Power: 5
Angry Need help with sound looping!

So I finally figured out how to properly script my buttons for the different sounds and sound effects that I want, but now I ran into a new problem.

I am going to have 8 different background loops that you can choose from, but since I am using actionscript to control the sounds, I dont know how to make them loop. Here is the code I have so far.

check1 = new string("false");
check2 = new string("false");

bt1 = new Sound();
bt1.attachSound("beat_1");
bt2 = new Sound();
bt2.attachSound("beat_2");

beat1.onRelease = function() {

if (check1 == "false")
{
bt1.start();
check1 = "true";
}

else
{
bt1.stop("beat_1");
check1 = "false";
}
};

beat2.onRelease = function() {
if (check2 == "false")
{
bt2.start();
check2 = "true";
}

else
{
bt2.stop("beat_2");
check2 = "false";
}
};


The sounds are only about 5 second loops. How do I get them to loop continously?

Reply With Quote
  #2  
Old February 6th, 2004, 10:11 AM
gobadgrs gobadgrs is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Posts: 71 gobadgrs User rank is Private First Class (20 - 50 Reputation Level)gobadgrs User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 4 h 48 m 21 sec
Reputation Power: 5
nevermind..... I got it figured out! Now im havin a new problem though

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignFlash Help > Need help with sound looping!


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway