Symbol will not stop when I press my Pause button

At the moment I have an animation, animation is a bike with rays that moves around, but when I press my button to pause moving the bike stops but the rays always in movement. The rays and inside the bike as a Clip. I use Actionscript 3.

My code for the pause button is:

Play();

pauseButton_btn.addEventListener (MouseEvent.CLICK, stopNow);

function stopNow(e:MouseEvent) {}

Stop();

}

You must apply a stop() to your wheel movieclip that is inside of your movieclip bike.  give it an instance name (for example, wheel_mc) and use:

Play();

pauseButton_btn.addEventListener (MouseEvent.CLICK, stopNow);

function stopNow(e:MouseEvent) {}

Stop();

wheel_mc. Stop(); If you have two wheels, each assign a different instance name and a stop() in each.

}

Tags: Adobe Animate

Similar Questions

  • Loop will not stop when you press the stop button

    Hello

    I have a LabVIEW program that includes a number of loops, but one of my curls (which surrounds a series of functions "Write TDMS") has a Boolean stop that transmits a signal through two GOLD and functions in a control of the loop (see aea of interest). My problem is that when I press the button stop the loop will not stop and will continue to save and write data that I didn't need a file.

    Could someone please help with this?

    Kind regards

    Aaron Broady


  • PC does not start when you press the power button, after that starts automatically as a ghost!

    I have HP Pavilion a6030in, my pc does not start when I press the power button / stop ther, but she starts automatically after some time after that, it works fine.

    Even once when I closed and leave it for a while and still the problem is not resolved.

    Help, please

    I solved the problem

  • My cd-writer/DVD disc tray does not open when I press the Open button. He is not blocked and has no disk in it. How can I me t to operate?

    Cd-writer/DVD disc tray does not open when you press the Open button, or when you use the buttons to control the media on the keyboard. How can I restore it to its operating state?

    Hi John,.

    Please let me know exactly what happened when you tried my suggestions of first and second.

    Of your most recent post, looks like you're watching the wrong part of the Device Manager. Optical drive is listed under "readers of CD-ROM/DVD-ROM". The info you gave appear under "drives". If the drive is not listed under "readers of CD-ROM/DVD-ROM" or there is no such section in Device Manager, then Windows do not see. If windows can't see it then this means that there is no power or that the drive is broken.

    When you pushed the drive back in, the player no longer has much of the book or did you have to push all the way. If the latter, it means that the drive has no power or is broken.

    With respect to the opening of the case, I guess I should ask first if it's a laptop or desktop?

    Tricky

  • Flag: My downloads will not open when I press 'Open' - I've just updated for Windos 10 - could this be wgy?

    My downd loads do not open when I press 'OPEN' - the screen flickers just--I just upgraded to Windows 10 - could this be why?

    Hey @Grandmaof5,

    I refer to the printer software. Maybe uninstall and reinstall the software for Windows 10.

    Thank you.

  • Why Satellite Pro A300 does not start when you press the power button?

    Suddenly my new Satellite Pro A300 does not start correctly when you press the power button. The situation is the following: when I press the power button is displayed the opening of Toshiba (Leading Innovation) and the disappers image quickly. Then there is a black screen for about 30 seconds. There is a rectangular frame with the text Microsoft Corporation under. And nothing happens however long wait.

    In order to get with the trial starting I then shut down the computer by pressing the power button until the computer turns off. ("The hard way to close")
    Now, I press the power button shortly to turn on the computer. Then, the computer starts normally with the photo to open Toshiba and after a few seconds, I wonder to open the computer in safe mode or in normal mode. I now choose to open in normal mode and the computer opens normally and is ready to work.

    What should I do to get a normal departure procedure?

    When the laptop starts normally (after choosing normal mode) stop your laptop properly using START > shut down option. Next launch should be normal.

    When the OS is moving towards the low irregularly will always ask you how to start this new (secure or normal mode).
    The same thing happen on my Satellite A300.

  • Audio jack play and pause/stop when you press the various buttons

    Hi all

    I do a simple radio interface and I have 6 buttons which I want to have that specific preset song playing of the button located in the library screening and stop/pause the current song when you press any preset button.

    I tried to use the attachSound, with associated identifiers but don't know if it's the right way to go. He plays songs, but does not stop their...

    {mc_FM1preset1.onRelease = Function ()}
    {if(!this.) Toggle)}
    this.gotoAndStop ("release");
    radio_FM1. Text = FM1preset1
    FM1value = 1

    PlayFM1_1 = new Sound (this);
    PlayFM1_1.attachSound (FM1preset1_song);
    PlayFM1_1.start (0, 1);

    PlayFM1_6.pause;
    PlayFM1_5.pause;
    PlayFM1_4.pause;
    PlayFM1_3.pause;
    PlayFM1_2.pause;

    }
    }


    }
    {mc_FM1preset2.onRelease = Function ()}
    {if(!this.) Toggle)}
    this.gotoAndStop ("release");
    radio_FM1. Text = FM1preset2
    FM1value = 2

    PlayFM1_2 = new Sound (this);
    PlayFM1_2.attachSound (FM1preset2_song);
    PlayFM1_2.start (0, 1);

    PlayFM1_6.pause;
    PlayFM1_5.pause;
    PlayFM1_4.pause;
    PlayFM1_3.pause;
    PlayFM1_1.unload;

    }
    }

    then I tried just to put each piece in its own clip and using this code, but it still doesn't stop/pause the song.

    Stop();

    {mc_preset1.onRelease = Function ()}
    mc_song1. Play();
    mc_song2. Stop();
    }


    {mc_preset2.onRelease = Function ()}
    mc_song2. Play();
    mc_song1. Stop (1);
    }

    Does anyone have any suggestions? Any help would be great! Thank you!!!

    Basically, I just need to know how to do the supported mc or button to STOP / to PAUSE the song that plays

    Thank you!!!

    -PAt

    the sound class has no property of break.  It has a stop() method, you must use:

    {mc_FM1preset1.onRelease = Function ()}
    {if(!this.) Toggle)}
    this.gotoAndStop ("release");
    radio_FM1. Text = FM1preset1
    FM1value = 1
           
    PlayFM1_1 = new Sound (this);


    PlayFM1_1.attachSound (FM1preset1_song);
    PlayFM1_1.start (0, 1);
           
    PlayFM1_6.stop ();
    PlayFM1_5.stop ();  etc.
    PlayFM1_4.pause;
    PlayFM1_3.pause;
    PlayFM1_2.pause;
           
    }
    }

    }
    {mc_FM1preset2.onRelease = Function ()}
    {if(!this.) Toggle)}
    this.gotoAndStop ("release");
    radio_FM1. Text = FM1preset2
    FM1value = 2
           
    PlayFM1_2 = new Sound (this);
    PlayFM1_2.attachSound (FM1preset2_song);
    PlayFM1_2.start (0, 1);
           
    PlayFM1_6.pause;
    PlayFM1_5.pause;
    PlayFM1_4.pause;
    PlayFM1_3.pause;
    PlayFM1_1.unload;
           
    }
    }

  • Satellite C series - cursor will move only when you press the trackpad button

    Cursor on my mousepad suddenly stopped moving unless I have push button left or right, the cushion itself is not locked (fn + f5).

    Please help this is driving me crazy. I tried to uninstall drivers and reinstall but still will not work

    This behavior is very strange.
    Can you please tell us which model of laptop you have, what OS you are using and since when did you notice this problem?

    You use an external mouse at this time?
    When you open Mouse Properties try please use option restore all default values.
    If the problem persists, you can try to reinstall OS (recovery image) and test the functionality with the factory settings.

    In the case that the same problem my only explanation is that must be material junk.

  • Tecra A4 does not light when you press the power button

    When I press the power on button it turns green for 4/5 seconds then turns off.
    "I do all the tests the support on the page:

    * Press on and press and hold the Fn key and press the F5 key repeatedly. If an image appears on the display, this indicates that the image has been activated to a connector for a monitor outside, causing only appear to be off the computer.

    * Connect the adapter to the computer.

    * Remove the battery and unplug the AC adapter and then connect only the AC adapter. Make sure that the power adapter is one that comes with the computer. Try to turn on the computer again, without the battery in the computer.

    * Plug the power adapter into a different plug.

    * The battery, ensure that there are enough energy to start the computer.

    * Press and hold the power switch for 10 seconds (to make sure that the computer is turned off). Wait five seconds, and then tap on and again, hold the switch for three seconds (turn on the computer).

    * Ensure that nothing beats (a sliding plastic cover) in the path by pressing the power switch.

    * Disconnect all devices (printers, pointing devices, keyboards, etc.) connected to one of the ports on the computer.

    * Remove any additional memory, beyond the computer built in memory, or the first module of memory in the computer. If the computer starts correctly, reinsert the memory and turn the computer back on. If it does not start successfully, memory can be inserted incorrectly, it may be defective or the support of memory may be damaged. "Try to replace the module memory."
    In vain:]

    You know? THX

    Hello

    There must be a hardware malfunction.
    You have tested a lot and nothing has worked
    I think there is not much to do, you all tired and I guess the authorized service provider could help you

    If your warranty is valid all should be done for free, so don t you worry and ask the experts ;)

  • my tool bar will not open when I press alt and then only the line superior

    the complete upper toolbar is not visible on any web page. to use the file print history or a bookmark, I have to press ALT line superior then disappears when choosing a Web site. Then I have to repeat this step for each choice of bookmark.

    For more information about how to restore permanently, see the what happened to the file, edit and view menus? article.

  • Volume/brightness does not appear when you press the volume button on laptop keyboard

    Recently, when I went to change my volume, the small bar has not appeared on my screen, showing how much I was going to the top. Brightness bar did not show either and it's really annoying because I never know how it is until music strikes out. Any suggestions on how to fix it? I'm totally lost.

    Hello

    I apologize for the delay in responding. It seems that the user profile that you are using has gone corrupt. Try to create a new user profile and check if you have the same problems here as well.

    1. open user accounts by clicking on the button start the picture of the Start button, clicking Control Panel, clicking user accounts and family safety, then clicking on user accounts.

    2. click on manage another account. Need administrator permission if you are prompted for an administrator password or a confirmation, type the password or provide confirmation.

    3. click on create a new account.

    4. type the name you want to assign to the user account, click an account type, and then click on create an account.

    Create a user account
    http://Windows.Microsoft.com/en-us/Windows-Vista/create-a-user-account

    To fix the corrupted profile follow the steps mentioned in the article below.

    Difficulty of a corrupted user profile
    http://Windows.Microsoft.com/en-us/Windows-Vista/fix-a-corrupted-user-profile

    Try using the tool (SFC.exe) System File Checker to check and repair corrupt system files.  To do this, follow these steps:
    How to run scan SFC

    1. click on the Start button

    2. on the Start Menu, click all programs followed by accessories

    3. in the menu accessories, right-click on command line option

    4. in the drop-down menu that appears, click the "Run as Administrator" option

    5 If you have the enabled User Account Control (UAC) you will be asked to consent to the opening of the command line. You simply press the button continue if you are the administrator or insert password etc.

    6. in the command prompt window, type: sfc/scannow then press enter

    7. a message is displayed to indicate that "the analysis of the system will start.

    8. be patient because the analysis may take some time

    9. If all of the necessary files any replacement SFC will replace them. You may be asked to insert your Vista DVD for this process to continue

    10. If all goes although you should, after the analysis, see the following message "Windows resource protection not found any breach of integrity.

    11 after the scan finished, close the command prompt window reboot the computer and check.

    For more information, see the link below.

    http://support.Microsoft.com/kb/936212

    Let us know if this helps

    Concerning
    Anthony.

  • Windows Media Center will not stop to come when I click on my user name

    Windows Media Center will not stop when I click on my username to come...

    Hello
    Try to create a new user account and transfer the files from the user account damaged to the new user account
     
  • Why my video clip will not stop playing

    When I press SHIFT + ENTER buckle just without stopping when I press the first button to start

    loop of the MovieClip a default calendar.  you need a stop() framework in the last (or another) to stop the timeline to keep playing.

  • (Redirected) Dell audio drivers will not load when the system is turned on for the first time after his stop.

    Dell audio drivers will not load when the system is turned on for the first time after adoption of Windows 10. I have to reboot every time. So what I'm doing puts the system into sleep. in this way, I don't need to stop and restart the system. It is Dell Inspiron N5559. Audio drivers are installed and up-to-date. Equipment works correctly.

    Hi akilesh.sharma18,

    Please repost this in the Audio forum from the laptop to help.

    http://en.community.Dell.com/support-forums/laptop/f/3517

  • ElliteBook 8460p will not be running when you press the Start button

    Hi Ant classmates.

    I am facing a problem with my 8460p ElliteBook. When I press the Start button it won't start and I need to apply some mechanical vibrarions so he reacts to the button. I guess that there is a problem with a connection inside. The thing is that he does not always fail, but it happens more often. I'm afraid to send it to HP support and resume with a message like "the problem didn't see the - up." I'm close to the date limit of warranty, but I need my laptop for 3 more weeks for professional issues. What should I do?

    Thank you

    Hello Angelica,.
    Welcome to the HP Forums.

    I'm sorry, but to get your question more exposure, I suggest posting in the trade forums, since it is a commercial product. You can click here for the link.
    http://h30499.www3.HP.com/hpeb/

    Thanks for posting on the HP Forums.

Maybe you are looking for

  • Missing email icon iphone 6

    My icon of e-mail dissappeared a weeks ago. I checked all the icons of the utility etc. cannot always can ffind it. I went to settings > general > reset home presentation of the screen several times, but nothing happens. Please notify

  • YouTube videos on other sites won't load not

    I can't play Youtube videos embedded on other sites. When I click to play one, the video never loads. If I click on "Watch on Youtube" in the control bar of the video and open the Youtube website, the video, then load and play normally.

  • How can I open mail.app on iMac with applescript?

    Hello I will build and run a script to open the mail on my iMac application and apply the rules I created Apple. This is to get rid of the spam and junk at the launch of the mail application. I tried the 'recording' function, but nothing happens! The

  • Network card ethernet W500

    Hello I think my problem is pretty silly, but I have no idea of how to use the ethernet card. I have windows 7 x 64 and usually I use a wireless network, but today I had to use a network cable, but it does not recognize my machine. Moreover, win 7 ha

  • How to turn sound when switching mode sleep?

    Hello I got my 13 edge two days ago and have now installed all updates and upgrade the BIOS (how can this amount of updates it will take a new PC? Not surprised a lot of people have problems with their computers...) But I can't find out how to make t