Open a URL link in the same window as SWF file in indesign CS5

Hello,
I am trying to create a SWF file using indesign CS5.  I have created buttons and placed in URL links but they always open another window.  I would like to know if there is a way to have the URL open in the same window that the SWF file has been created.  I tried, putting "_self" to target it in the URL bar, but nothing works.
Thanks in advance
TK

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.

Similar Messages

  • Can I set Firefox to open a page link in the same window (not a new tab) so I can just go back to the page instead of having to close the window?

    When I am on some pages, clicking on a article/picture link opens a new tab instead of continuing in the same window. By staying in the same window, I can back click on my mouse and continue on with other reading/links on the original page without manually having to move the mouse and click to close the tab. For example: on news pages, if I click on a financial article, a new tab opens with that linked article on the website's financial site. If I keep going back to the original page w/o closing tabs, I end up with too many tabs open.

    yeah, instead of using multiple windows, you can use multiple tabs inside one window. That way, you can browse multiple websites at once without having to flick back and forth between multiple windows.
    To open tabs of the websites you want to browse, just right-hand click on whatever website you want to visit (For example a site from your bookmarks or a site from a Google search result) and select 'open link in tab'.

  • How to open a new iView in the same window?

    Hi
      i want to open a new iview in the same window.How can i do that ?
    Thanks

    Hi,
    If u want to code in WDJ  ..
    Use following method
         WDPortalNavigation.navigateAbsolute(
         "ROLES://<PCD location>,
         WDPortalNavigationMode.SHOW_INPLACE,               WDPortalNavigationHistoryMode.ALLOW_DUPLICATIONS,
         (String) null  );
    SHOW_INPLACE is the key
    Cheers!!
    Ashutosh

  • My safari stopped letting me open a new tab in the same window. what happened and how can I get it back to normal?

    When I try and open a new tab in the same window, it wont open a new tab. It leaves the page I am on and goes to the "top sites page."

    Hi,
    If you have got to  Mountain Lion OS X 10.8.2 and therefore Messages version 7.0.1 then double click the individual chats.
    Once they are in separate windows you can chat like that  (That's the way I used to chat - I didn't even use the tabbed chat)
    It is impossible to create a separate Chat window each new chat (you have to separate them off from the main window which also keeps a "copy")
    New chats are added to the main window even if you have used the red button to hide it. (CMD + 0 from the Window menu brings it back)
    10:49 PM      Tuesday; November 20, 2012
    Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"
      iMac 2.5Ghz 5i 2011 (Mountain Lion 10.8.2)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
     Couple of iPhones and an iPad
    "Limit the Logs to the Bits above Binary Images."  No, Seriously

  • Whenever I click the + Tab to open a new tab, it doesn't do anything. It seems like it has a safety lock on or something. It will not allow me to open up another tab in the same window.

    I try to open up another webpage on the same window, by clicking on the + Tab Button next to the current webpage Im viewing. For some reason it will not do anything. It will not open up.

    This problem has been associated with the Ask toolbar. You could try disabling it here:
    Tools > Add-ons > Extensions
    You may want to update to 3.6.17 to take advantage of security fixes.

  • Open link in the same Window

    Hello,
    i want to open a link from a WDA Action Method, in order to open a bsp applikation. The new page should appear in the same window (no popup, no new window). Here the code which i have at the moment, but the BSP Applikation starts always in a new window. What can i do ?
    data:
    lt_parameters TYPE TIHTTPNVP,
    ls_url               type string,
    lo_window_manager type ref to if_wd_window_manager,
    lo_api_component      type ref to if_wd_component,
    lo_window                type ref to if_wd_window.
    CALL METHOD cl_http_ext_webapp=>create_url_for_bsp_application
          EXPORTING
            bsp_application       = 'ZHRMPBA004'
            bsp_start_page       = 'ZHRMPBPTI006.htm'
            bsp_start_parameters = lt_parameters
          IMPORTING
            abs_url              = ls_url.
    lo_api_component  = wd_comp_controller->wd_get_api( ).
    lo_window_manager = lo_api_component->get_window_manager( ).
    CALL METHOD lo_window_manager->CREATE_external_WINDOW
              EXPORTING     URL            = ls_url
             RECEIVING     WINDOW         = lo_window.
    lo_window->open( ).
    thanks for replays

    You are calling CREATE_external_WINDOW. That API is designed to open the application in a new window.  So that isn't appropriate for what you want.  If you want to navigate in place then you should use an Exit Navigation Plug.
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/48/ca3351508f04e7e10000000a42189c/frameset.htm

  • How to open links in the same window, without changing preferences?

    What I want to know is if there's a way to force a click on a link to open in the current window just one time, if the page was using target=_blank or other methods to open a new tab/window.
    The context menu doesn't have an option for that, was hoping for a modifier key option or something, or perhaps a plugin that would add such an option.
    I know there's an advanced pref to change the behaviour of clicking on links to control new tabs, windows, etc. I don't want to change the default, I just for certain links want to prevent the new tab on a one-up basis.
    (currently on Firefox 30 for Mac)

    Firefox actually doesn't have any built-in preference for overriding the target attribute. If you are on a site where you know the link is coded to open in a new tab, currently, the best workarounds are:
    * drag and drop the link on the address bar
    * right-click > Copy Link Location and then paste in the address bar
    Neither is convenient...
    You might be able to find an add-on for this. For example, Tab Mix Plus, Tab Utilities, and other multi-functional tab-related extensions might have an option to force links into the same tab. In a brief search, I saw one called TargetKiller that is more focused on this but recent reviews mention conflicts with other extensions. If this is a frequent pain point, you could search further on the add-ons site.
    * https://addons.mozilla.org/firefox/addon/tab-mix-plus/
    * https://addons.mozilla.org/firefox/addon/tab-utilities/
    * https://addons.mozilla.org/firefox/addon/targetkiller/
    Let us know the progress of your search.
    Another possibility is to solicit someone to write a userscript. A userscript is a JavaScript add-on that can modify web pages, but not the user interface (for example, it cannot add a right-click context menu item). You need the Greasemonkey extension to run userscripts, and you need to evaluate them carefully because they are not formally reviewed by anyone.
    You can contact userscript authors through these sites, and if someone is interested, they'll usually write the script for free and post it for everyone's benefit:
    * https://greasyfork.org/forum/categories/script-requests
    * https://openuserjs.org/corner

  • Opening the link in the same window in WAD

    Hi,
    I have a view when I run it dispalys th data in the same view I have link when I click on the link it should own in the same window instead of opening it in the new window ,how can this be done in WAD3.5
    Regards,
    Priya

    Priya,
    This opens up another template in the same IE session for us:
    "<SAP_BW_URL CMD='CHANGE_TEMPLATE' TEMPLATE_ID='Ztrad_Ww005'>">Cash Targets by Branch"
    Note: Start the link with <Ahref="   .... and end with </A>.  When I put these into the link all you see is the Cash Targets text.
    Regards
    Gill

  • Open a url rotator in the same browser window

    Hi
    I am trying to get a URL rotator to use in house on a multi-monitor display. I would like when accessing this page from a browser window the content opens in the same window. What I would like is to set the page as the home page in a browser and have the rotator open in the same window here is the code I have please help.
    <head><title>Control page</title>
    <SCRIPT language="JAVASCRIPT">
    var Win;
    var page_index=0;
    var page = new Array();
    page[0] = "http://www.ocala.com/";
    page[1] = "http://www.ocala.com/apps/pbcs.dll/section?Category=news";
    page[2] = "http://www.ocala.com/apps/pbcs.dll/section?Category=sports";
    page[3] = "http://www.ocala.com/apps/pbcs.dll/section?Category=yourlife";
    page[4] = "http://www.ocala.com/apps/pbcs.dll/section?Category=money";
    page[5] = "http://www.ocala.com/apps/pbcs.dll/section?Category=health";
    page[6] = "http://www.ocala.com/apps/pbcs.dll/section?Category=entertainment";
    page[7] = "http://www.ocala.com/apps/pbcs.dll/section?category=community";
    page[5] = "http://www.ocala.com/apps/pbcs.dll/section?Category=entertainment";
    page[5] = "http://www.ocala.com/apps/pbcs.dll/section?Category=entertainment";
    function next_page()
    page_index++;
    if (page_index == 8)
    page_index = 0;
    Win.location.replace(page[page_index]);
    </SCRIPT>
    </head>
    <body>
    <SCRIPT language="JAVASCRIPT">
    Win=window.open(page[0], 'Win','resize=yes,toolbar=no,status=yes,scrollbars=no,screenX=0,screenY=0')
    setInterval("next_page();",90000);
    </SCRIPT>
    </body>

    <SCRIPT language="JAVASCRIPT">But this is a Java forum, not a Javascript forum.

  • How to open url request in the same window

    hail unto theeeee..
    I finally got my buttons to work, but now I need help getting
    them to open in the same window. As of now each button opens a
    separate new window. UGGGGG!
    Thanks in advance!

    Thank you thats what I needed alright! problem solved.

  • Opening a web page in the same window ...

    Hi all,
    I wanted to open a web page in the same content area(window) and not in an external window . Could you tell me how its done ...
    Regards,
    Jayant.

    hi
    check out this link
    http://help.sap.com/saphelp_erp2005/helpdata/en/83/e7c24122e3c317e10000000a155106/content.htm
    create a exit plug as mentioned in link.
    in the action event handler of button gives this.
    public void onActionExitButton(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
        //@@begin onActionExitButton(ServerEvent)
    String logoffURL="http://help.sap.com/saphelp_erp2005/helpdata/en/16/d3643fce8bb01ae10000000a114084/frameset.htm";
    wdThis.wdGetDynamicProgrammingInterfaceViewController().wdFirePlugToexit(logoffURL);
        //@@end
    hope this helps,
    Regards,
    Arun

  • Why firefox in my desktop can't open a new tab in the same windows?

    I can't open a new tab by clicking the + symbol. I don't know why this happen. If I want to open a new tab, I have to take a right click and then choosing open new tab. I think this is so terrible, I can't access the page on the same windows.

    Uninstall the '''''Ask Toolbar'''''. It can cause that problem.
    *http://support.mozilla.com/en-US/kb/Uninstalling+add-ons
    *http://support.mozilla.com/en-US/kb/Cannot%20uninstall%20an%20add-on
    *http://kb.mozillazine.org/Uninstalling_toolbars
    If that does not solve your problem:
    *See --> [http://support.mozilla.com/en-US/kb/Troubleshooting+extensions+and+themes Troubleshooting extensions and themes]
    *See --> [http://support.mozilla.com/en-US/kb/Troubleshooting+plugins Troubleshooting plugins]
    *See --> [http://support.mozilla.com/en-US/kb/Basic+Troubleshooting Basic Troubleshooting]
    '''If this reply solves your problem, please click "Solved It" next to this reply when <u>signed-in</u> to the forum.'''
    Not related to your question, but...
    You may need to update some plug-ins. Check your plug-ins and update as necessary:
    *Plug-in check --> http://www.mozilla.org/en-US/plugincheck/
    *Adobe Shockwave for Director Netscape plug-in: [https://support.mozilla.com/en-US/kb/Using%20the%20Shockwave%20plugin%20with%20Firefox#w_installing-shockwave Installing ('''''or Updating''''') the Shockwave plugin with Firefox]
    *'''''Adobe PDF Plug-In For Firefox and Netscape''''': [https://support.mozilla.com/en-US/kb/Using%20the%20Adobe%20Reader%20plugin%20with%20Firefox#w_installing-and-updating-adobe-reader Installing/Updating Adobe Reader in Firefox]
    *'''''Shockwave Flash''''' (Adobe Flash or Flash): [https://support.mozilla.com/en-US/kb/Managing%20the%20Flash%20plugin#w_updating-flash Updating Flash in Firefox]
    *Next Generation Java Plug-in for Mozilla browsers: [https://support.mozilla.com/en-US/kb/Using%20the%20Java%20plugin%20with%20Firefox#w_installing-or-updating-java Installing or Updating Java in Firefox]

  • Open Web java Analyzer in the same window

    Hi,I would like to open java applet in the same window base Internet Explorer window.According to documentation I shoud change Analyzer.jsp file parameter from:<PARAM NAME = UseFrame VALUE = "True">to<PARAM NAME = UseFrame VALUE = "False">When UseFrame is set to "False" then login window opens, I have logged in with username and password and then nothing happens. At web browser status bar there is a message: "Opening http://olap/Analyzer7_Server/Dispatcher". Nothing happens!What should I do to make my java applet working in the same window?By the way, if UseFrame is set to True then Analyzer works fine.Thanks,Grofaty

    Hi,I have found out the solution:1. Opened Analyzer.jpf file2. Deleted all <table> to <object> html tags. (but didn't delete <object> tag)3. Deleted </table> to </object> from down to up of the file (but did't delete </object> tag)4. Deleted <embed> to </embed> tags.5. Deleted <comment> tag6. In object tag I have added WEIGHT to 100% and HEIGHT to 100%7. Changed parameters from param name=UseFrane value ="True" from "True" to "False".The problem dissapeared. So no more help is needed.Grofaty

  • How to open XML form item into the same window?

    Hello All,
    I've developed a xml form, when I click on the  item with KM Navigation Iview It opens in a new window.( _blank ).
    Is there a way to open it in the same window ( _self )?
    Thanks
    Amit Yosha

    Hi Amit,
    at the moment, this is not configurable. See XML form display in same browser window for possible workarounds.
    Hope it helps
    Detlev

  • I am not able to open a new tab in the same window.

    I was able to opennew tabs in the same window but now I am unable to do it

    hello, can you try to replicate this behaviour when you launch firefox in safe mode once? if not, maybe an addon is interfering here...
    [[Troubleshoot extensions, themes and hardware acceleration issues to solve common Firefox problems]]

Maybe you are looking for