How can I get a sound to play more than once using edge commons?

Hi, I'm very new to all this; so apols if asking dumb stuff...
I've successfully used Edge Commons to get an audio effect to play in a timeline but it will only play once. Does anyone know how I can get it to play again at various trigger points?
The code I'm using in creationComplete is:
yepnope({
          load: "http://simonwidjaja.github.com/EdgeCommons/live/EdgeCommons-0.7.1.js",
          callback: function() {
                    // Load sound manifest (e.g. in creationComplete)
                    var assetsPath = "media/";
                    EC.Sound.setup(
                              {src: assetsPath + "bubbles.mp3|" + assetsPath + "bubbles.ogg", id: "bubbles"},
                        function(){ EC.info("Sound setup finished", "DEMO"); }
Then in a trigger on the timeline I have:
EC.Sound.play("bubbles");
As said, the above plays fine, one time... but if I place another, 'EC.Sound.play("bubbles");' trigger further along on the timeline nothing happens. Similarly, if the audio has played already and the timeline loops, the audio won't play a second time. I'm thinking I need to write in some sort of 'unload' type of thing so it knows to play again when it hits the new trigger? Or I might just be talking cobblers? Who knows? I certainly don't which is why I so desperately need help... please x

That's brilliant, Resdesign, and works perfectly in endlessly adapatable ways! Huge thanks! Great demo/sample file, by the way!
Also I 'accidentally' discovered (which may be of some help to anyone else who's new to all this) that the code which I'd used (see first post, above) ony runs the audio once when in preview mode. However, when the Edge Animate file is published the code works pefectly and when the second trigger is reached the audio plays a second time.
I'm guessing that when the 'publish' facility is utilsed the code is properly compiled (or something like that???) which is why it runs okay.
Anyway, whatever... the problem's solved! Hurrah! (Thanks Resdesign!) x x

Similar Messages

  • How can i get apple tv2 to recognize more than one computer in my house

    how can i get apple tv2 to recognize more than one computer in my house, I just got it and can only find one of two computers in my home

    Same here. I have 1 ATV2 and 2 computers and each has separate iTunes accounts (mine and my wife's). The ATV menu says "computers" so I presume you can have more than 1 computer on 1 ATV. The big question is how do you set it up?

  • HT201436 How can I listen to a voice mail more than once?

    How can I likten to a voice mail more than once?

    Don't delete it. Go back into your phone app, tap voicemail then hit play

  • How can i prevent a user to login more than once at the same time ?

    Supose there are a user , D .
    and i am using thread and socket in the application.
    once a user logined in , it will open a new socket .
    Well , but D is trying to login twice at the same time ... and my thread is opening two socket for him .... , how can i prevent that ?
    *thanks for help and sorry for my poor english                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    Thanks for reply
    ya ~ i've got a solution ~
    actually i am doing a server for mobile phone to get data. Sometime 1 single ID will send twice a message (usually nokXX mobile phones) .. i use milli sec to check those message ....
    n it seems working ....

  • How can i get my sound to play right on my acer inspire laptop

    hi how r u doin my name is william e. williams i am having problems with my acer inspire laptop. the sound on my laptop was playing a few days ago and then i turned it off and it did not play again. can you help me to get it installed again thanks.

    Hi Bigbill2015,
    The main issue is that there is something wrong with the sound device ,right ?
    Is it a built-in device or an external plug-in device ?
    Please refer to the following link to have a troubleshoot .Please pay attention to the update driver part and run the troubleshooter tool .It is recommended to download the driver from the manufacturer website .
    No sound in Windows
    http://windows.microsoft.com/en-HK/windows/no-sound-help#no-sound=windows-7&v1h=win8tab1&v2h=win7tab1&v3h=winvistatab1&v4h=winxptab1
    Considering it worked before ,we also can try to perform a system restore (Search "System Restore") to recover the machine to a previous point to have a check .Please note that we will lose the configurations after the restore point.
    Best regards
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • How can I get my sound notifications to work?  They used to but have stopped.  I get the banner alerts.  I have checked in Settings - Sound and the volume is at max.  Help please.

    For some reason the sound notifications on my iPad mini have stopped.  I still get banner alerts but that is it.  I have checked Settings - Sounds and the ringer and alerts setting is at max.  I have updated the IOS system.  Not sure what else to do.

    Unlock can be done only by original Carrier. You should get
    this straightened out before leaving Canada. Warranty on your
    iPhone is not international - if you need any repair or replacement,
    you will have to return iPhone to Canada for this to be done.

  • How do i get my iTunes to play more than 1 song?

    On my new iMac I try to play my itunes music and it will play one song and then shut off.  How do I change the settings to continue to play?

    I just checked all of the songs and now it's working, but I didn't used to have to do it that way.  I used to hit play and it would play whatever I was in.

  • How can I get my iPod to play noise when it says my headphones are in but they arnt and I can't get it to play music with out my headphones in ?

    How can I get my sound to play my iPod says my headphones are in all the time and they arnt so it will only play sound when my headphones are in

    - Try cleaning out/blowing out the headphone jack. Try inserting/removing the plug a dozen times or so. There is a little switch in the headphone jack that disconnects the speaker when the headphone jack is inserted.
    Try the following to rule out a software problem
    - Reset the iOS device. Nothing will be lost
    Reset iPod touch: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Reset all settings
    Go to Settings > General > Reset and tap Reset All Settings.
    All your preferences and settings are reset. Information (such as contacts and calendars) and media (such as songs and videos) aren’t affected.
    - Restore from backup
    - Restore to factory settings/new iOS device.
    - Make an appointment at the Genius Bar of an Apple store. Seems you have a bad headphone jack or other hardware problem..
    Apple Retail Store - Genius Bar
    If not under warranty Apple will exchange your iPod for a refurbished one for this price. They do not fix yours.
    Apple - iPod Repair price                  
    A third-party place like the following will replace the jack for less. Google for more.
    iPhone Repair, Service & Parts: iPod Touch, iPad, MacBook Pro Screens
    Replace the jack yourself
    iPod Touch Repair – iFixit

  • I am trying to import standard midi file that I created in Band in a Box into Logic Pro 9.  I can not get all the track to play with internal instrument sounds... only the piano track.  how can I get the others to play... drums, bass etc????   Help

    I am trying to import standard midi file that I created in Band in a Box into Logic Pro 9.  I can not get all the track to play with internal instrument sounds... only the piano track.  how can I get the others to play... drums, bass etc????   Help

    Don't drag the midi into an open Logic project. The tracks won't set up correctly.
    'Open' the midi file with Logic as if it were a Logic project. Then all the tracks will be set up so you can start editing them and applying better saved sounds and instruments, but you'll be at a starting place where you can hear what's going on.

  • How can I get an album to play in order on Itunes?  The songs keep skipping all around to other albums that I did not want to listen to at that time?

    How can I get an album to play in order on Itunes?  The songs keep skipping all around to other albums that I did not want to listen to at that time?

    It sounds like you might have the shuffle button at the bottom left of the iTunes (the button with the squiggly lines).
    If that's not the case, then maybe you just need to sort your library by album by clicking the album tab at the top.
    Is your music in a playlist, or are you trying to play it from the entire library?

  • When playing my i-tunes library through my hi-fi via Airport Express, how can I get i-tunes to play a single album and then stop, without continuing on through my entire library. It's a problem that doesn't occur when I'm listening through my i-pod.

    When playing my i-tunes library through my hi-fi via Airport Express, how can I get i-Tunes to play a single album and then stop, without continuing on through my entire library? It's a problem that doesn't occur when listening on my i-pod.

    Hey everyone in Apple world!
    I figured out how to fix the flashing yellow screen problem that I've been having on my MBP!  Yessssss!!!
    I found this super handy website with the golden answer: http://support.apple.com/kb/HT1379
    I followed the instructions on this page and here's what I did:
    Resetting NVRAM / PRAM
    Shut down your Mac.
    Locate the following keys on the keyboard: Command (⌘), Option, P, and R. You will need to hold these keys down simultaneously in step 4.
    Turn on the computer.
    Press and hold the Command-Option-P-R keys before the gray screen appears.
    Hold the keys down until the computer restarts and you hear the startup sound for the second time.
    Release the keys.
    I went through the 6 steps above twice, just to make sure I got rid of whatever stuff was holding up my bootup process.  Since I did that, my MBP boots up just like normal.  No flashing yellow screen anymore!!   
    (Note that I arrived at this solution when I first saw this page: http://support.apple.com/kb/TS2570?viewlocale=en_US)
    Let me know if this works for you!
    Elaine

  • How can you get 2 videos to play simutenously together?

    How can you get 2 videos to play simutenously together so both are playing side by side on screen at the same time? 

    Welcome to the forum.
    As Steve observes, what you are talking about is called "PiP," or Picture in Picture.
    He has given you the basics of creating a "split-screen" PiP, and that should be exactly what you wish to do.
    For more detail, plus more ways to do PiP, I strongly recommend his book, Cool Tricks & Hot Tips for Adobe Premiere Elements 11, from Muvipix. He has an entire chapter (Chapter 10) on PiP, and many of its uses, with detailed instructions on the settings to accomplish it. Just that one chapter is worth the price of the book.
    Good luck, and happy editing,
    Hunt

  • I lost my iPhone device, how can I get my data back on another one without using an iCloud backup just back up on i Tunes, Please Help.

    I lost my iPhone device, how can I get my data back on another one without using an iCloud backup just back up on i Tunes, Please Help.??

    You can find the backup files and then copy them to a safe place if you are worrying about this.
    iTunes places the backup files in these places:
    Mac: ~/Library/Application Support/MobileSync/Backup/
    The "~" represents your Home folder. If you don't see Library in your Home folder, hold Option and click the Go menu.
    Windows Vista, Windows 7, and Windows 8: \Users\(username)\AppData\Roaming\Apple Computer\MobileSync\Backup\
    To quickly access the AppData folder, click Start. In the search bar, type %appdata%, then press Return.
    Windows XP: \Documents and Settings\(username)\Application Data\Apple Computer\MobileSync\Backup\
    To quickly access the Application Data folder, click Start, then choose Run. In the search bar, type %appdata%, then click OK.

  • How can i get the value stored in the session object using its sessionid

    how can i get the value stored in the session object using its sessionid by running stand alone java application

    myforum wrote:
    how can i get the value stored in the session object using its sessionid by running stand alone java applicationThis does not seem to make sense! You need at least to give a lot more detail of what you are doing.

  • How can I get the language of the user logged on using only DI API?

    Hello,
    how can I get the language of the user logged on using only DI API,
    without invoking the UI?
    Can I read the value from some table using sql?
    I could write to file the first user's connection to the language code in SAP and then use it from external program, but I do not like this solution ...
    I know only this possibility:
            '_SboCy ==> SAPbobsCOM.Company
            '_SboCys ==> SAPbobsCOM.CompanyService
            '_SboApp ==> SAPbouiCOM.Application
            CodLng Dim As String = ""
            Dim lng As SAPbobsCOM.UserLanguages _SboCy.GetBusinessObject = (BoObjectTypes.oUserLanguages)
            If lng.GetByKey (_SboApp.Language) Then
                codLng = lng.LanguageShortName
                'Etc. ..
            End If
            lng = Nothing
    Thanks

    Hi Enrico,
    The language settings are held on the user's Windows profile and not in the database. In SBO 2007A onwards there is an XML file that is created by the SBO client (previous versions stored the information in the registry). The file is called b1-current-user.xml and you'll find it in the temporary application data under the user's profile (by default this will be C:\Documents and Settings\<profile>\Local Settings\Application Data\SAP\SAP Business One for Windows XP). This XML file contains a node that looks like the following:
    <leaf kind="single" name="Language" type="String">
         <value>8</value>
    </leaf>
    where the value is the language id that should correspond to the same setting in the DI API. If your application will always run on a workstation where the SBO client is installed then you could read this XML file. Of course, this file may not exist for a particular Windows user if they have never opened the SBO client so you'd need to have a default setting.
    If you application will be installed on a workstation which doesn't have an SBO client installed on it then there is no way to tell what default language to use and you'll need to build this logic in to your own application (eg have a screen where the user can choose their preferred langauge and then store this as a config file in a similar way to how the SBO client works).
    Kind Regards,
    Owen

Maybe you are looking for

  • How do I remove 13.43 GB of "other" on my iPhone 5s?

    I tried to remove some music from my iPhone but the sync somehow messed up. The "other" category is now up to 13.43 GB! How do I get rid of this easily on my iPhone 5s? I can't put my music back on until this happens. I've tried to remove photos, mes

  • AIM connection timed out

    For the past few days I haven't been able to login to either AIM or iChat. I usually only use AIM. I have been useing AIM on this computer for over a year and this is the first time I've ever had this type of problem. I am wirelessly connected to a c

  • How do I open a new browser window from Flash

    I wish to open a new browser window from Flash and when the new window closes to return to the location from whence I started. ThomasChen

  • Importing multiple files using the Import File menu.

    For some reason I am never able to add more the 5 mp3 files using the Import File menu. All of my files are located on the NAS device and if I select the Import Folder menu all the files in the folder will be imported. However, time after time I add

  • Faxing reports from ORACLE PURCHASING

    If anyone has faxed purchase orders from ORACLE Application using some third party tool other than oracle reports ,kindly let me know at [email protected]