Buttons does not always work

Hello everyone,

I created a new Web site for someone, and I use two SWFs that are connected to each other using LocalConnection.

Everything seems to work fine... It's just that the buttons on the bottom of the page sometimes randomly stop working. It does not seem to trigger a connection to the other swf file.

The site is in Dutch and is in a temporary folder:
http://www.Rijschool-risdam.nl/Nieuw/index2.htm

The buttons on the bottom of the page uses code attached to this message.

The other SWF file uses:

incoming_lc = new LocalConnection();
incoming_lc.methodToExecute = {function (param)}
gotoAndPlay (param);
};
incoming_lc. Connect ("LC_NAME");



My question is, what can cause this random problem?

If you visit the site and click on a few buttons, after a short time, you'll see what I mean.

I'm new to actionscript... don't sue me if its something stupid ;)

I don't see anything that would cause your script will not work (and I can't reproduce an issue by clicking on the buttons several times on your website).

but the coding might be listening.

1. it is not necessary to instantiate (or create) then delete outgoing_lc: instantiate once on the timeline and do not delete it.

2. use the methods _root.goto and NOT the goto function:

incoming_lc = new LocalConnection();
incoming_lc.methodToExecute = {function (param)}
_root.gotoAndPlay (param); assuming it's the _root timeline you want to run
};
incoming_lc. Connect ("LC_NAME");

Tags: Adobe Animate

Similar Questions

  • Pause slide show button does not always work

    Hi all..

    I have a slide show with 3 sections. The slide show automatically loop and when to be invited by a button to go to a particular section. I also added a play/pause button that works at the start, however, when clicked on one of the buttons to go to another section, the resumes of slideshow in loop...

    I guess I need to check the weather button is clicked the pause to resume / or not resume the slide show... but I can't find a way to do it. Any help would be great appreciated! -Thank you very much advance! Here is the code:

    Import fl.transitions.Tween;
    Import fl.transitions.TweenEvent;
    Fl.transitions.easing import. *;

    Timer
    var tl:MovieClip =;
    var slideDuration:uint = 12000; / / or use everything which
    var slideTimer:Timer = new Timer(slideDuration,0);
    slideTimer.addEventListener (TimerEvent.TIMER, autoAdvanceF);

    var previousBtn:SimpleButton;

    go_btn.addEventListener (MouseEvent.CLICK, startPlaying);
    pause_btn.addEventListener (MouseEvent.CLICK, stopPlaying);


    var btnA:Array = [one_btn, two_btn, three_btn];

    go_btn. Visible = false;

    function autoAdvanceF(e:TimerEvent):void {}
    nextButtonF (previousBtn) .dispatchEvent (new MouseEvent (MouseEvent.CLICK));
    }

    function nextButtonF(btn:SimpleButton):SimpleButton {/ / use the class of your buttons type}
    for (var i: uint = 0; i < btnA.length; i ++) {}
    If (btnA [i] == btn) {}
    return btnA [(i+1) % btnA.length];
    }
    }
    Returns a null value.
    }

    Load external SWF into the hand
    var Xpos:Number = 0;
    var Ypos:Number = 0;
    var loaderA:Array = [];

    Inclinometer universal function (whenver no matter which button is clicked, the charger will be deleted

    function stopPlaying(event:MouseEvent):void {}

    slideTimer.stop ();
    go_btn. Visible = true;
    pause_btn. Visible = false;
    }

    function startPlaying(event:MouseEvent):void {}

    slideTimer.start ();
    go_btn. Visible = false;
    pause_btn. Visible = true;
    }

    function btnClick(event:MouseEvent):void {}

    slideTimer.reset ();
    slideTimer.start ();

    previousBtn = SimpleButton (event.currentTarget);

    var loader: Loader = new Loader();
    loaderA.push (loader);

    var newSWFRequest:URLRequest = new URLRequest ("SWFs /" + event.target.name + ".swf");
    loader.contentLoaderInfo.addEventListener (Event.COMPLETE, loadComplete);

    Loader.Load (newSWFRequest);
    Loader.x = Xpos;
    Loader.y = Ypos;
    Loader.Alpha = 0;
    addChildAt (loader, 0);
    }

    var tween: Tween;
    function loadComplete(e:Event):void {}
    for (var i: int = loaderA.length - 2; i > = 0; i--) {}
    TL ["tween_" + i] = new Tween (loaderA [i], 'alpha', None.easeIn, loaderA [i] .alpha, 0, 1, true);
    TL ["tween_" + i] .addEventListener (TweenEvent.MOTION_FINISH, onMotionFinish);
    //
    }

    e.target.loader.contentLoaderInfo.removeEventListener (Event.COMPLETE, loadComplete);
    Tween = new Tween (e.target.loader, "alpha", None.easeIn, 0, 1, 1, true);
    }

    function onMotionFinish(e:TweenEvent) {}
    Loader (e.Target.obj). Unload();
    removeChild (e.target.obj);
    loaderA.splice (loaderAIndex (Loader (e.target.obj)), 1);
    e.Target.obj = null;
    }

    function loaderAIndex(loader:Loader):int {}
    for (var i: int = 0; i < loaderA.length; i ++) {}
    {if(loaderA[i]==Loader)}
    Return i;
    }
    }
    Returns - 1;
    }


    Button Listerners
    one_btn.addEventListener (MouseEvent.Click, btnClick);
    two_btn.addEventListener (MouseEvent.Click, btnClick);
    three_btn.addEventListener (MouseEvent.Click, btnClick);



    btnA [0] .dispatchEvent (MouseEvent (MouseEvent.CLICK)) of new;

    No, just use a variable to determine if the pause button has been pressed, or you can use the visible property of your pause_btn

    Import fl.transitions.Tween;
    Import fl.transitions.TweenEvent;
    Fl.transitions.easing import. *;

    Timer
    var tl:MovieClip =;
    var slideDuration:uint = 12000; / / or use everything which
    var slideTimer:Timer = new Timer(slideDuration,0);
    slideTimer.addEventListener (TimerEvent.TIMER, autoAdvanceF);

    var previousBtn:SimpleButton;

    go_btn.addEventListener (MouseEvent.CLICK, startPlaying);
    pause_btn.addEventListener (MouseEvent.CLICK, stopPlaying);


    var btnA:Array = [one_btn, two_btn, three_btn];

    go_btn. Visible = false;

    function autoAdvanceF(e:TimerEvent):void {}
    nextButtonF (previousBtn) .dispatchEvent (new MouseEvent (MouseEvent.CLICK));
    }

    function nextButtonF(btn:SimpleButton):SimpleButton {/ / use the class of your buttons type}
    for (var i: uint = 0; i
    If (btnA [i] == btn) {}
    return btnA [(i+1) % btnA.length];
    }
    }
    Returns a null value.
    }

    Load external SWF into the hand
    var Xpos:Number = 0;
    var Ypos:Number = 0;
    var loaderA:Array = [];

    Inclinometer universal function (whenver no matter which button is clicked, the charger will be deleted

    function stopPlaying(event:MouseEvent):void {}
       
    slideTimer.stop ();
    go_btn. Visible = true;
    pause_btn. Visible = false;
    }

    function startPlaying(event:MouseEvent):void {}
       
    slideTimer.start ();
    go_btn. Visible = false;
    pause_btn. Visible = true;
    }

    function btnClick(event:MouseEvent):void {}
    //////////////////////////////////////////////////////////////////

    {if (pause_btn.visible)}
    slideTimer.reset ();
    slideTimer.start ();
    }

    ///////////////////////////////////////////////////////////////////

    previousBtn = SimpleButton (event.currentTarget);
     
    var loader: Loader = new Loader();
    loaderA.push (loader);
     
    var newSWFRequest:URLRequest = new URLRequest ("SWFs /" + event.target.name + ".swf");
    loader.contentLoaderInfo.addEventListener (Event.COMPLETE, loadComplete);

    Loader.Load (newSWFRequest);
    Loader.x = Xpos;
    Loader.y = Ypos;
    Loader.Alpha = 0;
    addChildAt (loader, 0);
    }

    var tween: Tween;
    function loadComplete(e:Event):void {}
    for (var i: int = loaderA.length - 2; i > = 0; i--) {}
    TL ["tween_" + i] = new Tween (loaderA [i], 'alpha', None.easeIn, loaderA [i] .alpha, 0, 1, true);
    .addEventListener (TweenEvent.MOTION_FINISH, onMotionFini HS) TL ["tween_" + i];
    //
    }
    e.target.loader.contentLoaderInfo.removeEventListener (Event.COMPLETE, loadComplete);
    Tween = new Tween (e.target.loader, "alpha", None.easeIn, 0, 1, 1, true);
    }

    function onMotionFinish(e:TweenEvent) {}
    Loader (e.Target.obj). Unload();
    removeChild (e.target.obj);
    loaderA.splice (loaderAIndex (Loader (e.target.obj)), 1);
    e.Target.obj = null;
    }

    function loaderAIndex(loader:Loader):int {}
    for (var i: int = 0; i<>

    {if(loaderA[i]==Loader)}
    Return i;
    }
    }
    Returns - 1;
    }


    Button Listerners
    one_btn.addEventListener (MouseEvent.Click, btnClick);
    two_btn.addEventListener (MouseEvent.Click, btnClick);
    three_btn.addEventListener (MouseEvent.Click, btnClick);



    btnA [0] .dispatchEvent (MouseEvent (MouseEvent.CLICK)) of new;

  • I have published my new folio to an existing application on the app store and made public, but is not in the app store? The notify button does not always take me back to the Organizer screen producer folio.

    I have published my new folio to an existing application on the app store and made public, but is not in the app store? The notify button does not always take me back to the Organizer screen producer folio.

    Hello

    first of all a new folio you post of DPS, the folio will not appear in the App Store, but in the library of the application.

    If this is not the case:

    1 make sure that you have published the folio under the same account that you used to create the Viewer.

    2 - Make sure that you have used a product ID unique for this folio

    3. If the Notify button does not work, note that this feature is available for viewers of enabled notification

    Check whether or not you have the Notification turned on in the dashboard section, otherwise it is likely that this account is not the Application role are entrusted to him... which brings back us to the point #1

  • HP Pavilion x 360: micro does not always work

    Hello!

    I recently had problems with my microphone, which does not always work when using Skype. What is strange, is that sometimes it works perfectly, while other times that it is impossible for the other person to hear me. There is nothing wrong with the Wi - Fi connection while... Any ideas of what could be the problem?

    Hi @katarint ,

    Thank you for visiting the Forums HP's Support and welcome. It's a great site for information and questions. I looked in your question about your HP Pavilion 360 and problems with the microphone and Skype fading out or does not. Hereis a link to download a new version which may help to solve the issue of the gradual estrangement. Please uninstall your current version and restart your computer before installing the new version.

    Here is a linkto Skype help under technical questions.

    I hope this helps.

    Thank you.

  • Why does Firefox always minimize/resize? Using F11 is a spotty solution that does not always work

    Firefox won't always minimize or resize. The upper right just vibrates. Searching through forums, I found that using f11 can help, but it does not always work. Often I have to restart.

    This has happened

    Don't know how many times

    Is a year before, perhaps

    Problem occurred during the simultaneous use 3.5.9 and 3.5.10 (now). I use Vista. Right-click menu options do not appear often. Firefox often stops responding and then crashes shortly after that starts the pulse. It is a major issue.

  • Hyperlink navigation does not always work

    I decided to use a bar of hyperlink pinned for navigation on my site and it works for the first round of the navigation / click, but if I try to click on the site a second time the hyperlinks do not work. Unless - I will return to my logo which is a redirect to the home page and then they work again, but only for a round of click. Here is the link to my site. I have also attached screenshot of how I have the implementation of hyperlink.

    Any ideas what is ahppening here?

    http://httppitchedmediabusinesscatalystcom.BusinessCatalyst.com/index.html#home

    Screen shot 2013-05-07 at 10.52.51 AM.pngScreen shot 2013-05-07 at 10.53.20 AM.png

    Seems to work ok for me in mac Safari.

    Often, when there is a problem with the hyperlinks does not always work, it's because there is an object that is located on the navigation. In Muse, open your page in design creation and "select all." See if there is a block of text empty big or rectangle off the coast to the right somewhere which will overlap your menu when you scroll. If so remove it or move behind the menu.

  • Windows Explorer "option remove from this list" DOES NOT always WORK

    In Windows 7:
    When you right-click the Windows Explorer button at the bottom of the screen on the task bar, it has an option to "remove from this list. all Frequent ' point/place' that there are listed...

    I used this option during most of the items listed to clean a little bit because I don't want to see it all.

    BUT:
    I have now six items/places to the left.  I want three of them to stay.  I would like to 'Remove' the other three, but the option "Remove from this list" DOES NOT WORK!

    I tried:
    -Manually remove items/locations...   Always in the list.  So I put them back
    -Search for places objects in a windows search to see if they appeared in a file list somewhere that I could remove a manually.  No foumd.

    HOW to REMOVE THESE UNWANTED ITEMS/LOCATIONS in the list of Windows Explorer?

    Thank you.   -TomE

    NOTE: A second problem is that I couldn't use a sign less "-" to exclude elements of my research, when I used Windows Search.  I tried to use '-internet "to exclude references to Internet Explorer.  It did not work.  There for me in the past.

    Hello

    Right-click the Start button, and then select Properties.

    In the privacy section, remove the check mark from the option "store and displayrecently open items in the Start Menu and the taskbar" . CLIck apply/OK.

    Check the list of shortcuts in Windows Explorer and recent items section should be empty.

    Go back and re - activate this option.

    NOTE: this procedure will empty all the list Jump list recent items as well as the recent items on the Start Menu.

    I hope this helps.

    Thank you for using Windows 7 Ronnie Vernon MVP

  • Auto-Sync does not always work

    I use the function of automatic synchronization for a long time, but recently, I have noticed that sometimes it works and sometimes not, all in the same project. I checked to make sure that the Auto-Sync button has been checked and there, but it is not ALWAYS highlight the heading in the table of contents. Anyone know why this is happening, or better yet, how to fix?
    Thank you.
    Donna

    Rick,

    Thank you very much! It worked!

    Donna

  • E-mail rule does not always work.

    I have attached a copy of this message and the State which must have managed to get rid of it. If I change the rule and apply it, it works, but tomorrow if I get a similar message, the rule does not work. What's wrong?

    Thank you, Fred

    Try to delete the order and leave just the command Delete.  Back up e-mail in the junk mail folder in the Inbox and use the menu option Message ➙ apply rules to see if that solves it.

  • Screen saver does not always work

    My screen saver works sometimes and sometimes not.  What can be the problem?

    Hi RandyGarner,

    1. did you of recent changes on the computer?

    2 when was the last time it was working fine?

    3. the problem occurs with all the screensavers on the computer?

    4. you receive an error message when the screen saver does not work?

    Method 1

    I suggest that you change desktop theme and then check if the screen saver works.

    Change desktop theme

    http://Windows.Microsoft.com/en-us/Windows-Vista/change-desktop-theme

    Method 2

    If the previous step fails, then I suggest that you install the updated drivers for the graphics card on the computer by visiting the card manufacturer's Web site and check if it helps.

    Updated a hardware driver that is not working properly

    http://Windows.Microsoft.com/en-us/Windows-Vista/update-a-driver-for-hardware-that-isn ' t-work correctly

     

    See also the below Microsoft article and try the steps mentioned if you have recently installed a wireless computer pointing device.

    The screen saver does not start after the installation of a wireless pointing device

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

    I hope this helps!

    Halima S - Microsoft technical support.

  • First research of 2015 CC does not always work. For example, it will find all items that contain 'Toronto', but not all items that contain "Arnold".

    It's very mysterious. I did every step several times. I type in a single word that I know for sure watch upwards in multiple file names. Sometimes it gives me all the relevant results, sometimes it gives me no result at all. I double checked to make sure that I was looking for all the metadata. I checked, to be sure, I was typing in the correct spelling.  The only thing I changed in all cases is the word that I type in the search box. Here's what's worked and what didn't.

    Has worked:

    Toronto

    1996

    Claude

    Claes

    Proj

    Poster

    Strachan

    Pop

    Does not work:

    Arnold

    REPAR

    Adler

    Noona

    Opening

    Case No.

    Frank

    Œuvres for some files but not others:

    Wave

    I think that those who are not displayed is those where I've added something to the file name in the first, but why whatever? Is there a way around it?

    I'm on Mac OSX El Capitan v10.11.1 on a Mac Pro (end 2013) 3.7 GHz Quad - Core Intel Xeon E5 with 32 GB of RAM

    If you think this is a bug:

    Feature request/Bug Report Form

  • AF:serverlistener does not always work

    Hello.

    My clientListener still works fine, but serverListener is not, it works from time to time.

    The clientlistener code:

    < af:clientListener type = "load" method="yyy.zzz.xxx"/ >

    The serverlistener code:

    < af:serverListener type = "MapSizeListener" method = "#{MViewer.xyz}" / >

    ClientListener calls the javascript method, which queue an event on the server side.

    Partial method code:

    var event = source? event.getSource (): AdfPage.PAGE.findComponentByAbsoluteId ('d1');

    If {(source)

    AdfCustomEvent.queue (source, "MapSizeListener", {width: w, height: h}, true);

    If {(event)

    Event.Cancel ();

    }

    }

    ServerListener works fine, when I run my app in the browser with own cache and in some other cases.

    System Properties

    Windows 7 Ultimate

    JDeveloper 12 c

    WebLogic Server 12.1.2

    I don't have this problem in JDeveloper 11 g

    Try to use the client-side save instead of the State Server record by setting the value of javax.faces.STATE_SAVING_METHOD in the Web.XML to the client-side.
    If it does not help, check the properties of your adf document, where the StateSaving property should be replaced by customer.

  • Cp6 - Bug? Definition of the name of the slide does not always work

    At first I thought that I made a mistake when I noticed that the slide name did not (and returned to the default value or anything that was already there).

    I learned that I should click outside the name box to 'set' the name of the slide. However, I now notice that set a name for the slide doesn't always work, despite all efforts.

    To get a name of the slide to 'stick', sometimes I have to click on another slide, then go back and repeat the steps.

    Everyone has noticed this in 6 Captivate?

    Is - more coherent if you change the label of the slide, and then press ENTER.

  • TIP does not always work as I hope...

    Hello

    I'm not familiar with HINT of Oracle, so pls excuse me if the question below is stupid. :)

    Oracle 11g,
    create table ASSET_FEE
    (
      ASSET_ID    NUMBER(9) not null,
      FEE_TYPE_ID NUMBER(9) not null,
      DATA_DATE   DATE not null,
      FEE         NUMBER(23,7),
      FEE_PCT     NUMBER
    );
    -- Create/Recreate primary, unique and foreign key constraints 
    alter table ASSET_FEE
      add constraint ASSET_FEE_PK primary key (ASSET_ID, DATA_DATE, FEE_TYPE_ID);
    -- Create/Recreate indexes 
    create index ASSET_FEE_INDX_Q1 on ASSET_FEE (FEE_TYPE_ID, FEE_PCT, ASSET_ID, DATA_DATE);
    create index ASSET_FEE_INDX_Q2 on ASSET_FEE (FEE_PCT);
    And there are about 7 million rows in this table,
    SELECT MIN(FEE_PCT) min,MAX(FEE_PCT) max FROM ASSET_FEE
    ...
    --TABLE ACCESS FULL
    
    SELECT /*+ INDEX_FFS(ASSET_FEE ASSET_FEE_INDX_Q1)*/MIN(FEE_PCT) min,MAX(FEE_PCT) max FROM ASSET_FEE
    ...
    --INDEX FAST FULL SCAN
    
    SELECT /*+ INDEX_FFS(ASSET_FEE ASSET_FEE_INDX_Q2)*/MIN(FEE_PCT) min,MAX(FEE_PCT) max FROM ASSET_FEE
    ...
    --TABLE ACCESS FULL
    Why the INDICATOR does not work in the 3rd sql? does anyone have an idea?

    Thanks in advance.

    The bases that for Oracle to use Index Fast Full Scan the column must be defined as NOT NULL. But your column is not defined as NOT NULL in the second index. This is why oracle does not use the Index.

    You can read about it in the paper

    http://download.Oracle.com/docs/CD/B28359_01/server.111/b28274/optimops.htm#i52044

  • Tecra A2 - Touchpad does not always work

    The touchpad works when it feels like it! The pressure makes no difference, and the buttons are fine.

    I need to swap out or is there another problem?

    Hey,.

    Have you tested an external mouse? If this is not you should do this and test it again.

    In addition, you must update the driver for the touchpad. You can download the latest version on the Toshiba site. :)

Maybe you are looking for

  • How can I remove my outgoing emails facebook picture?

    The people I send emails to tell me that my Facebook photo is now attached to the email they receive.

  • TV out button does not work on my Satellite Pro M30

    Hello I installed Windows XP SP2 and all drivers for M30 but the "TV out" button does not work although I have also installed the tool "Controls Button from Toshiba" (continues to ask to be assigned to a program), it worked before installing the new.

  • paper crumples and streaks of black ink on photosmart 7510e

    My printer of 4 days older 7510e replacement sent to me by HP to replace my old month new printer begins to crumple paper and put streaks of black ink on paper, can't believe she needs to head print cleaned up already, how to do this properly.windows

  • serious problems Server 2003 admin account is disabled

    Hello We have Server 2003 it is online, everyone is our floor works in this field, he had a 2 admin account, 2 admin accounts has been locked. We have only a user account assigned to the user group policy is not anything, drive c, it is limited help

  • Some USB devices show device in Device Manager unknown

    When I plug a deive flash or a WIFI usb adapter into my usb 2.0 port, I get an "unknown device" in Device Manager. The functions of port with a mouse wireless usb mouse and a rumor 2 phone. The problem started when an Ipod shuffle has malfunctioned w