Buttons after stop(); wont work; how can I FIX this

Buttons after stop code (vidPlayer.stop();) wont work.
I figured out the stop code needed to stop my videos from playing when you click another button, but with my stop code being on top of my "gotandStop("label")" my buttons doesn't perform that function. I take the vidPlayer.stop(); off the buttons the buttons work fine, but then my videos wont stop playing when I click another button.  Help, how I can get my buttons back working and still stop my videos from continuely playing when another button is clicked.
Below is my code:
btn3.addEventListener (MouseEvent.Click, clickHandler3);
function clickHandler3 (e:MouseEvent):void{
     vidPlayer.stop();
     gotoAndStop ("services");
With the code exactly the way it is; when I like on the services button it wont work (unles I start from  the about btn, which houses the vidPlayer) I want to beable to go into my website and click any button and it work, not go to the about button first an then to any other button.  Please HELP BE ON THIS SAME PROBLEM FOR WEEKS.  IAM A BEGINNER ASWHILE SO DUMB IT DOWN PLEASE.

make sure vidPlayer is declared in frame 1 of your main timeline:
var vidPlayer:<class>;  // use the correct class here.  for example, FLVPlayback
you can then use:
btn3.addEventListener (MouseEvent.Click, clickHandler3);
function clickHandler3 (e:MouseEvent):void{
if(vidPlayer!=null){
     vidPlayer.stop();
     gotoAndStop ("services");

Similar Messages

  • Hey my lock screen button and home button jammed it doesnt work.How can I fix this problem.But first of all I live in Turkey.But my Iphone 4 is bought from apple store victoria gardens CA.Do I have warranty in Turkey ?

    Hey my lock screen button and home button jammed it doesnt work.How can I fix this problem.But first of all I live in Turkey.But my Iphone 4 is bought from apple store victoria gardens CA.Do I have warranty in Turkey ?

    The warranty is only good in the country of purchase.

  • My twitter app worked perfectly fine before the update and now it wont work, how can i fix this?

    I have uninstalled and reinstalled several times. I have also deleted my account several times and re-signed in. It is still not working. When i go to the app store, the "open" tab has a little plus at the top...what does that mean? Seriously, i just need help getting the app to work.

    My twitter is doing the same thing, I click on it and just a small rectangle with everything on the usual twitter screen condensed. I tried re-installing but no luck. I reset my phone too because when I first installed ios7 my screen went black, still doesn't work. I have to use the app off of my mac for now. If you figure something out let me know and I'll do the same!

  • My reset/sleep button on my iPhone 4 has just stopped working, how can I fix this??

    My reset/sleep button on my iPhone 4 has just stopped working , how can I fix this??

    Hi Hamish1P,
    Thanks for using Apple Support Communities. Based on what you stated, it sounds like an app you installed is not working. I would recommend that you read this article, it may be able to help the issue.
    If an app you installed unexpectedly quits, stops responding, or won’t open - Apple Support
    Cheers,
    Mario

  • InDesign CS5 is not opening after deactivation/activation. How can I fix this? Illustrator and Photoshop open and are working fine. Please help!

    InDesign CS5 is not opening after deactivation/activation. How can I fix this? Illustrator and Photoshop open and are working fine. Please help!

    First of all, thank you for replying so promptly to my posts this morning!
    I can't remember how I got the software on his computer, but I'm pretty sure it wasn't through migration assistant.
    I was looking into doing an uninstall of InDesign and a fresh install. However, I initially downloaded the CS5 suite digitally and I can't find out how I am able to perform a fresh install of InDesign. Do you know where I find this info or gain access to download just InDesign again? I can't seem to find anything in my Adobe account that shows where I might do another download.

  • My macbook webcam stopped working how can I fix this?

    my macbook webcam stopped working how can I fix this?

    jcskater93 wrote:
    my macbook webcam stopped working how can I fix this?
    Restart Mac and try again.  If you are still having trouble, see Apple's http://support.apple.com/kb/HT2090
    (Over time, Apple has changed the built-in camera's name on newer Macs from "iSight" to "FaceTime" and then to "FaceTime HD."  Regardless of the name of your Mac's built-in camera, the same info and troubleshooting applies.)
    Message was edited by: EZ Jim
    Mac OSX 10.8.5

  • My iphone 5 camera is not working how can i fix this problem ?

    My iphone 5 camera is not working how can i fix this problem ?

    Have you tried restarting or resetting your iPhone?
    Restart: Press On/Off button until the Slide to Power Off slider appears, select Slide to Power Off and, after It shuts down, press the On/Off button until the Apple logo appears.
    Reset: Press the Home and On/Off buttons at the same time and hold them until the Apple logo appears (about 10 seconds).

  • Cannot launch LR. Photoshop crashes after few seconds. How can i fix this? Thx for help

    Cannot launch LR. Photoshop crashes after few seconds. How can i fix this? Thx for help

    Hi members & mvp's
    I face same problem, after creating Adobe ID and after installing Creative Cloud app, the installed Ps and Lr can't be launched... Lr at all, no action, but Ps works for a few seconds. I could achieve "system info" from help menu as follows:
    Adobe Photoshop Version: 2014.0.0 20140508.r.58 2014/05/08:23:59:59  x64
    Operating System: Windows 7 64-bit
    Version: 6.1 Service Pack 1
    System architecture: Intel CPU Family:6, Model:10, Stepping:9 with MMX, SSE Integer, SSE FP, SSE2, SSE3, SSE4.1, SSE4.2, HyperThreading
    Physical processor count: 2
    Logical processor count: 4
    Processor speed: 1895 MHz
    Built-in memory: 3990 MB
    Free memory: 1477 MB
    Memory available to Photoshop: 3303 MB
    Memory used by Photoshop: 70 %
    I guess my PC is powered enough, but I'm afraid other trial versions and registry rubbish are locking CC server communication. Do you know some tool to clean up previous installation of Adobe products?
    Thanks in advance!
    Jose

  • My alerts work when I'm on the phone such as text message Facebook n Instagram but when I'm off the phone it doesn't work how can I fix this :(

    My alerts work when I'm on the phone such as text message Facebook n Instagram but when I'm off the phone it doesn't work how can I fix this :(

    Hello, Trillmonroe. 
    Thank you for visiting Apple Support Communities. 
    Try forcing all open applications to close and power cycle the device as outlined in the first two sections of the article below.  If the issue persists, try the troubleshooting steps in the second article. 
    Restart the app
    Close the app and open it again.
    Restart your device
    Turn the device off and on.
    iOS: An app you installed unexpectedly quits, stops responding, or won’t open
    http://support.apple.com/kb/ts1702
    iOS: Understanding notifications
    http://support.apple.com/kb/ht3576
    Cheers,
    Jason H. 

  • My messages screen on the iphone 4 is stuck kina like frozen and it wont rotate how can i fix this

    my messages screen on the iphone 4 is stuck kina like frozen and it wont rotate how can i fix this?

    Double tap home button quickly in new row of icons at bottom, tap and hold your Message Icon until the Red Minus Sign appears, tap it to delete from background memory. Then slide all the icons to the right, all the way, see if the Lock Icon is present, if locked, unlock it. See if Message is better, if not, Reset iPhone, hold both home and Power buttons until the iPhone restarts itself, ignore the "slide to power off" let the iPhone restart itself, usually takes about 10 seconds of holding both buttons.

  • Firefox keeps crashing after the recent update. how can i fix this, its doing my head in.

    firefox keeps crashing after the recent update. how can i fix this, its doing my head in.

    Hello, Please make sure to get a fresh copy of Firefox from
    http://www.mozilla.org/en-US/firefox/all
    Have a nice day

  • Speaker on phone calls will not work, how can I fix this? I have already done system restart and reset to manufature default.

    speaker on phone calls will not work, how can I fix this? I have already done system restart and reset to manufature default. I also have no voice with Safari or any other apps including music!

    If your speaker is broken, then you may need to get a repair done.
    Are you unable to hear anything at all, or is it just one speaker in particular?
    If it is just one speaker, where's it located?

  • I have a macbook.  Whenever I put a disk into the disk drives it keeps ejecting the disk after 2 secs.  How can I fix this?  Thanks

    have a macbook.  Whenever I put a disk into the disk drives it keeps ejecting the disk after 2 secs.  How can I fix this?  Thanks

    I am also having a similar issue. I used Adobe Lightroom and my whole display goes black. Even my laptop screen and the lights on the keyboard go black. I can still hear the fan running, so I assume it is just the display. This is my first Mac and I have had nothing but issues. I think I am going back to Windows after this.

  • Updated my IOS 7 now some of my games are not work, how can I fix this problem?

    I have updated my Ipad to the IOS 7 and now some of my games/apps are not working, how can i fix this or revert back to what I had before?

    I'm afraid you'll have to wait until both Apple and the makers of your games/apps upgrade to new versions.
    Apparently there are still some issues with iOS7 that are being dealt with and the same with some apps.
    As for going back, I don't think you will be able to get this information from these forums...

  • My little sisters ipad mini is disabled, it does not say anything but that no plug into itunes or countdown, however it is connected to my mums iphone apple account, she can not lose anything as its for work, how can i fix this???

    my little sisters ipad mini is disabled, it does not say anything but that no plug into itunes or countdown, however it is connected to my mums iphone apple account, she can not lose anything as its for work, how can i fix this???

    Follow these instructions to resolve a forgotten passcode:
    http://support.apple.com/kb/HT1212

Maybe you are looking for