0 Replies Latest reply on Apr 27, 2014 8:51 PM by dionysosz

    Problem with  navigateToURL


      Hi there I want to create a link-image and when I click on to change the current page. Here I provide me code. My problem is that when I use navigateToURL(u,'_blank') it works fine. But when I use  navigateToURL(u,'_self') it doesn't work.. And I want it to open on the same page and not in a new tab..



      <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" >




                                    import mx.managers.IPopUpManager;

                                    import mx.controls.Alert;

                                    import mx.events.CloseEvent;

                                    import mx.events.ItemClickEvent;


                                    import flash.net.*;

                                    public function openNewWindow(event:MouseEvent):void {

                                              var u:URLRequest = new URLRequest("http://www.adobe.com/flex");

                                              navigateToURL(u, "_self");





                <mx:Image id="fbImg" source="refresh.png" useHandCursor="true" buttonMode="true" click="openNewWindow(event)"/>