1 Reply Latest reply on Oct 7, 2009 12:43 PM by rgadiparthi

    display a html page with button click




      how can I reference a button to a local html in Flex? i.e. when click a button an html page is displayed. The following is not working...


      <mx:Button label="Main Page" click="location.href='test.html' "/>


      Thank You

        • 1. Re: display a html page with button click
          rgadiparthi Level 2

          Tyr this

          <mx:Button label="Main Page" click="onBtnClick(event)"/>


          private function onBtnClick(event:Event):void
               var url:String = "yourURl"; //Place your url here
               var urlRequest:URLRequest = new URLRequest(url);