2 Replies Latest reply on Nov 29, 2009 5:55 AM by dgwillia1982

    HTML component in web

    dgwillia1982

      I want to use a HTML component within my Flex ap to be run on the web (not an AIR app) - is the HTML component only available for AIR apps? if so what i the equivalent?

       

      Can you point me in the right direction?

        • 1. Re: HTML component in web
          Gregory Lafrance Level 6

          HTML component is indeed only AIR.

           

          You can use htmlText property of many components, though it does not support as many HTML tags as AIR HTML component.

           

          Then there is always navigateToUrl():

           

          <?xml version="1.0"?>
          <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
            <mx:LinkButton label="ADBE" width="100"
              click="navigateToURL(new URLRequest('http://quote.yahoo.com/q?s=ADBE'), '_blank')"/>
          </mx:Application>
          

           

          Change _blank to _self if you want to have the page displayed in the browser window currently displaying the Flex app. You can also do with iframe name.


          If this post answers your question or helps, please mark it as such.


          Greg Lafrance
          www.ChikaraDev.com

          Flex Development and Support Services

          • 2. Re: HTML component in web
            dgwillia1982 Level 1

            Thanks for the info.

             

            What I really want to do, is have a component within the Flex which renders the HTML of a URL. I.e the page has a lists of links, when theu ser clcks on one of those links the website is rendered within a compnent on the page (and does not replace the entire page.

             

            Any ideas?