Java script button only works once?

I am a novice with JavaScript, but Edge Animate seems like it might be a tool that I can work with. I have created pages using symbols with simple in/out slide animations using  JavaScript.  They are triggered on the buttons with the following code:
sym.stop(4000);
var current = sym.getVariable("current");
if (current != "") {
   sym.getSymbol(current).play("out");
sym.getSymbol("testimPg").play("in");
sym.setVariable("current", "testimPg");
The stage action for compositionready is this;
sym.setVariable("current", "baseAnim");
every page works fine except my testimonial page (testimPg)
The animations work fine for all the other buttons but on the testimonial page it only fire correctly once!?
If you click on other pages and then go back to the testimonial button, it no longer functions properly —the symbol is no longer visible when the testimonial button is clicked!?
Can anybody figure out why this is happening.
here is a link to the page:
http://whelanartdesign.com/web/WhelartDesign0714v4.html
Any help would be grateful
thanks

Thanks for the reply kglad. I've deleted all the button layers in every scenes and created a button layer from frame 1 until the last frame, but I still got this output here that I don't really understand what it means.

Similar Messages

  • Button only works once?

    relatively new to flash, using pro 8 right now. I created a
    movie where there are movie clips that contain buttons. using the
    following actionscript, the button takes me to the frame labeled
    "Button1"
    on (release){
    _root.gotoAndStop("Button1");
    but... it only does it once... after that you can click on it
    all day and nothing happens. There are stops at the end of the
    movie clips and the main timeline so only the specific animation I
    want to loop are looping. I only mention this ebcause I have no
    clue why the button won't work over and over again. thoughts,
    suggestons, hatemail?

    well, it's evolved now... the thing is, I have added multiple
    movie clips which contain buttons... you can click on these buttons
    which are all supposed to take you to that specified frame label.
    they work. click the first one, it takes you to the first frame
    label, click the second one, it takes you to the second frame
    label. and if you click the first one again (after clicking the
    second one) it does indeed take you back to the first frame label.
    so.. my question now is, that it seems that the buttons will
    allow me to go to the frame label... but not reload the same frame
    label they are already on. Is this working as AS2 was designed to
    do?

  • "Post new Topic" button only works once

    Having posted once into the feedback forums, the link no longer does anything. Had to restart the app to post this!

    So... you don't see the "Post a new topic" button?
    Cheers – Marc.

  • Event only works once

    Hi all!
       I'm trying to do a movieclip that has 2 buttons that change the content of a flvplayer.
       The problem is that the buttons only work once, after that the event listener isn't triggered (I think) I have no removeEventListener in my code for those events so I'm totally lost as to why is this happening.
       My code is this:
    stop();
    var correr:Boolean = true;
    Globals.vars.videoP = CM_player;
    SnowManInst.addEventListener(MouseEvent.MOUSE_DOWN, mudarVideo_SM);
    bananaKingInst.addEventListener(MouseEvent.MOUSE_DOWN, mudarVideo_BK);
    addEventListener(MouseEvent.MOUSE_DOWN, pararFilme);
    function pararFilme(e1:MouseEvent){
        trace("pararFilme "+Globals.vars.videoP);
        Globals.vars.videoP.stop();
        correr = false;
        removeEventListener(MouseEvent.MOUSE_DOWN, pararFilme);
        addEventListener(MouseEvent.MOUSE_DOWN, correrFilme);
    function correrFilme(e1:MouseEvent){
        trace("correrFilme");
        Globals.vars.videoP.play();
        correr = true;
        removeEventListener(MouseEvent.MOUSE_DOWN, correrFilme);
        addEventListener(MouseEvent.MOUSE_DOWN, pararFilme);
    function mudarVideo_BK(e1:MouseEvent){
        trace("mudar video BK");
        Globals.vars.videoP.stop();   
        gotoAndStop(2);
    function mudarVideo_SM(e1:MouseEvent){
        trace("mudarVideo_SM");
        Globals.vars.videoP.stop();   
        gotoAndStop(3);
    Any help would be greatly appreciated.

    it's not clear what you're trying to accomplish with that code but there are a few reasons that might fail.
    to starty, you should understand that first a button event is dispatched, then a main timeline event is dispatched (and the main timeline listener toggles between two listener functions) and finally you go to a different frame and any code in the other frame is executed.
    so, that's a pretty screwy setup.  you should remove the main timeline listeners and their functions and it's not clear you need to direct the main timeline to another frame.

  • Iphone 4: Home Button Not Working. The home button only works when it is connected to iTunes, once i disconnet it does not work, i have tried a restore to factory settings but it still is not working. Any suggestions?

    iphone 4: Home Button Not Working. The home button only works when it is connected to iTunes, once i disconnet it does not work, i have tried a restore to factory settings but it still is not working. Any suggestions?

    Apple, as I said, does not repair your iPhone. All hardware service issues are handled by replacing the unit. So they can't handle the home-button issue without also addressing the issue of the cracked screen, for which they'll almost certainly charge you. But you can make an appointment at an Apple Store or call Apple tech support and plead your case.
    Regards.

  • JCOM only works once

    I have a web application that was originally developed using J-Integra
    1.5.3 -- it works great in tomcat 4.1, and the classes themselves can
    also be tested/exercised outside of tomcat, where they work perfectly
    as well.
    Now that the application is mostly finished with development, we want
    to deploy this to our BEA Weblogic 8.1 servers. The problem
    is that, after turning on JCOM, and removing the external jintegra
    jars (using only the weblogic versions now), I can get the app to
    work properly exactly once after startup. That is, I can start
    Weblogic, load the JSP page I use as a tester in my browser, and it
    works as it should. If I hit the refresh button, I get a
    RuntimeException like this:
    java.lang.RuntimeException:
         at com.linar.jintegra.StdObjRef.invoke(StdObjRef.java:55)
         at com.linar.jintegra.Dispatch.vtblInvoke(Dispatch.java:763)
         at jsp_servlet.__index._jspService(__index.java:181)
         at weblogic.servlet.jsp.JspBase.service(JspBase.java:33)
         at
    weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(Servle
    tStubImpl.java:1053)
         at
    weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
    :387)
         at
    weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
    :305)
         at
    weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(W
    ebAppServletContext.java:6291)
         at
    weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubjec
    t.java:317)
         at
    weblogic.security.service.SecurityManager.runAs(SecurityManager.java:97)
         at
    weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletCo
    ntext.java:3575)
         at
    weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java
    :2573)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:178)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:151)
    I also see this in my weblogic logs:
    <Jul 8, 2003 2:14:05 PM EDT> <Error> <COM> <BEA-210000> <100680] *: >
    and thats all the information I get.. I have tried to crank up the
    jintegra logging as high as I can (using both "
    com.linar.jintegra.Log.logImmediately(3, "c:\\temp\\jintegra.log");
    " in the constructor, and by supplying
    "-DJINTEGRA_LOG_FILE="c:\temp\jintegra2.log" -DJINTEGRA_LOG_LEVEL=3"
    on the startup line for weblogic, but gotten only as far as
    c:\temp\jintegra.log being created.. no contents in it, and
    jintegra2.log (the one created from the command line) isnt created at all.
    so, I am at a loss... it does work once, and I absolutely no
    information as to why it fails after that first time. Any ideas would
    be appreciated. thanks.

    not sure exactly why it would only work once, but I
    personally dont like using a listener for simple button actions.
    If it were me, i would just use standard button actions and
    make the caption fade in and out with an alpha tween.

  • Java Script doesn't work on Firefox 8?

    I have noticed that (some) Java Script does not work on Firefox 8.0. Is there a correction for this?

    Yep, go back to what works, appears to be the only real solution. But then you'd hardly be able to use Firefox as nothing is going to get fixed there only get broken.
    What does not work is
    # move, and resize of main window not allowed
    # that include wiping out a lot of keyword shortcuts that do that
    # various additional collateral damage
    The solutions (work arounds) that I can best offer are clumsy but can be found in
    * http://kb.mozillazine.org/Resizing_oversize_window#JavaScript_no_longer_allowed_to_resize_windows

  • My AS3 buttons only work the first time

    I have set up my buttons so that are each a movieclip with 'over' and 'out' states/frame labels. They exist on the main timeline. The actionscript controlling them is situated in a frame on the main timeline and the frame holding that actionscript is on the same point within the main timeline where the buttons are introduced. I am using actionscript 3.
    The buttons have been set up so that they navigate to another frame on the same main timeline and on that frame is a movie. The movie dimensions are smaller than the main stage so the buttons are still accessible when each movie is played.
    The problem is my buttons are only working once - by that I mean they go to the correct place when clicked the first time, but when they are clicked again they navigate elsewhere.
    Totally doing my head in trying find a solution and if anyone can help and show me what I'm doing wrong that would be really really helpful. Here's the code I used for the buttons...
    stop();
    function mainBtnOver(event:MouseEvent):void {
    event.target.gotoAndPlay("over");
    function mainBtnOut(event:MouseEvent):void {
    event.target.gotoAndPlay("out");
    ///////// INDIVIDUAL BUTTON CLICK FUNCTIONS
    function mainBtn1Down(event:MouseEvent):void {
    gotoAndPlay("01Movie");
    function mainBtn2Down(event:MouseEvent):void {
    gotoAndPlay("02Movie");
    function mainBtn3Down(event:MouseEvent):void {
    gotoAndPlay("03Movie");
    function mainBtn4Down(event:MouseEvent):void {
    gotoAndPlay("04Movie");
    function mainBtn5Down(event:MouseEvent):void {
    gotoAndPlay("05Movie");
    ////////// Button 1 Listeners
    mainBtn1.addEventListener(MouseEvent.ROLL_OVER, mainBtnOver);
    mainBtn1.addEventListener(MouseEvent.ROLL_OUT, mainBtnOut);
    mainBtn1.addEventListener(MouseEvent.CLICK, mainBtn1Down);
    ////////// Button 2 Listeners
    mainBtn2.addEventListener(MouseEvent.ROLL_OVER, mainBtnOver);
    mainBtn2.addEventListener(MouseEvent.ROLL_OUT, mainBtnOut);
    mainBtn2.addEventListener(MouseEvent.CLICK, mainBtn2Down);
    ////////// Button 3 Listeners
    mainBtn3.addEventListener(MouseEvent.ROLL_OVER, mainBtnOver);
    mainBtn3.addEventListener(MouseEvent.ROLL_OUT, mainBtnOut);
    mainBtn3.addEventListener(MouseEvent.CLICK, mainBtn3Down);
    ////////// Button 4 Listeners
    mainBtn4.addEventListener(MouseEvent.ROLL_OVER, mainBtnOver);
    mainBtn4.addEventListener(MouseEvent.ROLL_OUT, mainBtnOut);
    mainBtn4.addEventListener(MouseEvent.CLICK, mainBtn4Down);
    ////////// Button 5 Listeners
    mainBtn5.addEventListener(MouseEvent.ROLL_OVER, mainBtnOver);
    mainBtn5.addEventListener(MouseEvent.ROLL_OUT, mainBtnOut);
    mainBtn5.addEventListener(MouseEvent.CLICK, mainBtn5Down);
    I'm sure it's me doing something very stupid - I'm very new to AS3. Any help much appreciated.
    Thanks :-)

    If the frame labels you are going to have movie clips that have your presentation content, you should use gotoAndStop("frameLabel") instead of gotoAndPlay("frameLabel"). There's no need to play the main timeline when you go to and show any of these movie clips. I'm not sure if this is your issue, though... Using your code, I had no problems.
    Also, you can set up your animated buttons in a way that eliminates the need to have your ROLL_OVER and ROLL_OUT events. This isn't necessarily better, but just another method. Although I might use other ways to animate a button, I do like to reduce the code it takes to use the buttons in an interface, and only use CLICK in most cases.

  • Pinch zoom-in/out only works once in Safai

    Outside of Safari, the pinch gesture works normally. In Preview it will zoom in or out as deep as I need. But when I try and use the gesture in Safari, it will only work once until I 'CMD' + '0' or click "Actual Size" in the View tab. It doesn't zoom on a gradient either. Pinch-open is the equivalent of 'CMD' + '+' and pinch-close is the the equivalent of 'CMD' + '-'. After I make the gesture once, I can pinch all I want and nothing happens. I need to revert the page to its original size for the gesture to work again (still only once).
    I have an i7 Macbook Pro running 10.6.8. Can anybody help me out?

    Sorry, I didnt do a good enough job explaining my issue/bug above. I can't attach a screen shot becuase of where I work and what this content is so I will do the best I can explaining it in text.
    I have a row of buttons created in InDesign that have no effects, no rollovers and lets just call them Apple In, Apple Out, Orange In, Orange Out, Banana In, Banana Out, etc.
    The Apple In button invokes an animation called Apple Fade In. Apple Out simply fades out the content animation. All of the other buttons function the same way. In my exported .swf I can click Apple In and I get my content as expected, I click Apple Out and away it goes. All other buttons work the same way, as expected. If I go through all my fruit and now I want to go back and display the Apples again. I click Apple In and NOTHING happens! If I click Apple Out the fade out animation works just fine, as many times as I want to click it, I get a flash of the content and it fades right out. The "In" buttons no longer work for any of the fruit after the initial "In" animation plays.
    In the Animation Panel I have the animations set to Play Once and Dont Hide. In the Layers Panel I have a layer called Apple Fade. In that Layer Group/Set I have Apple Fade Hack which consists of a native ID square no stroke and no fill grouped with my Apple content on "the stage." Also in that Layer Group/ Set is a collection of bitmap images, text, and vectors called Apple. I created the content first on a layer Apple, when I created the group with the blank square ID bumped the original content group under the parent layer and added another sub-layer called Apple Fade Hack. These two are indented and under the top level Apple Layer. I could probably get away with attaching a screen shot of the timing, layer, and animation panels if I had to.
    Thanks

  • Java script is not working in custom tabular form

    hai all,
    i have changed my built in tabular form to custom tabular form.my java script is coding working fine in built in tabular form . But in my custom tabular form java script is not working ,since it is created as standard report(Display As).
    pls help me.
    with thanks and regards
    sivakumar.G

    Is the appostrophe function test(pthis) *'* present in your javascript code...
    If not can you post the same in apex.oracle.com and give the credential so that I can the why its not wroking
    Regards,
    Shijesh

  • Back button only works about 50% of the time. Have to hit it twice, sometimes three times before it works. Problem is intermittent. Firefox 3.6.10 on Mac OS 10.6.4 (same on both MacBook and iMac machines).

    Back button only works about 50% of the time. Have to hit it twice, sometimes three times before it works. Problem is intermittent. Firefox 3.6.10 on Mac OS 10.6.4 (same on both MacBook and iMac machines).

    You can try http://kb.mozillazine.org/Bookmarks_history_and_toolbar_buttons_not_working_-_Firefox

  • Command Windows.open only works once

    Hi all,
    Iu2019m using javascript command window.open to open a new browser window from a html link webui and is working fine.
    The issue I have is this only works once. If you close the window that you had opened, and click again in the link it doesnu2019t work. It only works if you call another link before. It seems there is a kind of cache in somewhere.
    Do you have any idea?
    Thanks in advance.
    Fernando.-

    Fernando,
      Change ur mywindow name every time.Kindly go through following code. 
    CALL FUNCTION 'GENERAL_GET_RANDOM_STRING'
      EXPORTING
      number_chars        = 3
      IMPORTING
      RANDOM_STRING       = mywindow
    var lr_window;
    lr_window = window.open("<%= lv_id%>","<%= mywindow%>","resizable=1,width=1100,height=674,fullscreen=yes");
    if (window.focus)
    {lr_window.focus()}
    lr_window.moveTo(0, 0);
    <%
      clear lv_id.
    %>
    <%-- delete lv_window; --%>
    <%-- mywindow.close(); --%>
    <%
      endif.

  • My home button only works occasionally. Has anyone had this problem? Solution?

    my home button only works occasionally. Has anyone had this problem? Solution?

    Fix a broken, unresponsive or sticky iPhone Home Button

  • Add Comment button only works on .mac domain

    I have a personal domain through Apple, and the add comment button only works when i go to my .mac domain. When I go through my personal domain it says error!

    Yep.
    Those needed files are not served by your iDisk. They are served using Apple servers and only work for .Mac (iDisk) accounts.

  • Hi my lock button only works sometimes on my iphone 5 , could this be because i have not updated to ios 7 yet

    hi my lock button only works sometimes on my iphone 5 , could this be because i have not updated to ios 7 yet, thanks for the help!

    No.
    You're welcome.

Maybe you are looking for