Music Loop Help

Okay what I have here is a real simple and fast loading
script to stream a .mp3 file for music throughout the entire site
I've built. What I need to do is make this music loop (repeat
continiously) unless Stop is pressed. The whole fla file consists
of 1 Frame with 2 Layers.
1) The action Scipt Below.
2) The control buttons.
Is there an easy addition to add to my script to allow the
music to loop.. Music plays on load. If somone presses "Stop" it
stops. If somone presses "Play" it will play again and loop.
Action Script:
var tune:Sound = new Sound();
tune.loadSound("breathe2.mp3", true);
tune.start();
play_mc.onPress = function() {
tune.stop();
tune.start();
stop_mc.onPress = function() {
tune.stop();
Thanks for any help on this.
Cheers!
TRI0N

Doesn't the sound object allow you to declare the number of
times the music playing loops?
tune.start(secondsOffset, loops);
Just give it a number that will likely never roll over like
100000
tune.start(0, 10000);
If your site music is say one minute in length then thats
10000 minutes of play time.

Similar Messages

  • Music Loops Copyright

    Does anyone happen to know where I can find the license info for the Apple Music Loops that are found in iMovie '08? I'm curious if it is allowable to use these loops as background in videos for promotional purposes.
    Thanks,
    Ashton

    Who owns the Library disk?
    Technically, you are not allowed to make a "derivative work" without permission from the original artist/publishing house. This applies to paid and non-paid work, to my knowledge (it's been a little while since Mass Media Law, but I didn't fall asleep in class <smile>).
    However, and I could be totally wrong about this, it is my understanding that if you take someone else's property and use it for them and are paid merely for the service you provide, then it's legal. ...Or so I've heard.
    So, let's say that "Joe the Party Thrower" own's this song. He gives you a copy of the song to use in the montage for his party. He is paying to put this thing together. That is, to my understanding, legal. I think it gets around the "derivative work" bit because he already owns the work. He can do with it as he pleases.
    That's my 2 cents. But then again, I'm an editor, not a lawyer, so my two cents wouldn't save you that much in a court of law <smile>.
    ~Luke

  • I just installed iTunes on my computer, where I already have all my music. I went to Edit Preferences Advanced, and changed the iTunes Media Folder Location to where I have all my music, in the "Local Disk." But iTunes wont import all my music. Help?

    I just installed iTunes on my computer, where I already have all my music. I went to Edit > Preferences > Advanced, and changed the iTunes Media Folder Location to where I have all my music, in the "Local Disk." But iTunes wont import all my music. Help?

    Have you looked in the Music App on your iPhone? On the iPhone music is played by the Music App not iTunes.

  • How do I find background music loops on Captivate 7?

    I'd like to put background music in, but can't find it on Captivate 7 AND can't import loops from Garage band.  Either one would work.
    Thanks,
    Mary

    Thanks, Bob, you hear what I'm asking.  I've done that and when I do the menu I get displays my iTunes - and then only songs I've saved there that I haven't bought.  I can see stuff I've made on Garage Band, but that's all greyed out - I can't access it.
    What I'd like to get is the dialogue box with the music loops provided by captivate.  Any ideas?
    Mary

  • I have an ipod touch 4g it was just Fine and today i tried to plug it to my laptop to sync music and it suddenly turned off and it didn't work for 15 mins and then it worked but i can no longer sync apps or music plz help me as soon as you can

    I have an ipod touch 4g it was just Fine and today i tried to plug it to my laptop to sync music and it suddenly turned off and it didn't work for 15 mins and then it worked but i can no longer sync apps or music plz help me as soon as you can

    If you have not taken the iPod apart, Apple will exchange it for a refurbished one for $99. You can do it an an Apple store
    - Make an appointment at the Genius Bar of an Apple store.
      Apple Retail Store - Genius Bar
    Or sent it to Apple

  • Downloaded iBooks on my Macbook Pro but when I tried to sync it on my iPhone, this appeared: "Are you sure you want to sync books? All existing songs, movies and TV shows on the iPhone "My iPhone" will be removed". Love the iBooks as well as music. HELP!

    Downloaded iBooks on my Macbook Pro but when I tried to sync it on my iPhone, this appeared: "Are you sure you want to sync books? All existing songs, movies and TV shows on the iPhone “My iPhone” will be removed". Love the iBooks as well as music. I really don't want to loose my music. HELP!!!

    From the message you are receiving, it sounds like you either, 1) haven't synced your iPhone with that computer before, 2) are using two different iTunes accounts, or 3) both.  If you have purchased music or movies through your iPhone with a certain iTunes account and purchased books through iBooks on your MacBook through a different iTunes account then there is no having both on the phone. 
    Apple doesn't allow content from two different accounts on a device at the same time.  Also if two "libraries" have been created, one on the iPhone and one on the Macbook then syncing will erase data that is not associated with that particular library. 
    If you are using the same iTunes account for both, then you should be able to redownload any purchased items (music, books, etc.) from iCloud, assuming you have set that up.
    I hope this helps!

  • Continous music loop across all pages

    Good Morning,
    I am developing a website for a local retailer who advertises heavily on television and already has a theme song.
    I want to load the theme song once and have it play continously across all pages, I do not want the theme song to restart with every page load.
    Is there a trick at the host root to load it above the content or tie it to the domain somehow?  Where do I implement the music loop/player?
    Thanks in advance,
    JM

    Hi
    I do not know anyone who has done this for a music/audio file, but if you use flash as your encoder/player then the code for the basic functions in actionscript would probably be a variation of the following -
    var turnOnTime=getTimer();
    ///function(play).... then what ever code you need to play the music....
    var turnOffTime=getTimer();
    ///function(stopSetCookie)... set the cookie value
    var elapsedTime=turnOffTime=turnOnTime;
    It would require that javascript was used for preventing the default click action, (jQuery is probably the easiest for this) then passing control to the actionscript to perform the above as required. Once the actionscript is completed as required, control would be sent back to the javascript and the new page would be loaded, where the process would be reversed.
    You may be better asking in the flash forum for more info, but as I have done this for large video files, (in flv format) it should also be possible for music/audio files.
    PZ

  • What is restoring and why do i 'have' to restore to connect to iTunes and can I really get all my stuff back because I have a homework essay saved on my notepad and all my apps and music. Help I don't know what to do!

    What is restoring and why do i 'have' to restore to connect to iTunes and can I really get all my stuff back because I have a homework essay saved on my notepad and all my apps and music. Help I don't know what to do!

    Unless this program will get the iPod out of recovery mode
    RecBoot: Easy Way to Put iPhone into Recovery Mode
    You will have to restore and thus erase the iPod. If you stuff is in a backup y can restore from backup. Otherwise it is lost.

  • Hello, I have a little problem with my ipod (3rd generation): I restored my iPod because of problems of wi-fi, then synced my music on itunes and then on my ipod. The problem is that I still do not have wi-fi and my ipod says I have no music. Help me!

    Hello, I have a little problem with my ipod (3rd generation): I restored my iPod because of problems of wi-fi, then synced my music on itunes and then on my ipod. The problem is that I still do not have wi-fi and my ipod says I have no music. Help me!

    No. In fact, my ipod detects the livebox and the network but I can not connect to the internet.

  • My volume isn't working on music an other stuff on my iphone, like my lock sound isn't working neither is my typing clicks, my volume control has gone from my music too, help me, what is this???

    My volume isn't working on music an other stuff on my iphone, like my lock sound isn't working neither is my typing clicks, my volume control has gone from my music too, help me, what is this???

    Oh, I forgot to add that I've also tried repairing permissions.

  • I had to reload iTunes on my computer.  It "deleted" my music on my iPod.  It shows used storage but not music. HELP!!!!!

    I had to install iTunes on a new computer when my previous computer was lost.  I tried to load my library from my ipod and it had problems.  The recommendation was to find and fix errors which promptly deleted my music from my ipod.  It says no music but shows the used storage like the music is still there.  I've looked on my computer for previous libraries and temp files but am unable to recover my music.  HELP!!!!

    Restore the entire iTunes folder from the backup of the computer.

  • I want to burn one song to a CD but I do not want the lyrics, just the music. Help?

    I want to burn one song to a CD but I do not want the lyrics, just the music. Help?

    Make a playlist.
    Click File>Burn Playlist

  • Hi. I have downloaded the new iOS 6.0 software update but now I can't switch off the shuffle function when playing music. Help please. Stuart

    Hi. I have downloaded the new iOS 6.0 software update but now I can't switch off the shuffle function when playing music. Help please. Stuart

    I have the same problem and haven't been able to figure it out either

  • Have an iphone lost the music somehow? then went onto itunes on the app it downloaded the music again but doesnt play and i have to plug it into my laptop and its not my iphone and i cannot sync any of the music any help?

    i have an iphone lost the music somehow? then went onto itunes on the app it downloaded the music again, but doesnt play and i have to plug it into my laptop and its not my iphone and i cannot sync any of the music any help? the orginial compter now does not work any suggestions?

    See Recover your iTunes library from your iPod or iOS device.
    In brief; backup the device, recover what you can from it, download other purchases from the iTunes Store, restore the device, add content, keep a backup of your library in future.
    tt2

  • Music loop fade out by button between scenes

    Hi
    I have a infinite music loop and I am trying to have btn_start trigger a fade out on the music along with its original gotoAndPlay.
    I have two scenes, "opening" and "animation". btn_start and the following code are in the "opening" scene.
    the fade out will play along with the first couple seconds of "animation" since the gotoAndPlay connects to frame 1 of "animation"
    Can this be done? Please show me some lights of how to proceed this.
    stop();
    import flash.net.URLRequest;
    import flash.media.Sound;
    var url:URLRequest = new URLRequest("subtle.mp3");
    var snd:Sound = new Sound(url);
    snd.play(0, 17);
    btn_start.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler);
    function mouseDownHandler(event:MouseEvent):void {
    gotoAndPlay(1, "animation");
    thanks!!

    you can use:
    stop();
    import flash.net.URLRequest;
    import flash.media.Sound;
    var fadeRate:Number = .01;  // number between 0 and 1.  the closer to 1, the faster the fade
    var url:URLRequest = new URLRequest("subtle.mp3");
    var snd:Sound = new Sound(url);
    var sc:SoundChannel=snd.play(0, 17);
    btn_start.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler);
    function mouseDownHandler(event:MouseEvent):void {
    this.addEventListener(Event.ENTER_FRAME,fadesoundF);
    gotoAndPlay(1, "animation");
    function fadesoundF(e:Event):void{
    var st:SoundTransform=sc.soundTransform;
    st.volume-=fadeRate;
    if(st.volume<=0){
    this.removeEventListener(Event.ENTER_FRAME,fadesoundF);
    sc.soundTransform=st;

Maybe you are looking for

  • HP Officejet Pro 8600 Plus and HP Pavilion dv7-7073ca

    1. HP Officejet Pro 8600 Plus and HP Pavilion dv7-7073ca 2. Operating System Windows 7 64-bit 3. Error messsage: Blue Screen and Crash. Can't PRINT Wirelessly or Wired + Blue Screen Of Death when printing a document with Microsoft Office. It then res

  • White Screen of Death on 5800 xm

    Clue anybody to probable  cuase of white screen of death on a 5800 xm  . Where phone just  sticks on the white screen  or sometimes the actual boot screen . Its not a  reboot that happens phone just freezes battery out solves the problem . Have an id

  • How to do a flythrough starting with a Cad file

    I saw someone demonstrate workflow for taking a Cad file into Acrobat 3D then made a flythough. How is it done? If I have plain old Acrobat 8 Pro on my computer ...I right click on the cad file and turn it into a pdf. Then do I need Acrobat 3D to mak

  • Where to get Apple Remote Desktop Client for MAC OSX 10.6 8

    Hello, I have MAC OSX 10.6.8 and I wanted to know where to get Apple Remote Desktop that is compatible with OSX 10.6.8. The one that is showing in apple store for download will work only with the lastest MAC OS.X - Thanks all.

  • Error numbers for exceptions

    We start to use error numbers for the exceptions. If a user gets a error he can tell the error number to the help desk. The messages are quite like the ones from Oracle: "ORA-02449: unique/primary keys in table referenced by foreign keys" We have mul