Can you check this. This is what you are expecting <?xml version="1.0" encoding="utf-8"?> <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600"> <fx:Declarations> <!-- Place non-visual elements (e.g., services, value objects) here --> </fx:Declarations> <fx:Script> <![CDATA[ import flash.net.navigateToURL; private function navigateto():void{ navigateToURL(new URLRequest('http://www.google.com'),"_self"); } ]]> </fx:Script> <s:Button label="Navigate" click="navigateto()"/> </s:Application>
-----Original Message----- From: dionysosx [mailto:[email protected]] Sent: Monday, April 28, 2014 9:26 AM To: [email protected] Subject: 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" > <mx:Script> </mx:Script> <mx:Image id="fbImg" source="refresh.png" useHandCursor="true" buttonMode="true" click="openNewWindow(event)"/> </mx:Application> -- View this message in context: http://apache-flex-users.2333346.n4.nabble.com/Problem-with-navigateToURL-tp6288.html Sent from the Apache Flex Users mailing list archive at Nabble.com. This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message.
