Simple Pause/Play/Resume in timeline not audio

So sorry if this is simple. I HOPE it is simple, it should be simple.
I have a very simple looping timeline. I just want to create a TOGGLE function so that the user can pause and resume. Like a freeze frame. Or the space bar in some movie editing programs. Simple PAUSE.
http://colorisrelative.com/RichMedia/templateROTATING.swf
Everything I find for pause is a pause for a defined duration-- then it resarts on its own.
I want to pause on the current frame and restart on the current frame when the user clicks.
(or I keep finding stuff for video and audio). I am hoping there is real simple solution. I am really bad at actionscript. The following is the exent of my knowledge of actionscript:
(click to start)
http://colorisrelative.com/RichMedia/template3as2moosh.swf
So thank you for letting me know if there is a simple pause/play toggle function!!!

Thanks for showing the code you understand.  For what I'll offer, the approach is to use a variable that keeps track of what state the movie is in (paused or playing) and use that variable to decide how to make it the opposite of what it currently indicates.
On the timeline create a variable:  var pausePlay = false; // this is if the movie starts plyaying right away without clicking anything
Create a button that covers the whole stage like you did for the second exmple.  Add this code to the button:
on(release){
     if(pausePlay){
          play();
          pausePlay = false;
     } else {
          stop();
          pausePlay = true;

Similar Messages

  • SCORM bookmarked playback resumes video but not audio

    Hi, We’ve published e-learning courses with Captivate 3 as SCORM 1.2 in a PIF (zipped Flash 9 + HTML).  They play fine when delivered from our SABA 5.4 LMS, with the audio and video in sync.  If we exit SABA’s content player part way through the course, we expect to resume at that bookmark when we return to the content player.  However, while we do return correctly to the same point, the audio begins from the start even though the video resumes at the correct point.  We have “Never send Resume Data” unchecked.  We also patched the value in scorm_support.js of var g_nAPI to set it to “1”.  Are any other Captivate settings/tweaks needed to get both audio and video to resume at the bookmark?
    Thanks,
    Bob

    Think I found the answer.  In a nutshell it seems that CP
    takes all of the audio and merges it into one long file.  If you add .1 seconds on each slide before the audio starts, that is enough to break it up so that it can recognized the individual files.  Here is where I found info about it:  http://www.cpguru.com/2009/05/25/preloader-tips-when-using-audio-in-your-project/
    I tested and it seems to be working so far.  Good luck!

  • "Pause" and "Resume" No Longer Work...HELP PLEASE!!!

    Whenever I download podcasts, the "pause" and "resume" feature does not work!!! If I "pause" any of my downloads in mid-download..and then hit "resume"...I lose everything that has downloaded to that point and it goes back to the very beginning...this is aggravating since I have dial-up internet and it takes hours to download some podcasts. Do you know if this is a problem with iTunes for Mac or with the podcasts, all of which are from NPR websites? Personally I think it's iTunes...Has anyone else complained of this problem?? It only started to happen, I believe, after I updated my iTunes to version 7.5(19). Thanks so much for your help. ~spinniken

    It's not just podcasts! I have had the same problem off and on, but it's just happened again. My internet access is only 64K (not much faster than the old 56K dial-up!) and I was 60MB into the new iPhone software when I paused. That's three hours gone!

  • After pause, slide playback resumes, but not audio

    The publisher advised me to post in this forum. Frequently when playing their elearning leassons
    , the audio quits and does not resume after a "click here when ready to continue" button or after pausing the show. Wondering if this may be a software conflict on my XP Pro machine or a fault in their recording. Thanks.

    Hi there
    It should be reasonably simple to sort. Try it on other machines and see if the behavior remains or changes. If it remains, odds are it is something to do with the way the module was created. (And my gut says this is what you will likely discover.)
    Cheers... Rick
    Helpful and Handy Links
    Captivate Wish Form/Bug Reporting Form
    Adobe Certified Captivate Training
    SorcerStone Blog
    Captivate eBooks

  • Pause/Play Wav Files Not working with timeline

    OK, I'm going crazy here. I have imported a WAV file into my
    Flash timeline. I have a button that pauses the timeline, and also
    stops all sound. But... when I click on the play button to continue
    the movie, the sound is no longer present. It's as if the timeline
    only recognizes the first frame of audio, even within the source
    file if I put the cursor anywhere besides the first frame of audio,
    it does not play.
    Any help desperately needed

    I almost have you. The code provided, I guess I would put
    that on the frame where I redrop my wave file (that I did all the
    link changes to as described).
    Also, in conjunction with the code provided, do I need to
    also put codes in for my buttons, or will that script you provided
    take place of such.
    Also, the code you provided, am I to put my own information
    in there, or is it set to go as is.
    I will only have a play button and a stop button. Just a
    simple a play and stop action for each. Also, I didn't give an
    instance name for each button, just default as is.
    Almost there! I'm excited, thanks for help and hopefully more
    help!

  • Audio  plays in Viewer, but not in timeline/canvass.

    Imported news video to iMovie/then Quick Time/then to FCE. Plays fine in the Viwer, but when I drag it to the timeline, the audio portion disappears. What's up?

    Mr. Wolsky
    I went back over the material in your book on “capturing” and was successful in getting my
    camcorder to “talk” to FCE in the Capture window! (First Time!)
    Then I. . .
    1. Opened a new project and designated a “capture bin”
    2. I gave the reel a number
    3. entered a name and descriptive note
    4. checked the prompt
    Then I set in and out points on the video. and clicked the “CLIP” button.
    The large black screen came up. My video rewound to the “in” mark, and
    then things went bad.. .
    The camera kept alternating between fast foward and fast rewind until
    I had to hit “Escape”\
    I tried this several times with the same results.
    My camcorder is connected via an IEEE 1394 firewire and has alwasy responded to the controls in iMovie.
    Nekosan

  • Dropped frames when playing section in the timeline w/audio, Viewer plays fine. Plays for 1 sec, no sound, nothing on audio meters. Problem out the blue, made no conscious changes. FCP 7.0.3. iMac, 2.7 GHz Intel Core i5. OS10.8.4. Thanx.

    New to FCP. Dropped frames when playing section in the timeline w/audio, Viewer plays fine tho. Plays for bout 1 sec with no sound, nothing showing coming through the audio meters. Problem came out the blue, made no conscious changes to settings. FCP 7.0.3. iMac, 2.7 GHz Intel Core i5. OS10.8.4. If any other info needed please let me know, will be happy to provide it. Thanx.

    Thank you for the help. Below is my Source footage and sequence settings.
    The other footage I have on the timeline is an mp3 file made in Garage Band and some footage I sent to Motion to edit. I do have some offline media on there since I switched computers but FCP had been working fine for a few months with it on there. I have not tried trashing my FCP Preferences. If I did would I have to back up my project?

  • AVI not playing in Premiere timeline, but exporting ok.

    I've imported an .avi into Premiere and I cannot get it to play in the timeline.  The scrub bar moves, but the video doesn't move, so I cannot see what I want to edit.  If I export a section of the video, that exports just fine.  Not sure if this is a codec, camera or other issue, but we have been using Premiere with a lot of different video and have not run into this problem.  Any suggestions?

    Yes, that 22KHz mono Audio is odd.
    When you Imported this Clip, did you wait for the Conforming of the Audio to compete? There is a little progress bar at the lower-right. With long Clips, or slow machines, this might take a while, so one must be patient.
    Everything else looks good to me, as well.
    Like Harm, I'm curious as to the source of this footage.
    Good luck,
    Hunt

  • Audio won't play off the timeline

    I have been working with a 17min. project shot in HDV and edited w FCP 6. I have tried a few different ways to get it out to DVD Pro through Compressor. I also tried to convert it from HDV to DV so I could take it back out to tape as a DV project. I went back to the project and tried to do another compressed version for DVD after being unsuccesful converting it to DV. So when I went to Compress it to a DVD there was no audio on the DVD. I went back into the FCP project and found that the audio does not play off the timeline anymore. The audio waves are still on the timeline and when I double click on the timeline it plays in my viewer. i checked the audio outputs but the audio is not showing on the LEDs in the audio mixer. Did something get changed because of my trying to export it?

    If none of the above suggestions work toggle on the Audio Controls speaker icon (see image below) and if the speakers icon appear yellow single click them (same action can be performed in the audio mixer.
    !http://i533.photobucket.com/albums/ee340/gogiangigo/AudioControls.jpg!
    Luca

  • BUG: repeated pause/play causes malformed audio name track name

    itunes9:
    I was listening to a language audio track. Therefore I was pausing and playing it repeatedly while I said out loud what they said on the track. I found the track listing and the now playing area started changing ever time I did this pause/play sequence.
    The track called "12 12-Topic 11", started having a new 12 prepended to it, i.e.
    "12 12-Topic 11"
    "12 12 12-Topic 11"
    "12 12 12 12-Topic 11"
    etc

    I recently encountered exactly this bug *while importing WAV files I had created from a vinyl record* (using Final Vinyl).
    Having dragged the files into iTunes from a Finder folder, I then went through each 'Get Info' menu to insert the track number (ie: 'N of M'). The spurious numbers then started appearing in front of the track name in the Title field spontaneously as I moved from one track to another.
    There did not seem to be any pattern - some number appeared as soon as I had closed the 'Get Info' menu and moved on to other tracks; other appeared later; some never did - ie the track names were left alone.
    I deleted the numbers from the track names manually, in the iTunes list display, and the problem seems to have gone away - but I'm not sure - I will reload that iTune library (from our family NAS) tonight, and check again.
    I had never seen this problem before I upgraded to iTune 9 - despite having followed this process before in iTunes 7/8.
    Incidentally, in answer to one of the comments above about Gracenotes; I have frequently imported WAV files from CDs, previously recorded from vinyl on an old Windows laptop (with no track names), and Gracenotes has correctly supplied the album and track names - presumably from the number and durations of the tracks in the album. In the case of this live album, I started with 4x20min WAV files - each one, a whole side of a vinyl record - before chopping it up into 23 tracks using Final Vinyl. When these were initially imported into iTunes, Gracenotes incorrectly identified it as some old YES prog-rock album I'd never heard of!

  • Pause / Play audio

    Any ideas on how I can pause my .swf audio (using a "Pause"
    button, then hit a "play" button to either resume the audio where
    it stopped or at least restart that same audio segment?
    At present, if the scene is "paused" and then the viewer hits
    "play", the scene resumes at the stop-point, but the audio segment
    that was interrupted is silent.
    Thanks for any insight you can offer!

    The Sound class is the only thing you really need. Classes
    define
    objects in Flash, and generally describe one or more of the
    following three
    categories: properties (characteristics), methods (things the
    object can
    do), and events (things the object can react to).
    Look up the "Sound class" entry in the ActionScript 2.0
    Language
    Reference and you'll have a complete "Owner's Manual" of
    programmed sound in
    Flash.
    Nothing wrong with one of the Media components, by the way.
    Given this
    project is a CBT module, it may actually come in handy. For
    this, look up
    "Media class" in the Components Language Reference. The
    Components docs
    aren't organized nearly as neatly as the ActionScript docs,
    but you still
    get a list of properties, methods, and events. Components do
    tend to weigh
    a bit, though, and may be more than you need.
    If you just want to start, pause, and resume sound, check
    out the
    hyperlink in my earlier reply. :)
    David Stiller
    Adobe Community Expert
    Dev blog,
    http://www.quip.net/blog/
    "Luck is the residue of good design."
    "scrinmemphis" <[email protected]> wrote in
    message
    news:ev360l$kuu$[email protected]..
    > OK...
    >
    > I'll show my naivity here.
    >
    > "attaching the audio to a media component."? What does
    that mean. Sorry.
    > I'm fairly new to Flash... ;-)
    >
    > Thanks!

  • IPhone does not work with IPOD Dock to select next song / pause - play

    After using the iPhone at the gym, the IPhone quit working using the remote for the Docking station to navigate to next song nor pause / play. Suspect Iphone connector....
    Also the iMuffs Headset bluetooth adapter that plugged into the iphone connector quit working. Tested iMuffs bluetooth connector on another iPhone and is still functioning.
    any ideas?? clean connector?? short?? service??
    Note, the iPhone still syncs with iMac via docking port (USB). So the connector is not totally bad.
    Message was edited by: java_boy
    Message was edited by: java_boy
    Message was edited by: java_boy

    Have you tried a reset...and if that doesn't work ..a restore? Back up your phone before you restore.

  • Photos slideshow pause/play button not displaying in 3.0

    I've been running 3.0 on my first generation Touch for several months. Throughout, I've noticed that the Photos slideshow lower-center pause/play button no longer displays once I've paused a slideshow. While the left/right arrows show and I am able to advance photos one at a time, I am unable to re-engage the slideshow.
    In software versions 1 and 2, one could freely pause and play a running slideshow. Now, when I pause the slideshow, I'm forced to bail out of the slideshow and start a new one.
    A longtime Touch owner, I'm not certain if my problem is a 3.0 software glitch or things have changed. Has anyone else encountered the issue?

    Hi,
    look here: http://discussions.apple.com/message.jspa?messageID=9843694#9843694
    I hope Apple will fix this and some other Bugs in their 3.0.1 Update which will hopefully appears in a few days.

  • One of my audio books will not play.  My music plays.  And my other audio book plays.  When I try a listen "the singularity is near", It does nothing.  I try and move he cursor to the middle of the track and hit play, but it moves back to the beginning.

    One of my audio books will not play.  My music plays.  And my other audio book plays.  When I try a listen "the singularity is near", It does nothing.  I try and move he cursor to the middle of the track and hit play, but it moves back to the beginning, and still does play.  How do you report a problem with a mandatory apple app?

    Audiobooks purchased from Audible.com.  They play on iTunes on my computer.  They have been playing on my iPod Classic until two days ago.  I'm in the middle of two books and now one does not keep track of where I am and the other does not play.  I also have other books not playing on the iPod that use to play.  They all play on iTunes on my computer.

  • Download bar not moving for hours and unable to pause or resume

    hello,
    i'm trying to download a trial vsn of AE 5.5. i have installed the download assitant application, however, when i start the dowload nothing happens at all. it claims it is in the download queue and i can see it in the queue, however, it's progress bar does not move at all or give me an indication as to how long it is going to download. i am also unable to pause or resume it ?
    any help most welcome.
    thanks,
    Jan

    Hi,
    Which operating system is your computer running on?
    I would recommend performing steps in this document : Troubleshoot Adobe Download Assistant
    The steps mentioned in the document should resolve most issues with downloading a product using the Adobe Download Assistant.
    Do post here and let us know the result.
    Thanks

Maybe you are looking for

  • Zen V- is it worth

    OK after being told that i need to buy a new mp3 player after mine has a 'hardware problem' i got very cross and swore never to buy a creative product again... then I had a look round.. I?don't like ipods (my sister has one) and don't like the look o

  • For all the folks who have to wait until Oct. 7

    Yes, i am one of those guys who have to wait for my upgrade on October 7 How long do you think we are gonna have to wait to get the new iphone? its not looking very good for us, i've heard is gonna be something like 2-3 weeks, even a moth! what do yo

  • Rating Scale Results

    I would like to create a survey using rating scales. Q1: How do I get a page summing the results? Q2: Is it possible to have questions in categories and have the response to that question stored in that category. Example: 4 kinds of questions, 40 que

  • Are there instructions to uninstall Elements 7 and Elements 10

    Hello, Could somebody please help me?  I purchased a new laptop and I have to return it because it's been giving me a lot of problems.  I have to uninstall Elements 7 and Elements 10 before I return it. Are there specific instructions and links to un

  • Dreamweaver help needed

    Hello. Well i've never used this program before and its been very many years since Ive done even basic of html related stuff. I have several little questions here and there and will more then likely continue to have more. I thought it best to include