4 Replies Latest reply on Aug 5, 2009 5:56 PM by VanBcGunner

    New Adobe Air 1.5.2 Fixes...


      I see this in the dev notes...


      • Before AIR 1.5.2, SWF content embedded in and HTML container in a transparent window could not be displayed. With AIR 1.5.2, SWF content can be displayed with certain wmode settings.




      Does anybody care to show an example? As far as I can see, my SWF content in transparent window still not showing, despite I made an update. Why does Adobe hate examples these days??? thanks.

        • 1. Re: New Adobe Air 1.5.2 Fixes...
          Brandon Ellis Level 1


          I've just been through this.

          I found out that the embedded swf has to have wmode="transparent". It will work fine on Mac without that property set but won't show up on Windows.


          Heres a test case:


          <?xml version="1.0" encoding="utf-8"?>
          <mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml" width="600" height="410" layout="absolute" showFlexChrome="false" creationComplete="init();">
                      private function init(): void {
                      // html snippet that includes the embed code from youtube
                      // wmode property set to transparent
                          webKit.htmlText = '<div><embed wmode="transparent" src="http://www.youtube.com/v/_BjWEn5yvmw&hl=en&fs=1&" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" height="340" width="560"></div>';


              <mx:Canvas id="holder" backgroundColor="#eeeeee" x="10" y="10" width="580" height="360" horizontalScrollPolicy="off">
                  <mx:HTML id="webKit" top="10" right="10" bottom="10" left="10" width="100%" height="100%" horizontalCenter="0" verticalCenter="0"/>
              <mx:Button x="495" y="378" label="close" click="this.close();"/>


          Hope that helps


          Brandon Ellis

          • 2. Re: New Adobe Air 1.5.2 Fixes...
            VanBcGunner Level 1

            Hum... did u set the Window to transparent???


            I don't use Flex, I use flash... here is my code...


            In AIR:


                //create the init options
                var options:NativeWindowInitOptions = new NativeWindowInitOptions();
                options.transparent = true; // set to transparent true
                options.systemChrome = NativeWindowSystemChrome.NONE;
                options.type = NativeWindowType.NORMAL;
                //create the window
                var newWindow:NativeWindow = new NativeWindow(options);
                newWindow.title = "A title";
                newWindow.width = 600;
                newWindow.height = 400;
                newWindow.stage.align = StageAlign.TOP_LEFT;
                newWindow.stage.scaleMode = StageScaleMode.NO_SCALE;

                 // create html loader that will contain the SWF.
                var ld:HTMLLoader = new HTMLLoader();
                ld.width = newWindow.width;
                ld.height = newWindow.height;

                //activate and show the new window

                 // Load the html file... Case1.html
                ld.load(new URLRequest("Case1.html"));




            CASE 1.HTML CONTENT





            <embed src="Case1.swf" quality="high" bgcolor="#ffffff" width="550" wmode="transparent"


            height="400" name="Case1" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false"


            type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/go/getflashplayer" />




            I see nothing... Any ideas??? do I need to update my flash plugin ?

            • 3. Re: New Adobe Air 1.5.2 Fixes...
              Brandon Ellis Level 1

              Not sure you can update the AIR SDK in Flash the same way you can in Flex Builder. I just tried adding it to the package in Flash and it was ignored.


              Sorry I couldn't be more help.


              Brandon Ellis

              • 4. Re: New Adobe Air 1.5.2 Fixes...
                VanBcGunner Level 1

                Thanks for trying...


                I am trying to learn how to use flex... don't know where to start... but I will download the SDK and see.