My button function seems to work only once

When I tell Flash to go back frames the buttons cease to work, in other words, the button only works once. I've tried tracing it to find the problem and when I tell it to go back frames it won't run the function.  I'm using actionscript 3 on Flash CS4.
hap.addEventListener(MouseEvent.CLICK,clickFunction2);
    trace("addEventListener worked!");
function clickFunction2(evt:MouseEvent):void {
    trace("clickFunction2 worked!");
this.gotoAndPlay(191);
    trace("gotoAndPlay worked!");
sad.addEventListener(MouseEvent.CLICK,clickFunction3);
    trace("addEventListener worked!");
function clickFunction3(evt:MouseEvent):void {
    trace("clickFunction3 worked!");
this.gotoAndPlay(1,"sadness");
    trace("gotoAndPlay worked!");
ang.addEventListener(MouseEvent.CLICK,clickFunction4);
    trace("addEventListener worked!");
function clickFunction4(evt:MouseEvent):void {
    trace("clickFunction4 worked!");
this.gotoAndPlay(1,"anger");
    trace("gotoAndPlay worked!");
rewind.addEventListener(MouseEvent.CLICK,clickFunction5);
    trace("addEventListener worked!");
function clickFunction5(evt:MouseEvent):void {
    trace("clickFunction5 worked!");
this.gotoAndPlay(120,"happiness");
    trace("gotoAndPlay worked!");

Thanks for the answer.  I was having the same issue with something I was writting.  I was wondering, if it would be better to remove eht event listener and then add them after the frame has changed.
Would one approach be bettor or worse that the other.
-Thanks

Similar Messages

  • How can I sum up raws? the sum function seems to work for columns only and right now I have to create a separate formula for each raw

    How can I sum up raws? the Sum function seems to work only on columns. Right now I have to create a separate formula for each raw

    Hi dah,
    "Thanks, but can I do one formula for all present and future raws? as raws are being added, I have to do the sum function again and again"
    You do need a separate formula for each group of values to be summed.
    If the values are in columns, you need a copy of the formula for each column.
    If the values are in rows, you need a copy of the formula for for each row.
    If you set up your formulas as SGIII did in his example (shown below), where every non-header row has the same formula, Numbers will automtically add the formula to new rows as you add them.
    "Same formula" in this context means exactly the same as all the formulas above, with one exception: the row reference in each formula is incremented (by Numbers) to match the row containing the formula.
    Here the formula looks like this in the three rows shown.
    B2: =SUM(2)
    B3: =SUM(3)
    B4: =SUM(4)
    That pattern will continue as rows are added to the table.
    Also, because the row token (2) references all of the non-header cells in row 2, the formula will automatically include new columns as they are added to the table.
    Regards,
    Barry

  • CUP - field mapping from request to SU01 for Accnt No worked only once

    CUP - field mapping from request to SU01 worked only once. I configured the Field Mapping for Account Number with Account Id. First request worked fine in DEV systems, 2nd and 3rd requests failed. Same thing happened in QA systems. Not sure whether the difference in SP on GRC and ECC is causing this. Any help is greatly appreciated.
    We are currentky on GRC 5.3 ABAP stack SP 14.0  
    and
    ECC - SAPK-53315INVIRSANH VIRSANH 530_700: Support Package 0015
    Any help is greatly appreciated.
    Thanks,
    Vish

    Hi Diego,
    Yes, we are on VIRSANH SP15  also VIRSAHR SP13 for SAP_HR . My connector type is SAP HR System, Version ECC 6.0.
    We are on GRC 5.3  Support Pack 14.0 . Our GRC 5.3 installation is running on ABAP stack.
    It is very strange that in QA client, SU01 got updated atleast 3 times with new account number , user group. Tried 4th time, did not work. In DEV client, it worked only once.
    Thanks,
    Vish

  • When I long in and type my sync key its said : incorrect key.I worked only once

    I have Firefox 4 on Mac. I have sync for Iphone settled. I have Home app' in the Iphone...I cannot log in, response : incorrect Sync Key. But it worked only once.
    I want uninstall all the stuff and start again, how?

    Sounds as if you are trying to create a new Sync account. You need to treat that software reload as a '''new device''' for purposes of Sync.
    https://support.mozilla.com/en-US/kb/add-a-device-to-firefox-sync#w_add-another-computer

  • Add-ons working only once

    It's been a while now that I've noticed my addons not working on Mozilla DE in Ubuntu. Addons are installed correctly and, indeed, they show up when I use mozilla sync in other computers.
    Today I've tried the troubleshooting suggested here https://support.mozilla.org/en-US/questions/982460
    It works only once. I can install my addons again, but as soon as I close firefox and open it again the addons dissapear from the top bar and customization window. Even when I try to change preferences for Ghostery I only get a blank screen so addons are definitely not working in Ubuntu

    Lets do a full install. But do it this way;
    '''[http://www.mozilla.org/en-US/firefox/all/ Download Firefox Full Installer For All languages And Systems]''' {web link}
    Save the file. Then;
    Using your file browser, open the '''Programs''' folder on your computer.
    '''Windows:''' C:\Program Files
    C:\Program Files (x86)
    '''Mac:''' Open the "Applications" folder.
    '''Linux:''' Check your user manual.
    • Linux: If you installed Firefox with the distro-based package manager, you should use the same way to uninstall it - see Install Firefox on Linux. If you downloaded and installed the binary package from the Firefox download page, simply remove the folder firefox in your home directory.
    Look for, and rename any Mozilla and Firefox folders by adding '''.old''' to them.
    Now run the full installer.
    If all goes well, remove the OLD folders when you are done.

  • App works ONLY ONCE

    I am trying to deploy my swt app using JWS...
    Everything works fine the first time I download and launch the app...
    But it works ONLY ONCE.... when I start it again I get this exception:
    java.lang.NullPointerException
         at com.sun.javaws.security.SigningInfo.verifyAllEntriesSigned(Unknown Source)
         at com.sun.javaws.security.SigningInfo.checkSigning(Unknown Source)
         at com.sun.javaws.LaunchDownload.checkSignedResourcesHelper(Unknown Source)
         at com.sun.javaws.LaunchDownload.checkSignedResources(Unknown Source)
         at com.sun.javaws.Launcher.prepareLaunchFile(Unknown Source)
         at com.sun.javaws.Launcher.prepareToLaunch(Unknown Source)
         at com.sun.javaws.Launcher.launch(Unknown Source)
         at com.sun.javaws.Main.launchApp(Unknown Source)
         at com.sun.javaws.Main.continueInSecureThread(Unknown Source)
         at com.sun.javaws.Main$1.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    this is my JNLP file
    <?xml version="1.0" encoding="utf-8"?>
    <jnlp spec="1.0+" codebase="http://192.168.50.34:8080/Application" href="MyApp-win.jnlp" main="true">
    <information>
    <title>Application</title>
    <vendor>#######</vendor>
    <homepage href="index.html"/>
    <description>Application</description>
    <description kind="short">Siglaror</description>
    <offline-allowed/>
    <shortcut online="true">
    <desktop/>
    <menu submenu="App"/>
    </shortcut>
    </information>
    <security>
    <all-permissions/>
    </security>
    <resources>
    <j2se version="1.5+"/>
    <jar href="MyApp-win.jar"/>
    <jar href="installer.jar"/>
    </resources>
    <application-desc main-class="it.swt.MenuIniziale"/>
    </jnlp>
    I hope someone have some idea.. it's driving me completely crazy :-(
    thank you in advance

    You may be using some third party jars which are already signed. Use extension tag to load those jars
    also check this thread if you can find any ideas
    http://forum.java.sun.com/thread.jspa?threadID=275890&messageID=1305431
    I notices there is main attribute in your jnlp tag. which should not be there
    <jnlp spec="1.0+" codebase="http://192.168.50.34:8080/Application" href="MyApp-win.jnlp" main="true">

  • Button functions don't work

    I've had this problem occur intermittently in AS2, and I
    always work around it my putting the code right in the button, but
    it seems that sometimes, out of the blue, one (or some) buttons
    will ignore button functions that are called from a frame script,
    while other buttons are quite happy with their frame scripts and
    work as they should. Yes, the instance name is correct and the
    function is defined within the timeline range of the button, and
    the syntax is correct. It's just a strange phenomenon, and I wonder
    if anyone knows if there is a rhyme or reason (or if there isn't)?
    Thank you for your help!

    Hi clbeech! Thank you for your reply. That wasn't it, what it
    was is interesting... I have a timeline-animated fade in on the
    button, and the function is defined after the button is completely
    faded in and the instance name is defined. Everything is correct,
    however, the first frame of fade-in didn't have an instance name.
    Now keep in mind, that the function is defined after the keyframe
    on which the button is given an instance name, so it shouldn't have
    made any difference, but it did. Strange, isn't it?

  • Button functions don't work AFTER loaded onto website.

    Created a document in Indesign 5.0. Created buttons to click to "next page" and "previous page." Exported to interactive PDF, launch the pdf (full screen) and the buttons advance to the next page when clicked. Problem arises when document is loaded on website. Button functionality disappears.  See website document: http://www.sonypictures.com/kenko/assets/pdf/2013SPEBenefits.pdf

    So when a pdf is launched within a website--it is forced to open in a preview mode...even though I have Acrobat on computers tested with it?
    The other interactive functions (like the hyperlinks) are working fine.
    When the document from the website is saved to the desktop, it opens in Acrobat and all interactive functions are still there.

  • Redirected printers using Remote Desktop Easy Print driver work only once during session

    Hello all
    We are running Windows Server 2012 R2 Remote Desktop Services Sessions hosts with printer redirection allowed using only the Easy Print Driver, we have no other drivers installed on the servers. All client printers are redirected and can print fine, but
    only once per session! We have tested with several different client printers and they all work a single time in each session. After that the user needs to log off and then back on again to be able to print once again, but only once. Needless to say, our users
    are annoyed. If I look at the c:\windows\system32\spool\printers folder while jobs are printing, but failing, I can see the spool files appearing and disappearing as jobs are spooled. No errors in the event logs accompany the behaviour. Our clients are running
    Windows 7, 8 and 8.1. All exhibit the same problem. The error looks a little like what is described here:
    http://support.microsoft.com/kb/2925429
    While similar, this problem describes a scenario where Easy Print is not used, but XPS is, and since Easy Print is based on XPS and the behaviour is very similar, I am tempted to make a connection.
    I have checked all the usual stuff with permissions etc, and no manufacturer provided drivers are present. The problem appears on newly installed systems as well as one that have been running for some time. Restarting the spooler services does not resolve
    the problem. Actually I do not think it is related to the spooler service or driver framework at all, but rather is an Easy Print driver issue that is occurring much later in the process, if not I would see some errors in the logs and no jobs would print at
    all.
    Anyone ever heard of something like this?
    Thanks
    Morgan

    Hi Morgan,
    Based from your description, users can only print once during single RDP session, I suggest you check if this issue also happens locally.
    In addition, after the first print attempt, does any other issue exist on the RDP session?
    Is the server fully patched? If there are any available driver updates, please also apply them. If there are any third party software installed, try disable/uninstall them to see if the issue persists.
    You can also enable print auditing to get more detailed information about this issue.
    More information for you:
    Auditing Printing Events
    https://technet.microsoft.com/en-us/library/cc976774.aspx
    Logging Spooler Events
    https://technet.microsoft.com/en-us/library/cc976746.aspx
    Best Regards,
    Amy
    Please remember to mark the replies as answers if they help and un-mark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]

  • How do I set "JComboBox ItemStateChanged function" to do action only once

    I encounter a serious problem with JComboBox.
    When I use "ItemStateChanged" function,
    I found out it does every action TWICE !!!!!
    I need to use "ItemStateChanged" to decrease numbers by 1,
    since it does action twice, the numbers are decrease by 2 everytime, which is not what I intended.
    Are there anyway I could set "ItemStateChanged" to do the action only once?
    Please help me out

    The ItemEvent has a getStateChange() method that tells you what the state change was, "selected" vs "deselected". What you are seeing is that each item changes state twice, from delected to selected and vice versa. Check the result of this method to filter out the unwanted state changes.
    BTW don't use Choice, its AWT not swing.

  • Cancel button functionality does not work--- while searching for G/l Acc

    HI SAP SRM Gurus,
    This is regarding an issue faced by the end user.
    For information my client is on WAS 6.4 Patch Level 155, SRM 4.0, EBP 5.0, SRM Server 5.0.
    In account assignment details..while searching for G/l account for the Account Assignment used at the time of creation of the shopping cart, if no G/l account is found, the ‘Cancel’ button functionality provided, does not work, however when
    G/l account(s) is/are found, then the ‘Cancel’ button functionality
    works properly.
    Kindly assist.
    Awaiting your reply in this regard.
    Thanks in advance
    Ankur

    Hi,
    Sound like a bug.
    Did you open an OSS ticket ?
    Kind regards,
    Yann

  • Cannot print with a Samsung ML2160 printer (mono laser) and Pages. Print function doesn't work, only drag and drop in printer's queue

    Hello,
    I just purchased a Samsung ML2160 printer and it doesn't work with nor my Pages program, nor the Preview (to print PDF). No matter the way I tried, the Print function doesn't work and I cannot neither print or even enter the printer preferrences menu! My MacBook Pro has worked before with other printers, but now with the Samsung it doesn't work at all... Though, if I drag and drop a document, jpg, pdf in the printer queue, it prints just fine, but that method gives me absolutely no freedom to the printing... Could it be something from the Computer -> Machintosh HD -> Library -> Printers? Because a friend of mine was recently trying to save me some disk space, and therefore erasing part of the HP printer (to remove the previous printer I owned)...
    If anyone has any idea, that would be much appreciated
    Thank you in advance

    Do the sensible thing, as you say neither Preview nor Pages print, try other programs eg TextEdit. If none of them print then it is a System problem and very likely the printer drivers are AWOL or were never installed.
    Go to Samsung's website and download their software for the Mac:
    http://www.samsung.com/uk/consumer/print-solutions/print-solutions/mono-printers /ML-2160/XEU-support
    http://www.samsung.com/uk/support/model/ML-2160/XEU-downloads
    Peter

  • Can anyone tell me why my various Mice seem to work only part of the time..

    Hello All...
    I'm having some trouble with my new MacBook(s). I have two different Mice (one wired... one wireless) all via USB and they work only "sometimes"...
    When they do work (about 1 in 12 times) they stop after the computer goes to sleep... when I wake everything up... the mice do not respond...
    Strange...
    Hopefully this is simple to fix/modify...
    Thanks...
    mls
    [email protected]
    www.av123.com
    MacBook   Mac OS X (10.4.7)  

    Welcome to
    the discussions!
    Which mice are you having trouble with?
    Hi Eric... thanks for your reply...
    I have a SONY Vaio mouse PCGA-UMS3 and a Logitech Wireless mouse... (sorry no model number here with me at the moment)...
    Both of these work perfectly with ALL of my PowerBook G4's... (I have 5 of these in various locations...)...
    I'm really baffled by this... They just do not work --- or work for short intervals only... very odd...
    I'd love to hear any ideas here...
    With humble thanks...
    mls

  • 23" Cinema Power Button Does seem to work

    I have a PC running windows xp and a 23" cinema display. I works great except the power button. The power button doesn't seem to function when the machine is on...meaning I can't turn my monitor on or off when in use with my machine. Once I shut down my machine the monitor stays on that ashy black screen and never completely shuts off even if I try and press the power button.
    Also what does the light in the front stand for because I have had the monitor working when the light was on and off...seems a little strange.
    FYI - I have an EVGA 8800GTS card and I downloaded the bios update from them already...don't know what else the problem could be.

    I have a similar problem but with my Mac Pro. I have one of the older (acrylic casing, not the newer aluminum case) 23" Cinema HD Displays (made around 2002) with the power button that lights up and is touch sensitive.
    Anyway, I cannot shut the monitor off manually. When I touch the light, it brightens so I know it senses my touch. But it will not respond by shutting off. My Display Preferences are set properly ("disable buttons" is unchecked). What could be the problem? I need to be able to shut the display off when not in use because (for some reason) the display awakens from sleep periodically for no apparent reason and may be on for hours unattended.
    Thanks in advance for any help!
    2002 version Cinema HD Display   Mac OS X (10.4.9)  

  • HP Photosmart 7520 scan to email not working / working only once in a while

    I have read through all of the answers that I can find as to how to fix the scan to email function on my printer.  The printer is only a couple of months old.  I am using a Mac.  I need this to work.  The problem is that while I always receive the emails, they don't always have the scan attached to them.  Sometimes, but not always.
    When I scan one page, it works.  When I scan 10 pages, it works about half the time.  When I scan 25 pages, as I sometimes do, it doesnt' work.
    HP, please fix this !  It worked just fine a couple of weeks ago!
    Machta

    Hi Machta,
    Welcome to the HP Support forums.  I see that your scan to email feature of your Photosmart 7520 seems to be inconsistent when attaching the scanned documents to the email.
    Please start by assigning a manual IP address and manual DNS servers to your printer.  If you are unsure how to do this please click here.  It will take you to another post I’ve done that has the steps with screen shots.  Don’t fret that the screen shots are for a Photosmart  7510 printer, the steps are the same.
    If you have already set the manual IP address and manual DNS servers, then please call HP’s Cloud Services at 1-855-785-2777 if you live in the USA/Canada region. If you live outside the USA/Canada region please click here to find the Technical Support number for your country/region.
    Regards,
    Happytohelp01
    Please click on the Thumbs Up on the right to say “Thanks” for helping!
    Please click “Accept as Solution ” on the post that solves your issue to help others find the solution.
    I work on behalf of HP

Maybe you are looking for

  • Power button not working - reboot loop

    Bought a new iPhone 5S last week, activated it and used it 2-3 hours. It had iOS 7.0.4. I updated to 7.0.6 and everything is working for 2-3 hours again. Now the power button is just no more working. I reset the configuration back to default and the

  • Installing devices under windows XP on Satellite P200-14H

    Hi, I have recently purchased Satellite P200-14H. It came with Vista home and since CAD software we use in our company doesn't work on it, we installed WXP on it. Everything works fine, we got the system almost fully functional, installed 99% of the

  • Migrating HL7 interfaces

    Hi B2B/SOA Suite experts, Our company doing migration for all HL7 interfaces ( ADT,MDM,ORM,ORU etc) , EDI interfaces ( X12-> 270,850 etc) and Flat file FTPs from eGate to utilize Oracle Fusion middleware capabilities. I am wondering... a) Are there a

  • The name of the sim is not relevant to the operator please help

    the name of the sim is not relevant to the operator please help...

  • Issues In Reading Attribute Values From Master Data

    Hi All, I have a requirement where, i need to read an attribute value from master data. I have a characteristic YCSTATMCG (AT Cost Group Code) which is the master data from where i have to read the attribute, 0PROFIT_CTR (Profit Center). The attribut