How to open new explorer when clicking links in webpages loaded by app of Flex/Air?

Posted by SpawnCxy on Stack Overflow See other posts from Stack Overflow or by SpawnCxy
Published on 2010-04-07T04:52:21Z Indexed on 2010/04/07 7:43 UTC
Read the original article Hit count: 294

Filed under:
|
|
|
|

In my application I tried using following codes to do this:

<mx:HTML x="0" y="0" width="100%" height="100%" location=“http://www.example.com”/>

The page is loaded fine.But when I click the links I found sometimes there was no any response while I need a new explore window opened with the linking url.And also I tried:

<mx:Script>
<![CDATA[
private function init():void
{
 var req:URLRequest = new URLRequest("http://www.baidu.com");
  var a:HTMLLoader = new HTMLLoader();
  a.width = 400;
  a.height = 300;
  a.load(req);
  htmlmc.addChild(a);
}
]]>
</mx:Script>
<mx:HTML x="10" y="10" width="345" height="258" id="htmlmc"/>

But still got nothing.Any good ideas?

Thanks in advance!

© Stack Overflow or respective owner

Related posts about flex

Related posts about air