5 Replies Latest reply on Mar 19, 2010 3:06 AM by ric_bia

    iframe

    ric_bia Level 1

      I'm creating a AIR project inside Flash CS4 (not in FlexBuilder).

      I've seen that AIR support iframes, I could I create one from my flash?

      I have to import any external library?

        • 1. Re: iframe
          Joe ... Ward Level 4

          In AIR, you can use the HTMLLoader class to display any

          HTML page, including one that contains iframes.

           

          Something like this:

           

          var html:HTMLLoader = new HTMLLoader();

          html.width = 500;

          html.height = 500;

           

          html.load( new URLRequest( "app:///page.html" );

           

           

          See: http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/html/HTMLLoader.h tml

          1 person found this helpful
          • 2. Re: iframe
            ric_bia Level 1

            I've tried to use HTMLLoader but there are 2 problems

            1. the flash inside the website aren't loaded (flash that cannot read flash... omg :| )

            2. the text quality is really low (quite unreadable)

            • 3. Re: iframe
              Joe ... Ward Level 4

              You can load Flash in the HTMLLoader except when you load the SWF in Windowed mode and the AIR application window has its transparent property set to true.

               

              If you don't scale the HTMLLoader control, the text readability should be decent -- maybe not perfect but certainly not unreadable, either.

               

              But in any case, there's no iframe object in Flash/ActionScript.

              • 4. Re: iframe
                ric_bia Level 1

                Thanks a lot for your help

                 

                You can load Flash in the HTMLLoader except when you load the SWF in Windowed mode and the AIR application window has its transparent property set to true.

                 

                 

                How could I load the AIR in fullscreen instead of windowed mode?

                And how could I set his transparent property to opaque? (in flash and flex I usually edit the object/embed/js... but AIR doesn't have a. html )

                 

                 

                If you don't scale the HTMLLoader control, the text readability should be decent -- maybe not perfect but certainly not unreadable, either.

                 

                The HTMLLoader by default has width and height set to 0. Which is the "right" scale to use?

                • 5. Re: iframe
                  ric_bia Level 1

                  Anyone could give me some helpful answers to my last questions?