5 Replies Latest reply on Aug 29, 2008 11:43 PM by nagarjunaakkineni

    Browser


      Hi All,
      I'm new to flex.I have a doubt regarding "How to open the new browser window when i click on the button r text(like hypherlink in HTML)".Can u send me the simple example regarding this problem.

      I wrote some code but it is not working .Here i'm sending my code can u see and correct the code.

      This is my code :--

      <mx:Application xmlns:mx=" http://www.adobe.com/2006/mxml">
      <mx:Script>
      import flash.external.*;

      public function openWindow():void {
      var strFunction:String = "openWindow";
      var strURL:String = " http://www.cflex.net";
      var strCall:String = ExternalInterface.call(strFunction,strURL);
      }
      </mx:Script>
      <mx:Button label="Open Browser Window" click="openWindow()"/>
      </mx:Application>

      Thanks & Regards
      edeewan