<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" xmlns:reflector="com.rictus.reflector.*" layout="absolute" verticalScrollPolicy="off" initialize="init()" viewSourceURL="srcview/index.html" backgroundGradientColors="[#5b5b5b, #282828]">
    <mx:Script>
        <![CDATA[
            import mx.events.ResizeEvent;
            
            [Bindable]
            private var appH:Number;            
            [Bindable]
            private var appW:Number;
        
            private function init():void{
                    appH = application.screen.height;
                     appW = application.screen.width;
                     this.addEventListener(ResizeEvent.RESIZE,handleAppResize);
            }

             private function handleAppResize(e:ResizeEvent):void{
                     appH = application.screen.height;
                     appW = application.screen.width;
             }


        ]]>
    </mx:Script>

        <mx:Panel id="mainpanel" x="50" y="30"  width="{appW-100}" height="{appH-(appH*0.2)}" >
            
        </mx:Panel>
        <reflector:Reflector target="{mainpanel}" alpha="0.5" falloff="0.5"/>


</mx:Application>