Play Audio On Scroll?? (nothing works for me...)

I am using a form of parallax on the stage which controls the time playback based on the position of the scroll. This app (page) will be part of an iPad DPS package (one of many pages). I am including the script from the stage, and a link to download the package. I want the audio to play only when the user begins scrolling. It can play through then stop. I have tried placing it on the timeline and setting a playback action at a point on the timeline - nothing; I have tried making it play by putting it into a symbol and adding actions at keyframes on the timeline to play the audio -- nothing. The only way it will play is by selecting the autoplay option in the element properties which is not what I want. I have also tried (see below) an action on the stage to play the audio:
// insert code for scroll event here
var animationHeight = 5120;
var stageHeight = sym.$("Stage").height();
var scrollPos = sym.$("Stage").scrollTop();
var duration = sym.getDuration();
var percent = scrollPos / (animationHeight - stageHeight);
var time = duration * percent;
// Update timeline
sym.stop(time);
// Play the audio track.
sym.$("rafting_audio_element")[0].play();
I think it has something to do with the time=duration*percent; -- I think it is preventing the audio from being played in realtime? YES / NO? Any help GREATLY appreciated.
Thanks in advance!!
LINK TO PUBLISHED ANIMATE FILES (not finished)...
Dropbox - edge

Hello again,
Thanks for posting the composition files - that really helped.
What's happening is there is not an actual "rafting_audio_element" audio element at the Stage level (it's a symbol), so it never gets the play command you put in the Stage scroll event, because that audio element doesn't exist on the Stage's timeline.
To play the audio element directly, first get the symbol it's in, and then issue the play command to the audio element, like so:
sym.getSymbol("rafting_audio_element").$("rafting_audio")[0].play();
If you want to actually play the symbol instead of the audio element directly, try this:
sym.getSymbol("rafting_audio_element").play();
Either of those should play your audio element (the second indirectly).
hth,
Joe

Similar Messages

  • Copy/Paste Audio Configuration doesn't work for me. What am I doing wrong?

    I've read all the other threads on this topic. Some say you have to save before you copy, etc., but nothing works for me. I open up a Logic song that has various Audio tracks, Aux tracks, and VI tracks. I open the Mixer and select Copy Audio Configuration. I close the project file, open up a new blank file, open the Mixer and hit Paste Audio Configuration. The only thing that happens is a single empty track gets pasted, that's it. This couldn't be broken in 8.01 AND 8.02, could it? Tell me I'm doing something wrong, please.

    Hi,
    if you want to copy the actual channel strips, you need to go to the Environment window, select them, press copy, and paste them into the Environment window of the other song.
    Audio configuration doesn't equal channel strips, but refers to how these channel stripes are configured (eg. which plugins they use).
    Or you could create the audio objects (channel strips) you need to use in the new song manually, and then copy the audio configuration, because then that copy/paste process would have some objects to paste the configuration into.
    You could probably even create the audio objects after you have pasted over the configuration, but I haven't checked if this works.

  • Apple has a problem and the cant solve it. I had some very important call but this new iphone just shut down on me and wont turn on i tried everything u can find in apple support nothing works for me. Anyone know what i can do?

    Apple has a problem and the cant solve it. I had some very important call but this new iphone just shut down on me and wont turn on i tried everything u can find in apple support nothing works for me. Anyone know what i can do?

    I would instead say you have a problem since nearly all IPs work as advertised.  IF you do have a bad phone, take it into an Apple store and get a replacement.  Hope you didn't jailbreak your phone though as Apple probably will tell you, you broke it, you fix it.

  • Audio driver doesn't work for my compaq presario r4000 notebook XP system

    Hello,
    I just reinstall Window XP on my compaq presario r4000 notebook, and I download
    all the drivers from HpCompaq offical website. But the audio driver
    does't work for my "Conexant AC-Link Audio
    (PCI\VEN_1002&DEV_4370&SUBSYS_3085103C&REV_01\3&13C0B0C5&0&A5)".
    Please help me to figure it out.
    Thanks!!
    This question was solved.
    View Solution.

    OK...
    Now we have to get creative! 
    Download and install the free 7-Zip utility.
    http://7-zip.en.softonic.com/
    Download this driver:
    http://h20000.www2.hp.com/bizsupport/TechSupport/S​oftwareDescription.jsp?lang=en&cc=US&swItem=ob-317​...
    Decompress driver audio Conexant CX20468-31 AC97 and Equalizer with the 7-Zip software.
    Once installed, do a right click on the file sp30578.exe, select 7-Zip/extract the files and then click OK.
    Force the installation of the driver manually:
    In the device manager, right click on the audio controller, and select Update driver.
    Select install from a list or specific location Do not search. I will choose the driver to install.
    Click on next, Have Disk, and browse.
    Select the cpl3085a.inf file in the uncompressed folder sp30578, and then click Open.
    Click on OK, next and finish.
    Restart the computer.
    Paul

  • HT1766 no sound from my speaker, headphones play normal, phone rings normal, alarm sound normal, re-installed software, will not play sound when music is played from speaker but speaker works for everything else....

    No sound from my speaker iphone 4S, headphones play normal, phone rings normal, alarm sound normal, re-installed software, will not play sound when music is played from speaker but speaker works for everything else....(phone ring and alarm)... no notification sound for text messages......
    I checked all settings..... good...
    confused???
    please advise,

    it's a hardware issue read more about it here
    https://discussions.apple.com/thread/1343532?start=315&tstart=0
    more hits
    https://www.google.dk/search?client=opera&q=4:3&sourceid=opera&ie=utf-8&oe=utf-8 &channel=suggest#client=opera&hs=UGk&channel=suggest&sclient=psy-ab&q=iphone+stu ck+in+headphone+mode&oq=iphone+stuc&gs_l=serp.3.3.0l4.412779.418971.0.420896.16. 9.2.5.5.0.86.545.9.9.0...0.0...1c.1.9.psy-ab.HHtp6aEcO5U&pbx=1&bav=on.2,or.r_cp. r_qf.&bvm=bv.45175338,d.bGE&fp=43d9a4347e8aaeda&biw=1535&bih=773

  • Play audio action doesn't work in Captivate 7

    Hi,
    On the first slide of my course I added a "quick start" guide. It consists of a series of captions containing text. In each caption there's a "Continue" text link triggering an advanced action to hide the current caption and show the next one. This works perfectly.
    Now I wanted to attach audio to each step of the guide. I added a "play audio" action after the show/hide actions for the first step. No audio was playing. When I changed the play audio to be the first action in the script - the script didn't work at all. When I changed it to be between the hide and show, the hide worked and show didn't. What I understand from this is that play audio doesn't work and also halts the whole thing.
    Any advice?
    Thanks

    Just checked it out, created a shared action with almost exactly the same commands, but grouped all the text containers in one group Gr_TC
    to hide:
    It worked perfectly. You don't see a label, because it is a shared action, for which I just filled in some parameters. Attached it to three buttons, had 3 text containers and 3 different audio clips.
    Is the audio clip playing when you use it in another way? The only difference seems to be that you have a VO clip and I used one of the included sounds with Captivate.
    Another way could be to attach the audio to the text container as object audio. Once you show the text, audio will play, when you hide the text it will stop. That was the way to go before CP6:
    http://blog.lilybiri.com/playtime-with-audio-and-widgets
    Lilybiri

  • Nothing works for authorizing my ADE, nothing works for authorizing my ADE on my Mac airbook; used to work fine

    Tried installing noew ADE 3.0;  tried command-shift-D  but don't get a window asking if I want to deauthorize. Help window resets to allow authorization.
    Used to work fine for past year. 
    Changed email to this one I'm logged in with; nothing works.  keep getting the bad key error message.  Why is there no clean install re-do information?
    This really sucks. Jim

    Before you go knocking a much better OS than you'd wish to believe, I'm having the SAME problem in XP.
    And now, instead of showing up as one Multimedia Audio Controller...
    It shows up as like... 20-30 of themMessage Edited by ouT-Phaze on 03-03-200809:02 PM

  • When a PDF is opened in a tab, my laptop's touchpad scroll stops working for other tabs. (But works perfectly fine on the pdf tab or with every tab after closing the pdf tab)

    My touchpad scroll was not working many times after i installed firefox 6. But it works perfectly fine in other browsers at the same time.
    After some playing around, i found that this problem occurs only when a pdf is open in some tab (The scrolling works in pdf's tab but not in other tabs). Once that particular tab is closed, the scrolling starts working properly.

    Using similar scroll function on my netbook. To add to the above, I find that using scroll is actually causing the PDF to scroll rather than the tab I'm actually in.
    Reader 9 is installed on my Win7 Starter.

  • HT5569 My iphone does not connect to wifi I did everything like updating the software but still nothing works for me any can help please, it is 4s.

    I Can not connect to wifi, I did all basic things like restart, reset settings, updates software... Nothing works please help!!!

    Hi Alisadat,
    Welcome to the Support Communities!
    It sounds like you have intermittent Wi-Fi connection if you were able to update your iOS to 7.0.2?
    Although you have tried some troubleshooting steps, I would suggest following the guide below in order to attempt to resolve this issue:
    iOS: Troubleshooting Wi-Fi networks and connections
    http://support.apple.com/kb/TS1398?viewlocale=en_US
    Reset network settings by tapping Settings > General > Reset > Reset Network Settings.
    Note: This will reset all network settings including
    previously connected Wi-Fi networks and passwords
    iOS and OS X: Recommended settings for Wi-Fi routers and access points
    http://support.apple.com/kb/HT4199
    I hope this information helps ....
    - Judy

  • When I double click home for audio playback doesn't work for movies since I synced it yesterday Why?

    When I double click the home button the audioplayback doesn't work for movies,  it did before I added and synced some items yesterday anybody know why?

    Jeanlewane wrote:
    Why, When I double click the home button and hold down the icon waiting for the red x to appear, it doesn't.?
    How to Close Apps
    Double Tap the Home Button... Then swipe the App (not the icon) Upwards... Tap the Home Button when finished.
    From Here  >  http://support.apple.com/kb/HT4211
    NOTE:  You cannot delete any pre-installed iOS app.

  • Audio Out doesn't work for some devices under 9600m GT; works under 9400m

    Hello. I've recently noticed that when I plug my MBP into my TV to use as a monitor and for speakers, I can't use the TV's audio when I'm using the 9600m GT for graphics, but, mysteriously, it works just fine when I'm on the 9400m. This is a major problem for when I want to play games.
    For some odd reason, though, plugging in headphones works perfectly under both configurations. I connect the audio to the TV using a standard audio cable that splits into the red and white plugs. Any idea how I can get audio up and running under the 9600m GT?
    Message was edited by: Pickleman

    Thanks for the confirmation.
    I think my issue could be the same, as i'm also trying to send audio to the tv via the headphone port. Just saying again to explain better:
    - Tv's have analog audio input for hdmi, but at least for mine, it only uses these inputs if it does (or doesn't) get a certain signal for audio over the hdmi connection.
    - Whatever the 9400 is doing, its convincing the tv to use the analog inputs, all is well.
    - Whatever the 9600 is doing, its convincing the tv -not- to use the analog inputs, thus no sound.
    It was a bit fiddly, but i got it to a state where audio through the headphone port would work fine under the 9400, i would set graphics to high performance, log out, log back in again, and audio would not work. Undoing this (setting the graphics to better battery life and relogging in) would restore sound.
    I'm thinking the root of the issue is that the tv gets detected as supporting audio, and something the 9600 is doing is fooling the tv to think it is receiving audio, though as you suggested it's not supported and nothing is going though.. which has the side effect of igoring the analog inputs we're sending though the headphone jack.
    Some sort of fix to disable audio down the displayport would be great. PC nvidia drivers that i'm running on the same mac in boot camp have an explicit option to do this, so it shouldn't be too hard..
    Or any other work around..
    Thanks!!

  • Lastest firefox version not compatible with FlashPlayer.. fine with Explorer, but with Firefox there is no audio.. tried reloads, audio changes.. nothing works.

    new version of Firefox problems with Adobe Flash Player.. will not play with sound on any internet apps... works fine with Windows Explorer, but not with Firefox. Tried several audio default settings, changes, and reloaded Flash Player.. nothing changes.

    hello, unfortunately this seems to be a bug in adobes flash plugin 11.3 (IE & chrome get supplied with a different veriant of the plugin by adobe).
    please refer to the following forum entry on how to handle the issue or report the problem with your system details to adobe.
    http://forums.adobe.com/message/4483563
    https://bugbase.adobe.com/index.cfm?event=bug&id=3210964

  • Nothing works for install of itunes & quicktime

    Everything worked fine until I attempted to upgrade to Itunes 7.0. Itunes will not load and it produces "Quicktime gives a fail to initialize error 2093"
    I've tried the various troubleshooting suggestions I've been able to find on this forum.
    1. throughly scanned my computer using AWG, TrojanHunter and Eiwdo.
    2. done each of the steps of http://docs.info.apple.com/article.html?artnum=93976
    3. error checked my hard drive
    4. reinstalled windows installer.
    5. when i attempted to change the QuickTime settings via the Control Panel I receive a Buffer Overrun Detected! Program C:\windows\system32\rundl32.exe
    6. Also at that the upgrade knocked the sound out of my Windows Media player.
    7. I cannot get a response to clicking on the Speaker Settings Advanced Options button in the Sounds and Audio Devices in the Control Panel
    Compaq Presario 6000 Windows XP

    Sounds like (no pun intended) you might have to go to HP's website and get the latest audio drivers for your model in order to fix your sound problems before trying to fix anything else.
    I'm not sure how up-to-date Compaq drivers would be though since it's been several years now since the merger. If the problem is that QT needs more up-to-date drivers and you can't get that, at the very least you might be able to repair your sound.
    Mac mini - core duo (early 2006)   Mac OS X (10.4.8)   1 GB RAM, Apple wireless keyboard, wireless Mighty Mouse

  • Audio-only ClipNotes not working for me on Mac

    MacbookPro OSX 10.5.5
    CS3 Production Premium
    I'm trying to output a Clip Notes file as audio only. I'm sure I've done this before when I was running CS3 on Windows but now when when it get's to 100% for the render it just hangs. Under Render Details the time is still counting up but nothing happens. I guess I can drop some graphic in the timeline but that will take 10 times as long to render (well, maybe not 10x) as the program is 22+ minutes, not to mention the file size.
    Anyone else have trouble with this? I couldn't find anything with my searching.
    Thanks
    -Scott

    Perhaps Adobe Tech Support document
    kb332674 will help you.
    Cheers
    Eddie
    PremiereProPedia   (
    RSS feed)
    - Over 300 frequently answered questions
    - Over 250 free tutorials
    - Maintained by editors like
    you
    Forum FAQ

  • HT4352 Nothing works for me to set this up with my (black) Apple TV

    Above says it all. Second generation (small black) Apple TV and I keep on seeing this message that says to get started, turn on Home Sharing in Remore App. Doesn't say how to do that and I've tried just about everything.

    I really do appreciate your trying to help so first things firsst and thanks.
    I've gone into settings> Music > and entered my Apple ID and password. As for turning something on, how exactly is that suppose to work outside of making sure that the Apple ID and password are set? There is no on button that I can see. So once the above information is entered I expect that turn home sharing is on but when I open the Remote App and try and find my Apple TV I get a message that my Apple TV is not found. When I go to my Apple TV and try and set up the Remote App the message on the General > Remote settings says to turn on home sharing in the app itself which I have yet to figure out how to do and something nobody has told me how to do hence the questions and frankly frustration.

Maybe you are looking for

  • In R12 standard Auto Invoice Import program is erroring out

    Hi All, The standard Auto Invoice Import concurrent porgram is erroring out when i run for the source as 'SUM_DIF', in the log messages its showing the following error: UPDATE RA_INTERFACE_LINES L1 SET REQUEST_ID = :b1, LAST_UPDATE_DATE = sysdate, LA

  • Time Machine for Partitioned iMac Drive - Wireless Backup w/o TIme Capsule

    Hi all, does anyone think it is possible to set up a Time Capsule type backup on a large iMac hard drive. my household has one iMac and two mac books. I would like to partition a portion of my 1TB imac drive and wirelessly back up the mac books on th

  • Can't get ReportUI portlet to work properly

    Hi, I've got a BI EE installation up and running. Now I tried to use the ReportUI portlet in another machine that runs an Oracle Portal (within an Application Server 10.1.2.0.2 installation). As the how-to, I used this documentation (pages 199-204):

  • How to create a write operation in file adapter dynamically in to a folder.

    Hi all i want to explain my scenario... i am giving input to file adpter which is having read operation,and i am giving that input to an human work flow.i had two operations reject and resubmit in my task flow...i am editing the task with some change

  • High Pitched Noise on Laptop

    My laptop is emitting an intermittent high pitched sound. if i turn the sound down all the way it disappears. It's extremely irritating, can anyone help?