Author: aharui
Date: Tue Jan 29 19:06:05 2013
New Revision: 1440063

URL: http://svn.apache.org/viewvc?rev=1440063&view=rev
Log:
Default applications to no-scale and top-left

Modified:
    
flex/asjs/branches/develop/frameworks/as/src/org/apache/flex/core/Application.as

Modified: 
flex/asjs/branches/develop/frameworks/as/src/org/apache/flex/core/Application.as
URL: 
http://svn.apache.org/viewvc/flex/asjs/branches/develop/frameworks/as/src/org/apache/flex/core/Application.as?rev=1440063&r1=1440062&r2=1440063&view=diff
==============================================================================
--- 
flex/asjs/branches/develop/frameworks/as/src/org/apache/flex/core/Application.as
 (original)
+++ 
flex/asjs/branches/develop/frameworks/as/src/org/apache/flex/core/Application.as
 Tue Jan 29 19:06:05 2013
@@ -19,6 +19,9 @@
 package org.apache.flex.core
 {
     import flash.display.Sprite;
+       import flash.display.StageAlign;
+       import flash.display.StageScaleMode;
+       
     import flash.events.Event;
     
     import org.apache.flex.utils.MXMLDataInterpreter;
@@ -37,12 +40,18 @@ package org.apache.flex.core
         public function Application()
         {
             super();
+                       if (stage)
+                       {
+                               stage.align = StageAlign.TOP_LEFT;
+                               stage.scaleMode = StageScaleMode.NO_SCALE;
+                       }
+                       
             loaderInfo.addEventListener(Event.INIT, initHandler);
         }
 
         private function initHandler(event:Event):void
         {
-            MXMLDataInterpreter.generateMXMLProperties(this, MXMLProperties);
+               MXMLDataInterpreter.generateMXMLProperties(this, 
MXMLProperties);
 
             ValuesManager.valuesImpl = valuesImpl;
 


Reply via email to