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');

Similar Messages

  • 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

  • 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

  • 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

  • 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

  • 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 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

  • ITunes won't open and a Windows error message pops up

    I downloaded iTunes 10.2.2.12 awhile ago.  It worked fine the first time.  Ever since then, whenever I plug in my ipod, my laptop recognizes and says it's syncing but iTunes won't open.  I double click on iTunes and I get an error message from Windows saying that an error has occurred and it needs to close iTunes but it never even opens up.  (The message doesn't give any error codes.)  I've tried completely uninstalling iTunes and all its components and then reinstalling it but I get the same error message.  I have Windows XP 2002 Home Edition SP 3.  Please help.  Thanks.

    Many thanks.
    Yes, it is an "iTunes has encountered a problem" error.  The ModName: dnssd. dll        The ModVer: 2.0.5.0     Offset: 0000246c
    With that one, by way of experiment, let's try disabling your Bonjour Service.
    In your Start menu, right-click My Computer and select "Manage".
    Expand "Services & Applications".
    Open "Services". (Perhaps maximise the screen to better see what's going on.)
    Right-click the Bonjour Service and select "Properties".
    In the General tab, set the Startup type to "Disabled":
    ... and click OK.
    Restart the PC and try launching iTunes again. Does it launch properly this time?

  • Can't get URL to open in same window

    I am using Flash ActionScript3 - My banner has 3 images, each
    displays for ~5 seconds. I have each image linked to a web page
    with more info about each image. The problem is that I can't get
    the URLs to open in the same window! Each click opens another
    browser window. All attempts to resolve this using suggestions
    found in my googling for the answer results in error messages. Any
    help would be greatly appreciated!
    Here's my script for one of the images:

    In getURL you had a method parameter _self, look URLRequest
    definition in Flash help to see if it receives a similar parameter.
    _self is for link to open in same browser window, _blank is used
    for a new window.

  • Force Flash weblink to open in SAME window as movie

    I'm using Adobe Encore CS4 to create a project that I want to export to Flash. However, I want one of my menus to be replaced by a web site.
    The goal is to have a flow such that:
    Menu 1.
    <User Clicks Item #1>
    Timeline plays
    user is forwarded to a website
    I have implemented this as follows:
    Menu 1.
    Button 1 --> Timeline --> Menu 2
    on menu 2, I set the description to:
    <weblink href="webpage.html">
    as suggested in the manual.
    This works, apart from the fact that after the timeline ends, the flash movie goes black, and a new window is opened with webpage.html (which is blocked by popup blockers unless specifically allowed).
    What I would like is for webpage.html to be opened in the same window, so that the flash movie is no longer visible.
    I have tried modifying the description field to
    <weblink href="webpage.html" target="_self">
    but it doesn't help. In the generated AuthoredContent.xml, I've tried changing the <action> item:
    <Action type='Link' url='webpage.html'>
    to:
    <Action type='Link' url='webpage.html' target='_self'>
    to no avail. I can't seem to find any documentation on these fields.
    Is anyone able to help?
    Thanks in advance!

    Hi,
    I'm not aware to force this behaviour, but if it is a regular link you can drag the link onto the same tab heading you are currently looking at. Obviously this won't work for form submissions where there is no link to drag as such

  • Javascript popups that open in same window causing focus problem

    I have been using javascript popups in actionscript buttons
    for some time with no issues. However, on a specific movie I have 2
    button links, each of which opens a pdf file. I need each pdf to
    open using the same new window to avoid multiple new windows
    opening.
    This works fine on the first link I open - the new window
    appears on top of the main window. The second link, however, opens
    underneath the main window despite the focus() code. This only
    happens in IE - works fine in Firefox.
    Code used:
    link3_btn.onRelease = function() {
    getURL
    ("javascript:NewWindow=window.open('docs/first.pdf','newWin22','width=700,height=500,left =1
    0,top=10,toolbar=No,location=No,scrollbars=Yes,sta
    tus=Yes,resizable=Yes');NewWindow.focus();void(0); ");
    link4_btn.onRelease = function() {
    getURL
    ("javascript:NewWindow=window.open('docs/second.pdf','newWin22','width=700,height=500,lef t=
    10,top=10,toolbar=No,location=No,scrollbars=Yes,st
    atus=Yes,resizable=Yes');NewWindow.focus();void(0) ;");
    Any help would be appreciated. Thanks.

    This is how the code should look:
    link3_btn.onRelease = function() {
    getURL
    ("javascript:NewWindow=window.open('docs/first.pdf','newWin22','width=700,
    height=500,left=10,top=10,toolbar=No,location=No,scrollbars=Yes,status=Yes
    ,resizable=Yes');NewWindow.focus();void(0); ","_self");
    link4_btn.onRelease = function() {
    getURL
    ("javascript:NewWindow=window.open('docs/second.pdf','newWin22','width=700,height=500,lef t=
    10,top=10,toolbar=No,location=No,scrollbars=Yes,st
    atus=Yes,resizable=Yes');NewWindow.focus();void(0) ;","_self");
    }

  • Wix Hyperlinks Won't Open in 'Same Page' - iWeb 09

    I recently built a flash intro for my personal website (www.justinmiller.info) using Wix. It's basically some photos of me that you can hover over; the photo expands and you can click on it to be directed to one of the pages on my site.
    I have embedded the code in iWeb, published the site, and the rollover effects work fine. The issue is that when I set the "go to URL" of each picture (in Wix) to open up in the same window, the links do not work. I've tried with both Safari and Firefox. If I set the links to open in NEW windows they will work, but this is hardly convenient for someone browsing my website. This one has me stumped.
    My question, therefore, is why won't the links from my Wix widget open in the same window. Does anyone have any advice / tips on how I can make this work?
    I should also mention that when I test my widget in Wix' "preview" pane, my links work as they are supposed to (either in same page or new page, as I have them set). It's only when I embed my widget in iWeb that they cease to open in the same page.
    Cheers,
    Justin

    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

Maybe you are looking for

  • QuickTime Crashing--AviImporter Plug-In problem?

    First off, an advance apology if I've posted this to the wrong category...I didn't see any groups for QuickTime. After a friend used my Macbook Pro, my .avi movies quit playing. In fact, if my Finder is in a directory with avi files in it, it resets

  • WD passport external hard drive won't mount

    I just purchased a Western Digital Pasport 60GB USB portable hard drive - which stated was Mac compatible on the packaging - hooked it up and nada....won't mount! Doesn't show up on Disk Utility - can't find anything on the WD support site.... It doe

  • How do I add a hyperlink like Facbook to my email signature?

    I am trying to change my email signature to add the icons for Facebook, Linkedin etc... How do I do that on my iMac with snow leopard?

  • Max Hard Drive size for Ultra 10s

    Hi, I'm kinda new to sun and I have a ultra 10s with a 9 Gig factory installed HD. I was wondering what the maximum sized IDE hard drive that can be installed. I would like to mirror the system as well. I've seen another post about this but the max s

  • IPad air audio to Mac via USB

    I would like to connect my iPad Air Lightning Output to my Mac Pro via the Mac Pro USB for input of audio from the iPad to the Mac Pro.  My Mac is connected to my audio equipment via analog audio out and the TOS connector.  I would like to connect th