"_self"

Can someone please explain to me why this code and any of the others i have tried are not working.  I have pulled them directly from other peoples work (but changed instance names etc) and cannot for the life of me figure out why this code insists on opening up a new browser window each time..
Please help
home_but.addEventListener(MouseEvent.MOUSE_DOWN, home);
function home(event:MouseEvent):void
var home_but:URLRequest = new
URLRequest("www.wheelerdevelopments.com");
navigateToURL(home_but, "_self");
or i have tried this
home_but.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler8);
function mouseDownHandler8(event:MouseEvent):void {
navigateToURL(new URLRequest ("http://www.wheelerdevelopments.com", "_self"));
still no joy.. what am i missing?
Thanks

your use of home_btn as both an interactivedisplayobject and a urlrequest isn't a good idea, but it's not causing the problem.
try:
home_but.addEventListener(MouseEvent.MOUSE_DOWN, home);
function home(event:MouseEvent):void
var urlR:URLRequest = new URLRequest("http://www.wheelerdevelopments.com");
navigateToURL(urlR, "_self");

Similar Messages

  • How do i link to an iframe, _self, or something else?

    I have a vetical menu and I want to set my links for each item to open in an iframe on the same page. Other than using html object, is there a way to set target information for hyperlinks. There doesn't appear any way to set the target as something other than what comes with Muse (other page, anchor) like '_self', '_top', etc.

    Hello,
    The only option you have in Muse is to open the page in either same tab or a new tab/Window.
    For this you need to Click on hyperlink at the top and check the box as shown in the image below :
    In case you are looking for any other option like _self or _top, I would suggest you to post this as a feature request on our "Ideas for features in Adobe Muse" section of the forums : http://forums.adobe.com/community/muse/ideas
    Regards,
    Sachin

  • In Flex Application Session out while export to excel while using navigateToURL _Self ?

    Hi,
    I am using Flex 3.0 and facing one problem session out while export to excel in Live server not on localhost .
    I have Used navigateToURL (url, "_self"); export to excel. While url is sevrlet call.
    In localhost(tomcat) everything is working fine while another server or live in weblogic server, my session Is Getting Lost and User is re-directed to login screen again.
    what to do to resolve this issue.
    while I tried to use _blank instead of _self then session Is getting preserved but its opening blank new window which user will not accept necessary page.
    please Suggest what to do to preserve The session while using _self ..
    waiting for quick reply.
    Regards,
    prabhat

    I'm not using Flex, but the following preserves session in Flash:
    var url = "http://" + WebServerIPAddress + "/" + ApplicationName + "?data=" + datavalue;
    var cmd:String = "window.open('" + url + "','win','height=768,width=1024,toolbar=no,scrollbars=yes');";
    var request:URLRequest = new URLRequest("javascript:" + cmd + " void(0);");
    navigateToURL(request, "_self");

  • _self doesn't work when Flash is embedded into iWeb

    I am currently building a site for a client who requested that all the pages be built in in iWeb so that she could easily manipulate them without my further involvement.  She also requested that the site contain Flash elements such as a drop-down navbar.
    I embedded the Flash elements with this code:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html><head><title></title></head><body><object classid="clsid:D27CDB6E-AE6D-11CF-96B8-444553540000" id="obj1" codebase="http://download.macromedia.com/pub/shockwave/cabs/ flash/swflash.cab#version=6,0,40,0" border="0" width="1000" height="525"><param name="movie" value="URL OF FLASH FILE"><param name="quality" value="High"><param name=wmode value=transparent><embed src="URL OF FLASH FILE" type="application/x-shockwave-flash" name="obj1" width="1200" height="700" wmode="transparent"></object></body></html>
    And used the HTML insert function in iWeb to place the Flash .swfs.
    The problem is, for some reason, iWeb—as expected—is very particular as to the action script it will accept.  In terms of the navbar links, I couldn't use variables.  The only URLRequest function I could use was:
    Button_mc.addEventListener(MouseEvent.CLICK, callLink);
    function callLink(event:MouseEvent):void{
    navigateToURL(new URLRequest("http://web.me.com/samuelwagreich/Muel_Wagreich/Test_2.html"));
    Yet, when I add the _self, like this:
    navigateToURL(new URLRequest("http://web.me.com/samuelwagreich/Muel_Wagreich/Test_2.html"), "_self");
    For some reason the link no longer works when I add the _self, even when it manages to work in the Flash viewer or even if I display the file from my GoDaddy FTP.  I've been researching the problem for days, and I just can't seem to find a solution.  I can't make the code any more complex, because then iWeb won't accept the link at all.  I was wondering if anyone has solved the problem—a rather obscure one—and if not, I was hoping someone had a workaround I haven't seen or another way to work around iWeb's stupidity.
    Thanks.

    CVI indeed attaches to the debug output. Since it is the first to get a chance to do that for its own process it will effectivly disconnect any other debugger from that output for anything that is executed in CVI. Windows has some serious limitations in terms of piping streams in comparison to Unix systems, and this is one of them.
    But what is wrong about the CVI Debug Window? You do get the information in there so it seems possible to do debugging of your LabVIEW DLL in CVI.
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • Window.opener lost after submit on _self of a window

    == Issue
    ==
    I have another kind of problem with Firefox
    == Description
    ==
    My problem is:
    1. main window (*1) opens a child window (*2) and save the reference to this new window in an array
    2. the child window (*2) shows a "wait please" image and open on _self the real requested page which can take some time to be created; the new page shows some search fields, the user types the filter and press button for submit; after submit the content of the child window (*2) is the result of a select on DB
    3. in the child window (*2) there is a button which opens another child window (*3)
    The problem is here: the child window (*2) search the main window (*1) using window.opener but its window.opener is itself.
    I need to save the references of all opened windows, so I can close them all when I close the main window (*1)
    For an example (more simple) click here:
    http://asp.rds-software.com/asptest/window.parent/mainwindow.html
    == Firefox version
    ==
    3.6.3
    == Operating system
    ==
    Windows XP
    == User Agent
    ==
    Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)
    == Plugins installed
    ==
    Adobe Acrobat 8.2.2.217
    Java(TM) 2 Platform Standard Edition 5.0 Update 6 5.0.60.5
    Microsoft DRM (Netscape Network Object) 9.0.0.4503
    Microsoft DRM (Netscape Plugin) 9.0.0.4503
    Mozilla Default Plug-in 1.0.0.15
    Shockwave Flash 9.0.124.0
    Windows Media Player Plug-in Dynamic Link Library 3.0.2.629
    Windows Presentation Foundation 3.5.30729.1

    Hi,
    try 10.1.3.3 - I tested it with this release and here it worked fine.
    Frank

  • Problem in setting the target property to _SELF of LinkToURL UI Element

    Hi,
    I have a LinkToURL UI Element in my web page which has to open up another page in the same window.
    I tried setting the target property to _SELF, but it's not working.Instead the page is opened in a new child window.
    Please tell me whether to set any other property to get that.
    Thanks and Regards,
    Padma Usha.

    Hi,
    Please give the target value in lowercase "_self".
    Regards, Anilkumar

  • Hyperlink text will not work with _self, only as self and then creates window

    I understand that the code below should work but it doesn't, I have to take the underline before self out, for the hyperlink to work at all, and then it creates another window for the file. There may some sort of glitch that I am not aware of. But the code below does not work as is in my app. Any further suggestions?
    var t:TextField = new TextField();
    t.htmlText = "hello world"+ "<a href='weeTestPage.html' target='_self'><u>click here</u></a>";
    t.autoSize=TextFieldAutoSize.LEFT;
    addChild(t);

    You are asking second time same question. (http://forums.adobe.com/message/3401366?tstart=0#3401366)
    I answered the first one.
    Haven't you read it?

  • URLRequest & _self

    I'm converting some old AS2 flash elements on a hybrid html/flash elements site to AS3.
    The site is document relative in DW CS3.  My .swf files are in a subfolder /Flash and the .swf files themselves are fine on the page.
    Simple menu ... 6 button (mc) links ... the mouse event Click calls the URL Request in a function...
    Just as an example the code here is for a simple 1 button link (also on the html page with the menu as a separate .swf)
    -- but the problem I'm having occurs on all my links.
         clickHere_mc.addEventListener(MouseEvent.CLICK, classesPage);
         function classesPage(e:MouseEvent):void
              { var targetURL:URLRequest = new URLRequest("../classes.html");
                 navigateToURL(targetURL, "_self"); }
    The above code works fine in Flash (in the .swf) and the html page opens. But...
    when the object code (swfObject 2.0)  is 'embedded' in the html page (css div) there is no 'click' action, nor does the linked page open.
    If I leave off the "_self" then the link works but opens in a new browser window. [i.e.    navigateToURL(targetURL);   ]
    I've tried variations of using "_self", including
         var targetURL:URLRequest = new URLRequest("../classes.html");
         navigateToURL(targetURL, "target = _self");
    and
         function classesPage(e:MouseEvent):void
         { navigateToURL(new URLRequest("../classes.html"), "_self"); }
    and these also cause the same problem -- no link 'action' on click; no new page. 
    This code (and variations of it) inside the function causes no Flash error but does cause a browser error of can't find page
         var targetURL:URLRequest = new URLRequest("../classes.html, target = _self");
              navigateToURL(targetURL);
    I've tried putting the .swf file and the html file in the same directory (both in the root dir) and still no mouse action or new page opening.               
    I do not want an internal html page opening in a new browser window, but how come I'm not getting the "_self" command to work?
    Is there another way to have AS3 open a new html page in the same domain using Flash menu 'button' links instead of the URLRequest?
    Thanks -- Susan

    Meaning that previewing my DWeaver site/files with the mc 'button' & the (...  "_self" )  on the pages locally in the browser are not working, but once I upload the files to a server they will?  I'll try that. 
    But in the meantime....
    Could my problem with the "_self" not working be due to the fact that I don't have this code in my AS3?
    I'm not using an external AS file, nor have I linked the movie clips 'buttons' for AS export.
    (code from Adobe's Actionscript 3 Language-Components Reference URLRequest Class)
    import flash.display.Sprite;
        import flash.net.navigateToURL;
        import flash.net.URLRequest;
        import flash.net.URLVariables;
        public class URLVariablesExample extends Sprite {
            public function URLVariablesExample() {
                var url:String = "http://www.[yourDomain].com/application.jsp";
                var request:URLRequest = new URLRequest(url);
                var variables:URLVariables = new URLVariables();
                variables.exampleSessionId = new Date().getTime();
                variables.exampleUserLabel = "guest";
                request.data = variables;
                navigateToURL(request);

  • LinkToURL with _self doesn't work

    Hi experts,
    I have tried using _self in the "target" property in my LinkToURL UI element to call up another ABAP web dynpro application, but the browser keep calling the new application in a separated browser. How can I call up the new application in the same window?
    Thanks.

    Hi Mandy,
    By starting a new application in the same browser window, the current application has to stop. There are two methods of achieving what you want. The first one is to use an exit plug and to specify the new URL there. The second option is to use the suspend/resume functionality.
    Here in this example I am saying like IG_MAIN_WINDOW coz my window name is MAIN_WINDOW. Just replace the main_window with the name of your window. So if you window is called WIN1, the name will be IG_WIN1
    method ONACTIONGO_SUSPENDING .
      data: L_REF_MAIN_WINDOW type ref to IG_MAIN_WINDOW .
      L_REF_MAIN_WINDOW = WD_THIS->GET_MAIN_WINDOW_CTR( ).
      L_REF_MAIN_WINDOW->FIRE_GO_SUSPENDING_PLG(
      URL = 'http://…………/webdynpro/sap/my_secondary_wda' ).
    endmethod..
    Regards,
    Uday

  • Link to url, "_self" is opening a new page...

    I am trying to get my button to navigate to _self and the link is opening a new page. Is there something wrong in my code?
    my_btn.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler);
    function mouseDownHandler(event:MouseEvent):void {
        navigateToURL(new URLRequest("myurl"), "_self");
    Thank you in advance for any help!

    both parameters are strings or string variables.  you're using a variable (which shouldn't be in quotes).
    here's a sample:  http://www.kglad.com/Files/forums/Untitled-2.html
    and, assuming that works for you:  http://www.kglad.com/Files/forums/Untitled-2.fla

  • base target=_self issue in modal popup window.

    Hi,
    I have implemented a modal popup window as described in:
    TIP: Building Modal Popup Windows
    I also created a Search button (per step 8 "polishing")
    The html header of the page attributes of the LOV window contains (step 3):
    <META HTTP-EQUIV="Pragma" CONTENT="no-cache">
    <base target=_self>
    Still for some reason when I hit Search, a new window opens.
    What am I missing here?
    Toon

    Andy,
    I added the quotes: but no difference in behaviour.
    However I did find something:
    On the search button I had erroneously defined a url-redirect going back to the same page.
    And I also had a conditional (request=search) branch going back to the same page.
    I deleted the url redirect on the search button, and it works fine now: the branch takes me back to the same window (without opening a new one).
    On further testing I found another issue concerning the pagination (it is of type: row ranges in select list with pagination).
    If I press next and previous all works well. But if I select a range from the select list it opens a new window...
    Any ideas here?
    Thanks,
    Toon

  • Major Problems with _self in AS3

    Okay, so I'm pretty much a self-taught Flash newb, so please bear with me if this question has an obvious answer.  I've searched different fixes, and none of them have worked.
    I am making a simple button in Flash CS4 with AS3.  The button has a hover effect and that's it.  I am wanting the button to link to a different webpage when clicked on in the same window.  I am using this code:
    Button.addEventListener(MouseEvent.CLICK, onMouseClick);
    function onMouseClick(e:MouseEvent):void
        var request:URLRequest = new URLRequest("http://www.mysite.com);
        navigateToURL(request, "_self");
    When I test the movie in Flash, it works fine.  It takes me to the webpage.  However, when embedded online, it does nothing.  I can click on it, and I will remain there on the same page.  Like it's just a pretty image with a hover effect and no link.  I've tested the button in both IE and Firefox, and it does not work in either.
    Now here's the funny thing....when I use _blank instead of _self, it works just fine in both Firefox and Explorer.  Any ideas of what I am doing wrong?
    Thank you.

    why you are adding the event listener to Button it is one of the cless names flash provides.
    Make sure
    You have the code where you have your button.
    you have named your button instance properly.
    and you attach your event listener to the instance with the same name.

  • _self doesn't work

    hello,
    I want to link to (dreamweaver/html) pages together: I want to link an intro with a webpage:
    this is the intro:(it's a gif image that you can see)
    and this is the webpage(website)(on this webpage I used Flash:
    When I link the white sentence(==> intro) and I use _self as target, it doesn't open
    in the same window, but it opens in an new window. And I want the webpage opens
    in the same window as the intro.
    Can someone help me plz????
    P.S.: sorry for my english!

    Now that your attachments are out of the queue, I can see what you have (at least what you had before). As mentioned, it is best to upload the pages and provide a link. That way we can see the code in the context of the site.
    Anyway. Again, as mentioned, delete all instances of target="_self" It is not allowed in your chosen DOCTYPE, anyway.
    But wow... Change all of this:
    <blockquote>
      <blockquote>
        <blockquote>
          <blockquote>
            <blockquote>
              <blockquote>
                <blockquote>
                  <blockquote>
                    <blockquote>
                      <blockquote>
                        <blockquote>
                          <p align="left" class="style1"><a href="../flashsite.html" target="_self">Entrer Le Moulin</a></p>
                        </blockquote>
                      </blockquote>
                    </blockquote>
                  </blockquote>
                </blockquote>
              </blockquote>
            </blockquote>
          </blockquote>
        </blockquote>
      </blockquote>
    </blockquote>
    To this (assuming the path to flashsite.html is correct):
    <p class="style1"><a href="../flashsite.html">Entrer Le Moulin</a></p>
    Again, online links make it easier for others to help troubleshoot.
    Mark A. Boyd
    Keep-On-Learnin' :-)

  • Actionscript 3 and _self

    Hi Guys,
    I'm trying to get a page to load in the same tab, instead of creating a new tab (like HTML target=""_self" instead of _blank)
    I've tried a few different things I've found on different forums, nothign seems to be working though
    This is what I'm trying..
    function gotoManitoba(event:MouseEvent):void
    var targetURL:URLRequest = new URLRequest("http://mydomain.com/flash/?p=44");
    navigateToURL(targetURL, "_self");
    MB.addEventListener(MouseEvent.CLICK, gotoManitoba);
    It doesn't return an error, but the link doesn't work at all as long as the "_self" is in there.

    The problem with your posting is most probably not of your doing, it appears to be another fluke of the currently errant forums... below is an image of what your posting looked like until I spread the window out to about 1600 pixels wide.
    As far as your problem using "_self" goes, are you testing on a server?  What you show is the correct way to implement it.
    Here's why I was saying to repost...

  • Link question - setTarget("_SELF") ?

    Hi everyone,
    I'm facing some problems with the com.sapportals.htmlb.Link object. Eventhough I write setTarget("_SELF"), the link opens up in a new browser. Below you see the source code ... where is the mistake?
    String myReference = "http://www.google.com";
    Link myLink = new Link("name","text");
    myLink.setReference(myReference);
    myLink.setTarget("_SELF");
    myLink.setLinkDesign(LinkDesign.REPORTING);
    myLink.getInnerText().setWrapping(true);
    myLink.getInnerText().setEncode(false);
    Thank YOU!

    Well, I solved the problem ... the .setTarget("") method is case sensitive and therefore I should write
    myLink.setTarget("_self");
    instead of
    myLink.setTarget("_SELF");

  • Question about target _self

    Hi. I have a website and I feel there is too much HTML code so I am trying to cut down. One question I have is:
    Is there any need for target="_self" or is that default target? I have this code 91 times in my template. Can I take this code out or is it needed?
    Many Thanks,
    Chris.

    cripaustin wrote:
     Is there any need for target="_self" or is that default target? I have this code 91 times in my template. Can I take this code out or is it needed?
    Take it out. You don't need it. It's a hangover from the days of using frames. target="_self" is an instruction to load the page into the same frame. If you're not using frames, you don't need it.

Maybe you are looking for

  • IPod can't connect with iTunes-keep getting install 64 bit iTune message

    When I connect my iPod Touch to the computer and try to sync with iTunes, I keep getting the message that I have to uninstall the 32 bit iTunes and install the 64 bit iTunes. We've already done this and it won't recognize either the iPod or the iPad.

  • Network Client-login Issues...

    I have DNS running and tested successfully and Open Directory set up. However, I'm having troubles logging into a client computer from the user workgroup. My first issue I encountered was with Directory Utility on the client machine. It wouldn't reco

  • Help with phone runaround

    I have been with Verizon for many years and I am very disappointed with the service I am receiving with my daughter's phone.  She has been having problems with her phone which is a Palm Pre 2.  Last month she was shipped what was supposed to be a "ne

  • Studdering

    Hi all. I'm not too sure if this is a FCP, Compressor or DVDSP problem. I have the latest in all 3 programs. When I export my 1hr44min movie through compressor & burn it to DVD, much of my footage that has movement is very studdery. I shot w/ a DVX10

  • Unable to execute a Interactive Adobe Form

    Hi All, We have developed an Adobe Form in the Netweaver Developer Studio. The form has been integrated on to the portal as an iView. The issue is that this form gets executed only on systems in which Netweaver Developer Studio is installed. If I run