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.

georgyboy

IS-IT--Management
Oct 20, 2002
197
AU
Hi,
I have linked a sound file to my flash movie, and have finally learnt how to make it turn on and off :) but i cant seem to make the sound loop, it only plays for a little bit then stops. what do i need to do to make it continous looping??
Thnk
 
Hello!
The sound is playing till the end and stops?
If so you will add 999 in the Loop box from the properties panel(or how many times do you want your sound to be looped) and in the "Sync" combobox you will choose event. Regards,
Dragos.


 
Drago, thanks for the advice. But it didnt work. I have linked the sound file via action scripting - not from the properties box. i have included the A/S for to u see, is there anyway that i am able to make it loop form the script??
Thnx


s = new Sound();
s.attachSound("myMuzak");
i=1;
function timeme (){
now = new Date();
var hours = now.getHours();
var minutes = now.getMinutes();
var seconds = now.getSeconds();
_root["nowtime"+i] = (Number(hours)*3600)+(Number(minutes)*60)+seconds;
_root.newstarttime = _root["nowtime"+i] - _root.nowtime1;
i++;
}
s.start();
timeme();
 
Check:

Regards,

oldman3.gif
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top