19 Replies Latest reply on Dec 30, 2010 4:08 PM by Gregory Lafrance

    Flex Layouts from Hell : Am i stupid or just not a rocket scientist ?

    VirtualCoder Level 1

      I have spent a solid day trying all sorts of combinations to get this to center horizontally and vertically.

       

      <?xml version="1.0" encoding="utf-8"?>

      <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"

         xmlns:s="library://ns.adobe.com/flex/spark"

         xmlns:mx="library://ns.adobe.com/flex/mx"

         backgroundColor="haloOrange"

         >

           <s:HGroup width="100%" height="100%"

                       horizontalAlign="center" verticalAlign="middle"

                       >

                     <mx:SWFLoader width="100%" height="100%"

                                 source="http://www.youtube.com/apiplayer?version=3"

                                 />

                </s:HGroup>

      </s:Application>