Pause and Play Toggling Button

I have created a Pause and Play button that toggles between states.  It controls a Timeline with synced Sound.  When I use it the sound and animation go out of sync.  Can anyone help me with this or perhaps have better code I could swap out to make this work?
Below is what I am currently using:
On the first frame of an Action Script layer put this AS:
playBtn.onRelease = function() {
ns.pause(false);
playBtn._visible = false;
pauseBtn._visible = true;
pauseBtn.onRelease = function() {
ns.pause(true);
playBtn._visible = true;
pauseBtn._visible = false;
Lable a Pause button Graphic "pauseBtn"
put this AS on the button:
on (release) {
            gotoAndPlay(_currentframe+1);
Lable a Play button Graphic "playBtn"
put this AS on the button:
on (release) {
            stop();
Put the Pause and Play buttons directly over each other on 2 layers for the duration of the timeline.
Pause Button on top. (unless you have a STOP on the first line then maybe the Play button will start it (I didn't Try this)

you have, what appears to be, conflicting code.  and you appear to be using a netstream instance.  so:
1.  remove all code attached to objects.  copy and paste the only code you have affecting your pause/play button.
2.  what is ns?

Similar Messages

  • Why does my music keep pausing and playing on my macbook Pro every time i put my headphones in?

    Everytime i plug my headphones in my music starts playing and pausing, and i don't press the buttons on the headphones or the on mac.

    Your  topic states Macbook Pro yet your system profile confirms you have a Mac Pro which is a desktop computer.  Which one are you having issues with? 
    Which os version are you using? 
    Which app is playing your music? 

  • Pause and play timeline with embedded video

    I have created a banner that is currently being used at  www.bandg.co.uk
    I have been asked if it is possible to add a video to this banner.
    However, the problem I have is with the banner having mlutiple slides.
    What I am looking for is a way of having the timeline pause when the video is clicked on, then for the timeline to continue when the video is paused (basically making the video a start and stop command button).
    Thanks for your help.

    Can anyone help with this??:
    I have created a Keynote presentation for a trade show consisting of slides and some slides with embedded video. How can I set this to play without cutting the video short or stopping at the end of the video?

  • Question concerning Selecting and Deselecting Toggle Buttons

    Hello Everyone,
    I am still relatively new to the adobe web suite (still in the trial period in fact). I am working on creating a mock-up of a main web page design to demonstrate and discuss with management. The decision associated with such would determine if we go forward with purchasing adobe products, continuing a redesign of our website among many other things.
    The big issue that I am running into at the moment is creating a series of interactive thumbnails.
    I have the following set up on the page:
    - A section for the actual image (full sized) complete with a title and description provided at the side for one of potentially many topics.
    - Below the topic/image section is a series of thumbnails, which the first one is set for full opacity and marked as selected. (All of these thumbnails are in a Custom Component and break down into a Toggle Button component each, if the image is unselected it remains set at a low opacity)
    - When selecting one of the other thumbnails, I need it to change the image (this part works), select/set the thumbnail to full opacity (this part works as well, given it is a toggle button feature), and lastly unselect the previous thumbnail (causing it to go to a lower opacity, I cannot figure out a way to accomplish this one)
    - In the future I intend to design side bars (left and right) for both thumbnails and the section above (effectively changing the topic to a new one)
    The ultimate idea is to create articles, provided with thumbnails associated to the article at the bottom and to allow clean alternation between the thumbnails, and likewise be able to switch to a new article (with a new set of thumbnails associated to the new article) as well.
    Any help would be greatly appreciated.
    -Steven

    I think I found the solution of my own question. I share it in the hope that it’ll be useful to other people. Remind that I use Cp 6.1.0.319. I modified the project as follows: 1) I unchecked “Visible in output” for the button “Audio Play” (Bt_play) 2) I  modified the AA associated to the audio on/off buttons as descrived below: Action Name: Play Assign cpCmndMute with 0 Show Bt_Stop Enable Bt_Stop Hide Bt_Play Disable    Bt_Play Action Name: Stop Assign cpCmndMute with 1 Show Bt_Play  Enable Bt_Play  Hide Bt_Stop Disable Bt_Stop In this way the two buttons in the same location work well as a real toggle button! Greetings Elena

  • Integrated scroll panels and unmovable toggle buttons

    Hey,
    iam looking for an expert. I am working on an HMI development and wanted to use Flash Catalyst. However, I think I am already reached the limits of FC. But perhaps there is a FC solution because I can not program Flash.
    Problem:
    In my layer, I have different graphical objects and text blocks. A part of them I want to move with a scroll panel. That's easy, not a problem.
    However, all these objects (including the scroll panels) should be integrated in a master scroll panel. This means, that all parts, even the integrated scroll panels, should be moveable at the same time. I managed this.
    Now, I need multiple toggle buttons. With these Buttons I wanted to change the form of some of the graphical objects resp. the text blocks. But the buttons have to be unmovable. This function (to change the form of the objects) is relatively easy but in combination with the integrated scroll panels it isnt. The buttons are able to move the objects when these buttons are pasted in the "deepest" layer, the layer of the objects. But there, the buttons are moveable and slide out of the screen (with the master scroll panel) and not clickable.
    How can I manage this? I need unmovable toggle buttons, with these I want to change the forms of objects. The objects are pasted in integrated scroll panels. I hope it's understandable!
    Can someone help me? It would be glad if the answer does not depend on the learning of the flash programming!
    Thanks.

    After 2 days of banging my head against a wall (doesn't it always go that way)...
    Turns out one of my panels had sub-panels causing the problem. Visibility to the parent panel was controlled by a button on one of the child panels. Once I "promoted" the button to the parent panel, the panel (screen) flow worked great.
    Is this 'undocumented functionality'? Why should it matter how deep the button is nested? (incidentally, the reason it worked in my test environment was the lack of other components - aka the child panel)
    Well, regardless. Thanks to those who gave it thought.

  • TS1718 Is anyone else experiencing trouble playing video in itunes?  Video intermittenly pause and plays without audio?  Video used to play fine this problem only started since the last version of itunes, version 7.  Just updated to v. 11 still having sam

    Is anyone else experiencing trouble playing video in itunes?  Video intermittenly pauses and also plays with not audio.  Video used to play fine.  This problem only started since I upgraded to version 7.  I have not used itunes since then because I couldn't watch anything without experiencing these problems.  I was waiting for the next version to come out and hoped it would fix the problems I was having, but no such luck.  I just upgraded to the latest version, version 11 and I'm still having the same problems.  Anyone else having these same issues and if so, any solutions?

    Is anyone else experiencing trouble playing video in itunes?  Video intermittenly pauses and also plays with not audio.  Video used to play fine.  This problem only started since I upgraded to version 7.  I have not used itunes since then because I couldn't watch anything without experiencing these problems.  I was waiting for the next version to come out and hoped it would fix the problems I was having, but no such luck.  I just upgraded to the latest version, version 11 and I'm still having the same problems.  Anyone else having these same issues and if so, any solutions?

  • Problems with pausing and playing again

    Whenever I'm listening to a song by The Ramones, then i pause for a second and play it again it skips to the next song. It is only with songs by The Ramones though. If anyone can help please post.

    Ryan,
    Have you tried re-importing the songs from the Ramones? If not I wouldtry that first. Other than that I can only think of restoring the Shuffle. (Making sure that you have the latest version of the iPod shuffle software) Start the iPod updater program, (Without the iPod attatched) insert the iPod and click "Restore". This will wipe your shuffle clean of all music and put it at factory settings but is normaly one of the first thins one tries when troubleshooting.
    <hr>
    Hope this helps, let us know if either of those suggestions works
    -Sam

  • Pause and play

    I have had my iPod shuffle for less than a year. I plug it into my USB port of my mac. and get nothing. it does not update, and it does not charge. When it had battery life (it recently ran out of that), whenever I walked to school with it, or moved around with it on, it would continuously pause and I would have to press play again each time. it would not lose the place in the song, just pause. It did it often, some songs went "pause, play, pause, play" almost immediately. when I could update it, it still did this, and no mattter what songs were on it, it did. How do I fix this issue? is there a way? has anyone else had this problem?
    two-nine-nine

    Hi,
    Have you tried to Restore the iPod shuffle?
    http://docs.info.apple.com/article.html?artnum=300701
    Santo

  • IPod 5th gen device keeps pausing and playing music randomly

    Self explanatory. Don't know why this started happening. I take good care of my iPod too. Resetting my iPod doesn't do anything. Sometimes Siri randomly pops up too. Even when my iPod is locked, these problems are still occurring. Please reply back to me ASAP

    If no earphones attached then:
    Try:
    - Reset the iOS device. Nothing will be lost
    Reset iOS device: 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. See:                                 
    iOS: How to back up           
    - Restore to factory settings/new iOS device.
    -  Make an appointment at the Genius Bar of an Apple store.
      Apple Retail Store - Genius Bar

  • Adding Pause and Play Buttons to an embedded SWF

    I'm having trouble with a navigation skin of a SWF file I'm
    embedding in one of my Dreamweaver sites. The SWF shows fine when
    embedded without the skin but draws a blank when embedded with it,
    even though they are published simultaneously from the same file.
    I would like to ADD a Stop or Pause button from Dreamweaver
    to the SWF to control the animation.

    anyone?

  • ITunes pause and play issue

    For some unknown reason, iTunes will play/pause the current song anytime the following happen:
    - I move any file to another folder (also CMD Del)
    - I empty the Trash
    - I hit play or pause in YouTube
    - A message comes into iChat
    Also sometimes in iTunes I have to hit Play button three times to get song to play. Same with DVD Player.
    How do I resolve this issue?
    I have all the latest software versions on a Mac Pro Dual Core.

    I get a message that tells me only installed programs can be accessed. When I try to upgrade to the new version the install fails and I ma told it cannot find the file "itunes.imi".
    Doublecking something, bobo ... is that the iTunes.msi file that it says is missing?
    If so the iTunes.msi is actually damaged, rather than missing, and the damaged .msi is also causing the problem with launching your existing version of iTunes.
    Try the procedure I outline in the following post:
    http://discussions.apple.com/thread.jspa?messageID=9694258&#9694258

  • AS2: Local Connection - Pause and Play Videos

    I have two exe's, they are a mock-up of a control system....one is the controler that sends commands through LocalConnection to the other which simply plays video of what would be happening when certain buttons are pushed on the controler. I got it working with this code (with help I got here):
    sending_lc = new LocalConnection();
    pmvopen1.onRelease = function() {
    this._parent.gotoAndStop(3);
    trace(this+" clicked");
    sending_lc.send("my_lc_as2", "gotoF", 2);
    pwvopen1.onRelease = function() {
    this._parent.gotoAndStop(6);
    trace(this+" clicked");
    sending_lc.send("my_lc_as2", "gotoF", 4);
    chokeclose4.onRelease = function() {
    this._parent.gotoAndStop(25);
    trace(this+" clicked");
    sending_lc.send("my_lc_as2", "gotoF", 15);
    forward1.onRelease = function() {
    this._parent.gotoAndStop(3);
    trace(this+" clicked");
    sending_lc.send("my_lc_as2", "gotoF", 2);
    reverse1.onRelease = function() {
    this._parent.gotoAndStop(1);
    trace(this+" clicked");
    sending_lc.send("my_lc_as2", "gotoF", 0);
    reset.onRelease = function() {
    this._parent.gotoAndStop(1);
    trace(this+" clicked");
    sending_lc.send("my_lc_as2", "gotoF", 0);
    pause1.onRelease = function() {
    this._parent.pmvOpen.pause; (parent needs to pause flv movie pmvOpen as well as 2 object movies)
    trace(this+" clicked");
    sending_lc.send("my_lc_as2", "gotoF", 1); (this need to send a command to pause one flv movie)
    What I need to do is add a function to the above code that will pause all flv movies in both the sender and reciever (one flv movie each) and pause all object movies on the sender when the pause1 button is pressed.
    The parent needs to pause 1 flv movie and 2 object movies and I need to SEND a command to the other exe to pause one flv movie.
    I started the code but, of course, it doesnt work...the button is active as I get a trace...My attempt to start this is in red at the end of the code above. 'pmvOpen' is the name of the flv movie on the parent and I don't know HOW to begin pausing the other movie called 'pmvOpen1' through LocalConnection or to pause the 2 object movies called 'Chart1' and 'Chart2' on the sender.
    on(press)
    chart1.stop();
    on(press)
    chart2.stop();
    on(press)
    pmvOpen.pause();
    ^^ this is how I had it doing the pause before the requirement to have a second screen. This was simply attached to the pause button...I still need to pause all of the above but also I need to pause a movie through local connection at the same time.
    This is my last step before I finish and if I can get help on the pause I think I can do the play button without any additional help. Just not sure where to start with this.
    Thanks

    I forgot about the recieving end code.
    so my controler end code would look like this:
    pause1.onRelease = function() {
    this._parent.pmvOpen.pause();
    this._parent.chart1.stop();
    this._parent.chart2.stop();
      trace(this+" clicked");
    sending_lc.send("my_lc_as2", "pauseF");
    My recieving code as it is right now is:
    receiving_lc = new LocalConnection();
    receiving_lc.gotoF = function(n:Number){
    trace("received "+n);
        gotoAndPlay(n);
    receiving_lc.connect("my_lc_as2");
    This is recieving for my frame forwarding. So I would need to put a new function in this that calls out the video. To call out the video to be controled would it look something like:
    receiving_lc = new LocalConnection();
    receiving_lc.gotoF = function(n:Number){
    trace("received "+n);
        gotoAndPlay(n);
    receiving_lc.pauseF = function(pause){
         pmvOpenl.pause(n);
    receiving_lc.connect("my_lc_as2");
    This seems to work...I will try to do it with another video on another frame and see what happens. Thanks a bunch man. If this works down the line I think I might have this.

  • Random Pause and Play from iTunes

    Starting from about a week ago. My iTune sometimes randomly play/pauses itself without me pressing play or anything. Even after I quit the application, it starts again. I know my play button isn't mulfunctioning because the same problem isn't occurring with my other applications.
    This is getting kind of frustrating, some help please!

    When you say they are displaying in your iTunes library, are you talking about the Audiobooks section of your iTunes library and not the audiobooks section indented under the iPod in the left pane of iTunes under Devices?
    Is the iPod Shuffle configured to sync audiobooks or do you manually manage the iPod's contents?
    B-rock

  • Ilivid download and play now buttons on websites. it is a bad one

    attacked registry so bad that i had to restore to an earlier point. it pops up on numerous sites as a play or download now button only on firefox, not windows explorer

    See these threads and pages about searchqu/searchnu:
    *[[/questions/816181]]
    *[[/questions/790833]]
    *[[/questions/921690]]
    *http://bit.ly/searchqutoolbar
    *http://www.ilivid.com/faq.htm#8
    *http://www.beyourownit.com/forum/security-malware-issues/4758-searchnu-searchqu.html
    *http://deletemalware.blogspot.com/2012/04/remove-searchnu-uninstall-guide.html

  • Why does movies and videos keep pausing and playing in mozilla 4

    it does this in window 7 mozilla firefox 4 but doesn't do it in internet exployer 9 quite as bad.

    From my own experience recently, I would suspect that the Philips dock is faulty. However, that won't get you very far, so as a method for narrowing down the problem, ask yourself the following:
    Has the iPod/Philips dock combination ever worked?
    How are you connecting the iPod with the dock? Is it the docking connector, a cable, bluetooth?
    How long does it work before it pauses (time it)? Is it the same time each attempt?
    Can you try the iPod with a friend's dock, or can you try the dock with another iPod? What happens?

Maybe you are looking for

  • Cannot a get JSP page instance from a page being destroyed

    We have a J2EE app, using Struts + Tiles (build 1.1-b3), running on Win2KPro, Ora9ias v9.0.3. The application is roles-based, and different users see different versions of the same page based on their role authorizations. Occasionally, when multiple

  • Iphone 3G not recognized in Windows XP or seen in iTunes

    I recently updated my itunes to iTunes 10. When I plug in my iphone 3g to the usb port, all that happens is that Windows recognizes and installs a camera device. The iphone is not being seen. iTunes also does not recognize the iphone under devises. I

  • CS6 will not open after updating 4-22-14

    Hi all, I updated my creative cloud version of CS6 yesterday and now it will not open. When I click the icon it bounces as if it is going to open and the creators page shows up like is typical but then a dialogue box pops up asking if I want to parti

  • Why is DW CS4 not elipse based

    I have been so busy I just noticed the DW Beta. I have been using DW since the beginning for prototype UI creation. I also used homesite before that. I was holding my breath & hoping DW CS4 would be eclipsed based. Not only would it gain some credibi

  • How to put acents in pages app

    How I can correct the acents in pages app for Macbook?