Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Sound Loop

Status
Not open for further replies.

llldnylll

Technical User
May 21, 2003
89
Is there a way to fade in loop, then after it loops play regular.
 
if this an event sound (on frames) then when setting the sound from frame properties click event to make settings.

if its being attached from the library using actionscript then

s = new sound()
s.attachSound("linkName")
i = 0;
s.setVolume(0)
s.start(.....)//your loops
fade = setInterval(fadeIn,100)
function fadeIn ()
i +=4
s.setVolume(i)
if(i>=100)clearInterval(fade)
}
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top