Navigatetourl won't open in same window and in infinite refresh

I have a project that requires a skip button and to go to a specified url in the same window once the animation is complete. The button works, however the navigatetourl in the last frame is not behaving.
Here is the code I've placed in the last frame:
addEventListener(Event.ENTER_FRAME, fl_EnterFrameHandler);
function fl_EnterFrameHandler(event:Event):void
    //Start your custom code
    // This example code displays the words "Entered frame" in the Output panel.
    navigateToURL(new URLRequest("http://www.student.nvcc.edu/home/amlayne/ite170/dreamweaver/graded_assignments/index.html"), "_self");
    stop();   
    // End your custom code
I've tried moving it to an earlier frame, placing a stop in the earlier frame, moving the stop command to after and so on. No matter what I do, the new url opens in a new window and is in a constant state of refresh. I also have the loop turned off but the animation begins to load the first frame again anyway.  Please help. I've tried many fixed listed in forums that are all about the same with no different results.  You can view my animation here: http://www.student.nvcc.edu/home/amlayne/ite170/flash/graded%20assignments/myintro.html
NOTE: You will have to close the browser to get the refresh to stop.
I've been working on this one issue two days and am at a complete loss.

Any thoughts on why my button now won't open in the same window? I'm getting a sense the built in code snippets don't work as they should, or I'm just making silly mistakes. Here's the code:
btnSkip1.addEventListener(MouseEvent.CLICK, fl_MouseClickHandler);
function fl_MouseClickHandler(event:MouseEvent):void
          // Start your custom code
          // This example code displays the words "Mouse clicked" in the Output panel.
navigateToURL(new URLRequest("http://www.student.nvcc.edu/home/amlayne/ite170/dreamweaver/graded_assignments/index.html"), "_self")
          // End your custom code

Similar Messages

  • GetUrl won't open in same window?

    Hello,
    I am creating a website with a flash menu on each page. I am using getUrl code to target each page but I can't seem to get the pages to open in the same window. If I use '_new' or '_blank' the pages open in a new window as they should but if I use '_self' or '_top' nothing happens.
    Any help is much appreciated. Thanks!
    Code: AS3
    aboutBtn.buttonMode = true;
    aboutBtn.addEventListener(MouseEvent.CLICK, callAbout);
    function callAbout(e:MouseEvent):void{
      var url:String = "about.html";
      var request:URLRequest = new URLRequest(url);
      try {
        navigateToURL(request, '_self');
      } catch (e:Error) {
        trace("Error occurred!");

    I think I have the right code this time but it's still not working. I tried it on a Mac and it works fine but it is no working on PC (Windows). Any idea why?
    Thanks,
    Dan
    aboutBtn.buttonMode = true;
    aboutBtn.addEventListener(MouseEvent.CLICK, callAbout);
    function callAbout(e:MouseEvent):void{
        var link:URLRequest = new URLRequest("about.html");
        navigateToURL(link, '_self');

  • Open in same window and clean cache from swf + html file generate with InDesign CS5

    Hi,
    1)
    I have a Indesign web file exported to swf + html.
    In my document I have a button that point to url (this url is html file of a second Indesign swf + html).
    When I click on button, the url was find an open in another window.
    Is it possible to open this second url in the same window?
    If yes How.
    I think this information is in the swf file and not in html.(How modify the swf code?)
    2)
    How to clean the cache when you reload the url? (in the html generate file)
    I'will very please if somebody of you could help me. it's Important for me.
    Regards
    Philippe

    Okay, I found the code but I can't get it to work locally.  If you have a web server maybe you can upload the files (swf and html) after you Publish them:
    import flash.net.URLRequest;
    import flash.events.MouseEvent;
    var myURL:URLRequest = new URLRequest ("http://www.google.com");
    testlink.addEventListener(MouseEvent.CLICK, clickText);
    function clickText(myevent:MouseEvent):void {
    navigateToURL(myURL, "_self");
    you have to have on the stage a link element called "testlink" (see the code above) which would be a Movie Clip with the label testlink.  It can be anything from InDesign:  a button, a rectangle, a circle, a graphic, you get the idea.  Just select that object in Flash and label it testlink or anything you choose but if you change the name from testlink also change the name in the code snippet where the line "addEventListener" is.

  • Pages won't open in same window

    Hello! Total newbie here just getting my feet wet in iWeb.
    Every time I publish, my pages after the home page open in new windows or tabs! How can I have each subsequent page open in the same window? Even "home" on other pages opens a new window! Obviously, this is not how I perceive a website to properly work.
    I do see where you have the option to open a new window when selecting an "External Page" in the Link Inspector. However, I don't see the opposite option when selecting "One of My Pages". Also, I'm not using Mac.com if that has anything to do with it.
    Take a look to see what I mean: http://overcat.net/home.html
    Thanx so much for whatever help anyone can provide.

    Hi Guys. Thanks so much for replying.
    Cedric - I'm in 08. I posted in the 06 forum first by mistake. And I basically don't know "how" I built the site. I just kind of poked around like I usually do, trial by many errors.
    Roddy - I've had the folder and index on my desktop. I hadn't previously uploaded the index and just did so but nothing's changed. My host company doesn't have an actual control panel. I have a feeling it's not a great one. At least for a beginner. Is there anything on their site I should be looking for?
    Cyclo - I hadn't nothiced the Hear button working correctly, since I haven't actually been working there yet! You're right it works. I guess I do have to rebuild the text buttons as you say. I guess this is the down fall of not knowing HTML.
    I really appreciate all the input folks.
    Dave

  • URL - won't open in same window

    Using Excel Engage 2008
    I added a URL button
    selected "window option = Open in THIS WINDOW"
    but when I preview it always opens in another window.
    Any recommendations how to fix this problem?
    thank you,
    Nancy G.

    If you export to HTML/SWF and open the SWF in a web browser, you'll find that the "This Window" option does indeed open to the current tab/browser, and the other opens to a new tab/browser.
    So, it seems the Preview environment does not support HTML browsing and is mostly for verifying the appearance and functionality of a model before sending it off to its production/real use environment.

  • Mail 6.3 will not close and won't open an interactive window

    A day or so ago I tried deleting about 4 messages off mail and then shut the app.  A note came up and stated the messages could not be sent to the delete folder and then proceeded to close the window but the application remained as opened.  I tried to quit the app from the dock but it wouldn't close it.  I then tried shutting the system down and mail stopped it from closing.  I have a Mac Book Pro with Mountain Lion 10.8.3 and tried to let the battery drain to let shut down that way to no avail.  I've tried opening another window in Mail but it won't open a functional window (preview screen will not display highlighted message).  How do I force a close or bring mail back to use it properly?

    Mac OS X: How to quit an unresponsive application using Force Quit

  • HTML and XML files open in same window(KM Navigation iView)

    Hi All,
    I have created a KM navigation which is pointing the folder inside the documents repository. This folder contains HTML and XML files. It is rendering fine. But, when I click on the file links in KM Navigation iView, it is opening in new window.Here I need to open in same window. How can I acheive this?. Please help me.
    Thanks & Regards,
    Venkatesh R

    Hi ,
    check the below thread and try options mentioned in it
    https://www.sdn.sap.com/irj/sdn/thread?threadID=72594
    Koti Reddy

  • I have some trouble with Safari!  Everytime i google something, I expect safari to open the link i click in the same window and same tab - as it did before - but now it always opens a new tab! I'm getting really tired of that! So please help me!

    I have some trouble with Safari! 
    Everytime i google something, I expect safari to open the link i click in the same window and same tab - as it did before - but now it always opens a new tab! I'm getting really tired of that! So please help me! I want safari to open the google search link in the same window and tab! How to fix that?
    Please help me!!!
    Thank you!

    From the Safari menu bar, select
    Safari ▹ Preferences ▹ Extensions
    Turn all extensions OFF and test. If the problem is resolved, turn extensions back ON and then disable them one or a few at a time until you find the culprit.

  • Itunes store won't open.  It tries and then stops. no error messages. I've reinstalled and same thing happens. any ideas?

    itunes store won't open.  It tries and then stops. no error messages. I've reinstalled and same thing happens. any ideas?

    Hi Guys:-
    If this SAME problems is effecting us all then suspect its not IPS problem as we all get problem at 995.6MB.
    I would think that there is some kind of software conflict.  If we all having this problem just think of how many users have the same but are not on this discussion board, bet you its 100s and 100s.
    Not possible for me to visit store now but will monitor your responce's. 
    Good luck guys, lets make um give us a fix:- I will call them tomorrow and see what they say:-  should point support to this Discussion page and they can answer us !
    Cheers and good luck also

  • ITunes won't open on my windows laptop, and it doesn't give any error message, help!

    iTunes store won't open on my windows laptop, no error message given

    Refer to this article to delete SC files:
    iTunes for Windows: Doesn't open after upgrading in Windows Vista or Windows 7
    http://support.apple.com/kb/TS2363
    Then proceed to repair your QuickTime:
    Control Panel  > Programs n Features > highlight Quicktime, click CHANGE then REPAIR

  • How can I use terminal to make links open in same window the default behaviour, as it was in Safari 5.0, How can I use terminal to make links open in same window the default behaviour, as it was in Safari 5.0

    In Lion, the default of pressing a link on a web page, is to open the page in a new tab. In itself, I do like this because this is what I did for 19 out of any 20 links, which I command+clicked in previous Safari versions.
    However, there is a snag to this behaviour. Most (all?) secure site do not like links to be opened in a new tab. For example, when I am doing Web banking, The the linked page doesn’t open in new tab. Rather I get a page telling me my login session is expired. Probably a security measure instituted by my bank.
    I since found out, that a command-click opens lings in the same window. Theoretically that solves the problem, if I would think about this all the time. I don't. Old habits die slowly.
    Is there a terminal command to make links open in same window the default behaviour, as it was in Safari 5.0.

    Hi Eric,
    I got it figured out today, basically you have to load the Parallel Flash Loader first into FPGA ram. It is a special .sof file (pfl_epXXXX.sof) based on your FPGA. Code is actually pretty straight forward, using the Sys Exec VI. Use the windows based programmer to generate the .cdf file that identifies your FPGA, attached Flash and .pof file .
    Syntax was odd going into Sys Exec. Note the extra "C" in in front of the "quartus_prm.exe" I have no idea why that was needed, but I was getting an error until I just happened to put it in there (Blind Luck :-))
    I used a 2 element array going into a four loop
    cmd /cquartus_pgm.exe -c USB-BLASTER -m JTAG -o P;pfl_epXXXX.sof
    cmd /cquartus_pgm.exe -c USB-BLASTER -m JTAG S_FPGA.cdf
    Defining the working director C:\altera\12.1sp1\qprogrammer\bin
    And added match string with "Successfully performed operation" on the output in the loop to make sure everything loaded correctly then adding the array to give me a overall P/F
    To anyone doing this same thing Altera's documentation is poor to say the least. It took most of a week to figure this out Not allowed to upload code, so anyone wanting details just post here and I will try to help. This was painful, with lots of lessons learned.
    Thanks for the interest though
    Best regards John

  • XML Edit Form should open in Same window (Not a popup).

    Hi all,
    I have requirement to open the Edit form in Same window (Not a popup).
    Assign the NewsExplorer Layout the user has edit and delete button. If the user edit the news it should not open in new window.while edit also should open in same window.
    And while creating the news by using Xml form the EDIT form open in new window but i my requirement to open in same window.
    Its possible? How to achieve this? Helpful replies will be appreciated.
    Thanks and Regards
    Thillai J

    Not solved

  • Menubuilder- Open in Same Window?

    I have the advanced link setting for my links as "Open in
    same window." The links continue to open in new windows. Is this
    feature not desinged to launch the files in the same window as the
    menu. Please help. Thanks.

    Hi MissDona
    I'm going to say "it depends". Normally, this is the default
    behavior. But it likely will depend on the output type you are
    creating. For example (and I'm somewhat assuming you fall into this
    category) if you create .EXE output from MenuBuilder, a new
    instance or window always opens, as MenuBuilder packages up the
    Flash Player inside the .EXE. Thus, this version of the player runs
    from a temporary location and has no clue about other movies and
    whatnot.
    Cheers... Rick

  • Itunes won't open, should I remove and reinstall?

    Itunes on windows pc won't open, should I remove and reinstall?  Will I lose my music, etc?

    Microsoft Visual C ++Runtime Library Runtine error E6034
    An application has made an attempt to load the C runtime library incorrectly.  Please contact the application"s support team for more information.
    Many thanks.
    Try the following user tip:
    Troubleshooting issues with iTunes for Windows updates
    Under normal circumstances, an uninstall/reinstall doesn't touch your content. (That being said, it's still always a good idea to maintain a current backup at all times in case of disasters of any sort.)

  • Disabling opening of multiple windows and tabs

    Hi experts,
    do we have any option to disable opening of multiple windows and tabs. Like making end user to use single window browser to do all operations.
    Regards
    Govardan Raj S

    HI Rajendra ,
    Actually if end user access the portal in a browser window , and if he opens another window i.e file->new window --- same portal applications will open in the new window with the same credentials and hence here i should either restrict him or log off the user in both windows.
    Regards
    Govardan Raj

Maybe you are looking for

  • About FILE to IDOC scenario

    Hi Experts, i need some help for doing file to idoc scenario. 1. what are the configurations we must do while doing this scenario? 2. How to communicate with Legacy system to sap system? 3. How to create the business and logical systems for SAP syste

  • Report to display proces order details

    Hi Frnds,   I need to create a report for displaying process order details like process order,  Line (Resource), material, product group,batch and Order movement data (movement type,qty ). I tried to get Item level materials from AFPO..but it contain

  • Tween using dynamic variable

    So I'm a huge supporter of trying to make my code reusable. I'm trying to build a tween with actionscript that I can use on a number of different object, depending on what variable I load into the function. However, I'm having a hard time writing the

  • MyPlugin works fine in AdobeReader-9 but fails in AdobeReader-X(10).

    Hi , The plugin which i created using Acrobat SDK works fine in AdobeReader-9 but it doesnt works as expected in AdobeReader-X. The issues with Reader-X are listed below : 1. MyPlugin doesn't get loaded at the top as the other tollbars , which i was

  • Date and Time Input Validation

    Anyone know a good way to validate date and time that a user is entering on the screen.  Our users want to enter AM and PM time vs. Military time.  Also, since Input fields don't have an "onBlur" command, what are other companies using in java script