Click the button to play and click to reverse

I have a test button, I'd like to have play a movie where a chart is growing. Once stopped, I would like to be able to click on the same button and have the graphic go backward. I'd rather have chronology reversed, rather than extend the chronology of the mc, because then I have to align the beginning and the end, and if we change, I have to remember to change the other.

I have:

btn_test.onRelease = function() {}
If (_root.adinstance._currentframe! = 1) {}
While (_root.adinstance._currentframe! = 1) {}
_root.adinstance.prevFrame ();
}
}
else {}
_root.adinstance.play ();
}
}

I get the expansion but when when it hits the while, it disappears the adinstance mc.

Any ideas?

You rarely want to use any kind of loop coded to animate something, especially a while loop (they can be particularly unpleasant).  Try something more in the sense of...

btn_test.onRelease = function() {}
If (_root.adinstance._currentframe! = 1) {}
_root.adinstance.onEnterFrame = function() {}
If (_root.adinstance._currentframe! = 1) {}
_root.adinstance.prevFrame ();
} else {}
delete _root.adinstance.onEnterFrame;
}
}
}
else {}
_root.adinstance.play ();
}
}

Tags: Adobe Animate

Similar Questions

  • When asked "do you want to enable Network Service list? I continue to by clicking on the button "Activate this", and yet I am not able to see the activities or connections to all networks.

    When asked "do you want to enable Network Service list? I continue to by clicking on the button "Activate this", and yet I am not able to see the activities or connections to all networks. My internet works fine, I just can't see if I am connected or not. Help?

    original title: list of Network Service does not illuminate

    Hi SikDude,

    Please use the Forum of the community for Vista.

    Opening of services by typing services.msc in the search bar and find the list of Network Service. Under properties, set it to automatic.

    Please let us know if we can do something else.

    Matt
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • I have an iMac (2015).  When I open Garageband, there are only two buttons on the control bar, play and stop.  No record button, rewind or ff.  Where are they and how can I make it appear?

    I have an iMac (2015). When I open Garageband, there are only two buttons on the control bar, play and stop. No record button, rewind or ff. Where are they and how can I make it appear?

    Try to enlarge the GarageBand window by dragging the corners of resizing.

    If she looks like this, your window is small:

    You can also try to click the double arrow at the end of the toolbar to reveal more options.

  • HP EliteBook 8560p: can not turn on WiFi: the button is orange, and nothing happens when you press

    Hello

    I have a problem with my wifi. The button always orange and nothing happens when I press on it: no errors, no message, no reaction at all. This is why I can't use WiFi.

    The laptop is a little new: I use only 2 months.

    1. number and product name

    HP EliteBook 8560p
    НР LQ589AW

    2 operating system installed (if applicable)

    Windows 7 Professional 64 bit

    3. error message (if any)

    No error message

    4. all changes made to your system until the problem occurred

    My windows crashed and I got it from archive created a few days ago. Archive includes all data from hard drives, the system has been restored exactly as it was before the accident. I still don't know if this caused the problem (or if the problem occurred after that): it happened a month ago, and I had no WiFi available at the time and only tried to turn it on a few days ago.

    Additional details:

    In device manager wireless card is appearing as functioning normally. In the management of the adapter Wi - Fi is on but says "no connection available. If I run diagnostic tests, he asks me to activate WIFI with a button on my laptop, which I can't do. In Mobility Center, it says "connection Wi - Fi is turned off". Activate the button is gray and impossible to click on.

    I already tried things:

    1. Reinstalled all the HP drivers from original CD.
    2. Card WiFi removed in the windows Device Manager (remove device), restarted windows, installed new drivers for it, rebooted again;
    3. Checked the mobility Center as suggested in one of the threads available on this forum;
    4. Do a hard reset for HP laptop (battery removed, push the button and hold for a minute).

    Thanks for any help!

    Anatoliy.

    I managed to solve the problem...

    Turns out that the problem was (apparently) caused by HP Power Assistant tool shipped with my laptop. Default profile has been showing the gray bluetooth and WiFi, and it was not possible to turn them on. I created a new profile, and even if all the parameters are identical to the default profile, it allows me to turn the BT and WiFi and turn off without any problems. Button is working fine now as well and goes from blue to orange when I press it. Active WiFi and it works.

    I hope this helps.

  • How to code a button to play and pause sound using its loading?

    How to code a button to play and pause sound using its loading? I used the sound load methos to fix the sound. Can someone help me?

    I can't determine where the sound is defined and where you try to control it.  This will work but is sloppy coding:

    Stop();

    adaDrut1.onRelease = function () {}

    _root.mySoundC = new Sound (this);

    _root.mySoundC.loadSound ("F #/ Bhajni1.ark", true);

    _root.mySoundC.onSoundComplete = function() {}

    This.Start (); }

    gotoAndPlay ("play2");

    _Global.myTaalLaya = 'entries Low1. "

    }

    {play_btn.onRelease = Function ()}

    _root.mySoundC.start ();

    }

    {pause_btn.onRelease = Function ()}

    _root.mySoundC.stop ();

    }

  • I woke up this morning and my iPhone 6 does not light. I tried to reboot it by holding down the button market / stop and the button "home" but the apple logo never appeared and I had on the charger for a while and still nothing. Please leave suggestions!

    I woke up this morning and my iPhone 6 does not light. I tried to reboot it by holding down the button market / stop and the button "home" but the apple logo never appeared and I had on the charger for a while and still nothing. Please leave suggestions! Thank you

    You can make an appointment at the Apple Store - Genius Bar store and bring it into service. You can also search an Apple Store - find a store - Apple.

  • When I try to import photos go into the import screen in lightroom, they will not import.  Import the button is dimmed and all the photos are checked for import, but they are a different color too

    Import the button is dimmed and all photos are checked for import, but they are a different color too.

    Hi kinziegirl,

    This happens if you try to import images are already imported.

    See a similar detailed thread Re: cannot import Images grayed out -

    Kind regards

    Assani

  • In firefox, I am unable to submit information through buttons for forms. The buttons are present and clickable, but nothing happens once they are clicked.

    I'm unable to submitting information via form buttons. I click the button, but nothing happens. It is not specific to the site and is a problem that only started happening recently. I uninstalled firefox and reinstalled without no rememdy. The problem does not replicate in Chrome or Internet Explorer. Can someone tell what maybe the problem? Is - this s a framework javascript in firefox I have accidentally turned off? Help, please.

    You have this problem when running in Firefox SafeMode?

    http://support.Mozilla.com/en-us/KB/safe+mode

    Do not choose anything at the moment, just use 'continue in safe mode.

    If this is not the case, see this:

    http://support.Mozilla.com/en-us/KB/troubleshooting+extensions+and+theme...

  • Leave the button to play the audio only twice

    I am building an assessment of the foreign language with audio passages that the user must listen to then answer two questions about this. The user can play the audio twice. But even if I put 2 number of attempts, when I tested it, I was able to play the audio unlimited times. What is the trick?

    play audio only twice.jpg

    You seem to misunderstand the 'attempts' to an interactive object, will attempt to clarify. It does not limit the number of clicks ON the interactive object (here a button), but saying how many attempts can be 'impossible', which means clicking outside of the object. For your use case failure action would never happen, because the user always clicks the button, never outside it. Even with the project to continue that left you for the action failure: never happens.

    For the successful action, you use the command Play Audio, with project to continue unchecked: This means that the user can click several times, the playback head was never released, and audio can be played as many times as you want. The solution is to use a conditional, tip action (not a standard action because you want to allow 2 attempts, sorry David - TLCMediaDesign) and a counter variable. Here are the steps:

    • Set a user variable v_attempts with a default value of 2
    • Create a tip action to be triggered by the button that looks like this:

    It is always prudent to turn off the button before you hide it. Or you can just keep turn it off. This action also allows you to show the attempts left in a container of text:

    1. Before the first click: v_counter = 2
    2. After all, first, click on: v_counter = 1
    3. After the second click: v_counter = 0 and since it is more possible to click, there's = 0; This is important because CP is not very mathematical mind, does not see the difference between a negative and a positive number.

    It is also very easy to change the number of retries by simply changing the default value. Think it will be one of the (easy) scripts in my recipe book future actions. TNX for the question.

  • Get the button to play the timeline for the specified duration

    Hello

    I have an animation on board, and I'm doing a button that can play the timeline for a while and then stop, without the help of labels. So, I thought that if I put the button for sym.getSymbol("mysymbol").play (500);  This would make the chronology of this symbol for 500 milliseconds time game each click on the button, but it does not work, because it makes everything simply start playing at 500ms. So then I tried adding an action to stop after that:

    sym.getSymbol("mysymbol").play ();

    sym.getSymbol("mysymbol").stop (500);

    But it doesn't, because I guess that since these events are one after another, he does not expect 500 seconds to stop and he reads (500) stop immediately after the read statement, which did not work either. Can someone help me with this? I'm pretty new to javascript, but I really tried to learn with the API of edge for a few weeks now and still can't seem to solve this problem.

    Have you tried to use the setTimeout Javascript function? Maybe something like:

    sym.getSymbol('mysymbol').play ();

    setTimeout (function () {sym.getSymbol('mysymbol').stop ()}, 500);

    Have not had time to check if the code works, but I have used the function setTimeout to delay actions successfully in my own projects.

  • Audio attached to the button "submit" plays at the beginning of the slide

    I created a text box with a "submit" button. When someone types in their response and clicks submit, text comments will appear and an audio excerpt explains the answer. I have attached the audio, the button submit, but when I go through the project that it plays as soon as the slide appears, not after the answer to the question. He does not appear in the timeline panel, but played when I go to the Audio tab of the submit button. As an aside, the audio on the success and failure of the feedback will be the same. Does make a difference? Should I attach audio to the legends of f/b?

    Any ideas on how to solve this problem?

    PS - the Captiv8er - you were so help kind it has everyone (me)! THX!

    Well, how about that? I am answering my own question...!

    With more tests, I found that if I join the audio for the legends of success or failure, she plays after the answer to the question. The audio was playing when the slide appeared first of all because I loose to the Submit button, which is visible from the beginning of the slide.

    Thank you, me! (Maybe I'm starting to find it?...)

  • Add the button to play the Audio

    Rick and other experts, it should be easy, but heck, I can't make it work.

    Location: 6 Captivate slide 2 (any text, from PPT). Next navigation control button appearing a.5 and stopping at 5.5 no other objects or chart on the slide back and forth.

    Problem: I want to add a 'play' button, which will allow students to hear an audio summary of the information. However, I want the button to appear also a.5 seconds. I tried different variations, but no matter where the play button is or where the 'pause' is placed on the timeline, the audio still works without clicking. I don't want to do this.

    Any solution other than a jump to?

    Hello

    There should be several ways to do this.

    * If the sound is at the level of the slide, phase it so it's not 'appear' to a.5,.6 ou.7 seconds in. Then configure the button to pause seconds a.5.
    * Configure the button with a legend of success and set the audio to the legend of success
    * Insert the audio on the next slide and have the button simply open the next slide

    There are other ways as well. Just threw a little.

    See you soon... Rick

  • C00D11B1 error message prevents the films currently playing and no noise all trying to play music.

    Media Player 11

    Hi John Shrek,.

    Welcome to the Microsoft Answers community.

    I will need more information to help you better.

    ·         Did recent changes to the computer?

    ·         Is this the first time you arrive on this issue?

    ·         Did you use any third party registry patches or updates recently?

    Generally, this error occurs when there is a problem with one of the sound devices in the computer, such as a sound card or sound controller. However, this error can also occur if there is a problem with the file or the Internet connection.

    Update the device driver for the sound card or audio controller. To determine if an updated driver is available, visit the website of the manufacturer of the component, or visit the Microsoft Update Web site: http://update.microsoft.com (http://update.microsoft.com).

    Use Device Manager to determine the State of the sound card or audio controller. Follow these steps:

    1. click on start, type devmgmt.msc in the start search box and press ENTER.

    If you are prompted for an administrator password or a confirmation, type the password or click on continue.

    2. expand sound, video and game controllers, and then look for the name of the sound card or audio controller.

    If your audio device is listed, but a red "X" appears next to the device, the device is disabled. To activate the device, right-click the icon, and then click Activate.

    If the audio device does not appear in the list of audio devices, expand other devices. If the multimedia Audio controller appears in the list, right-click on the icon and then click on update driver or update driver software. Follow the instructions to install the driver.

    You can also go to the website of the manufacturer of the computer and install the appropriate driver.

    Open Internet Explorer in Administrator Mode and check if you can play.

    It can also occur because of a database of digital rights (DRM) corrupt management.

    Follow the steps below to change the registry value to disable ProtectedAudioDG:

    1. Click Start, type regedit in the search box and press ENTER.

    If you are prompted for an administrator password or for confirmation, type the password or click on continue.

    2. Locate and then click the following key:

    HkeyLocalMachine\Software\Microsoft\Windows\CurrentVersion\Audio

    3. Locate and double-click DisableProtectedAudioDG.

    Note: If this key does not appear in the registry, you can these steps.

    4. According to the value data, change the value from 1 to 0.

    Restart the computer.

    It should work fine now.
    If the problem still persists to upgrade your security components by visiting the website http://drmlicense.one.microsoft.com/Indivsite/en/indivit.asp

    For more information visit http://support.microsoft.com/kb/933448

    For added protection, back up the registry before you edit it. Then you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click on the number below to view the article in the Microsoft Knowledge Base:

    322756 (http://support.microsoft.com/kb/322756/ ) how to back up and restore the registry in Windows

    Change the settings of the REGISTRY can cause serious problems that may prevent your computer from starting properly. Microsoft cannot guarantee that problems resulting from the REGISTRY settings configuration can be solved. Changes to these settings are at your own risk

    Hope this information is useful.

    Let me know if it worked.

    Thank you, and in what concerns:

    Umesh P - Microsoft Support

    Visit our Microsoft answers back Forumhttp://social.answers.microsoft.com/Forums/en-US/answersfeedback/threads/ and tell us what you think.

  • Copy of a slide with a 'model' for the buttons to show and hide across multiple slides

    Here's my problem... I'm going through many different products that each have a similar style click on each slide.  The user can choose from 5 different catergories, when you click on one of the 5 buttons it shows the appropriate text box and hides one of the other visible text that can be opened from clicking on any other category.  When all the 5 keys were pressed game re bar appears allowing the user to continue.  It works just like a champion on a slide.  Here's my problem, although I need to duplicate this slide about 200 times.  When I duplicate, the name of the element in the text boxes so any change so my actions advanced making hide / display is no longer working.  Do I really have to create a new tip action for each text box for each slide with a unique name for the element? (I know that I can't have the same text on several slides box item name... at least I don't think I can).  I can do this, but there must be a quicker way?  What Miss me?

    I am using Captivate 5.5

    Very brilliant way to beat the system, I am impressed.  A problem, however, the text box must have a gray background to make the text readable, and for some reason when the variable positions within the text are it is overlooking the sid on the left of the box by a character.  Everything else seems to fit but not that. See slide below and the "Drytime" box to the right illustrates my problem.

  • The button crop disappeared, and I can't do it reappears

    Hello

    I was using Photoshop Elements 10 and tried to use the tool 'redial', which is placed in the same "set of icons" which is on the crop tool. Now, I can't make the crop button appear again, even positioning the mouse over the place. Could you help me, please?

    Here is a screenshot:

    http://img.Photobucket.com/albums/V191/Elwe576/photoshop_elements.jpg

    Thanks in advance for your help.

    Simply right click on the button and choose the shield of harvest to bring it to the top. You can do it on any tool with the small black triangle, which indicates a nested toolset.

Maybe you are looking for