flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From p...@apache.org
Subject svn commit: r1369982 [2/19] - in /incubator/flex/trunk/mustella/tests/RuntimeLocalization: ./ RTL_HaloSkin/ RTL_HaloSkin/Integration/ RTL_HaloSkin/Integration/Baselines/ RTL_HaloSkin/SWFs/ RTL_HaloSkin/SWFs/Assets/ RTL_HaloSkin/SWFs/Assets/Modules/ RTL...
Date Mon, 06 Aug 2012 20:25:38 GMT
Added: incubator/flex/trunk/mustella/tests/RuntimeLocalization/RTL_HaloSkin/Integration/RTL_Integration_ResourceBundleMetadata_1Locale_Halo.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/RuntimeLocalization/RTL_HaloSkin/Integration/RTL_Integration_ResourceBundleMetadata_1Locale_Halo.mxml?rev=1369982&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/RuntimeLocalization/RTL_HaloSkin/Integration/RTL_Integration_ResourceBundleMetadata_1Locale_Halo.mxml (added)
+++ incubator/flex/trunk/mustella/tests/RuntimeLocalization/RTL_HaloSkin/Integration/RTL_Integration_ResourceBundleMetadata_1Locale_Halo.mxml Mon Aug  6 20:25:24 2012
@@ -0,0 +1,114 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+<UnitTester testDir="RuntimeLocalization/RTL_HaloSkin/Integration/"  xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" testSWF="RTL_ResourceBundleMetadata_frFR_Read_Halo.mxml" >
+
+    <!-- this set of lines form a template that must be in each unit test -->
+        <mx:Script><![CDATA[
+            public static function init(o:DisplayObject):void{}
+        ]]></mx:Script>
+
+        <mx:Metadata><![CDATA[
+            [Mixin]
+        ]]></mx:Metadata>   
+    <!-- end of set of lines that must be in each unit test -->
+
+    <mx:Script><![CDATA[
+        import mx.controls.sliderClasses.SliderDataTip;
+        import mx.managers.SystemManager;
+
+        private var monthIndex:int;
+        private var frMonths:Array = ["fr_January","fr_February","fr_March","fr_April","fr_May","fr_June","fr_July","fr_August","fr_September","fr_October","fr_November","fr_December"];
+    ]]></mx:Script>
+
+    <testCases>
+
+<!-- 
+======================================================== 
+The associated swf launches in the fr_FR locale. 
+======================================================== 
+--> 
+
+        <!-- This checks a horizontal line through the checkbox, where the checkmark should not be. --> 
+        <TestCase frequency="all" testID="RTL_ResourceBundleMetadata_Boolean_Bundle1_Property_False_fr_Halo" description="Test that resourceManager.getXX() can be used to specify a custom resource as a Boolean in a property." keywords="[Runtime Localization,ResourceBundleMetadata,Boolean]" > 
+            <setup>
+                <ResetComponent target="ck1" className="Components.CCheckBoxSelectedGetBooleanLeft" waitEvent="updateComplete" />
+                <DispatchMouseEvent target="ck1" localX="10" localY="10" type="rollOver" waitEvent="updateComplete" />
+            </setup>
+            <body> 
+                <CompareBitmap target="ck1" url="../Integration/Baselines/$testID.png"  />
+            </body> 
+        </TestCase> 
+ 
+        <!-- This checks a horizontal line through the checkbox, where the checkmark should be. --> 
+        <TestCase frequency="all" testID="RTL_ResourceBundleMetadata_Boolean_Bundle1_Property_True_fr_Halo" description="Test that resourceManager.getXX() can be used to specify a custom resource as a Boolean in a property." keywords="[Runtime Localization,ResourceBundleMetadata,Boolean]" > 
+            <setup>
+                <ResetComponent target="ck2" className="Components.CCheckBoxSelectedGetBooleanRight" waitEvent="updateComplete" />
+                <DispatchMouseEvent target="ck2" localX="10" localY="10" type="rollOver" waitEvent="updateComplete" />
+            </setup> 
+            <body> 
+                <CompareBitmap target="ck2" url="../Integration/Baselines/$testID.png"  />
+            </body> 
+        </TestCase> 
+ 
+        <!-- The panel on the left has square bottom corners, and the panel on the right has round bottom corners. --> 
+        <TestCase frequency="all" testID="RTL_ResourceBundleMetadata_Boolean_Bundle1_Style_fr_1_Halo" description="Test that resourceManager.getXX() can be used to specify a custom resource as a Boolean in a style." keywords="[Runtime Localization,ResourceBundleMetadata,Boolean,Style]" > 
+            <setup> 
+                <ResetComponent target="pnl1" className="Components.CPanelRoundedCornersGetBooleanLeft" waitEvent="updateComplete" />
+           </setup>
+           <body> 
+               <AssertPixelValue target="pnl1" x="19" y="19" value="0x5AAB5A" />               
+           </body> 
+        </TestCase> 
+ 
+        <!-- The panel on the left has square bottom corners, and the panel on the right has round bottom corners. --> 
+        <TestCase frequency="all" testID="RTL_ResourceBundleMetadata_Boolean_Bundle1_Style_fr_2_Halo" description="Test that resourceManager.getXX() can be used to specify a custom resource as a Boolean in a style." keywords="[Runtime Localization,ResourceBundleMetadata,Boolean,Style]" > 
+            <setup> 
+                <ResetComponent target="pnl2" className="Components.CPanelRoundedCornersGetBooleanRight" waitEvent="updateComplete" />
+           </setup>
+           <body> 
+               <AssertPixelValue target="pnl2" x="19" y="19" value="0x006600" />               
+           </body> 
+        </TestCase> 
+ 
+        <!-- Check that the button is green on top and blue at the bottom. --> 
+        <TestCase frequency="all" testID="RTL_ResourceBundleMetadata_StringArray_Bundle1_Style_fr_Halo" description="Test that resourceManager.getXX() can be used to specify a custom resource as a StringArray in a style." keywords="[Runtime Localization,ResourceBundleMetadata,StringArray,Style]" > 
+            <setup>
+                <ResetComponent target="btn1" className="Components.CButtonFillColorsGetStringArray" waitEvent="updateComplete" />
+                <DispatchMouseEvent target="btn1" localX="10" localY="10" type="rollOver" waitEvent="updateComplete" />
+            </setup> 
+            <body> 
+                <AssertPixelValue target="btn1" x="20" y="1" value="0x4CA74C" /> 
+                <AssertPixelValue target="btn1" x="20" y="17" value="0x003D88" />                 
+            </body> 
+        </TestCase> 
+ 
+        <!-- Verify the backwards checkmark by examining a line across the upper half of the check box.  The tail of the check should be on the left. --> 
+        <TestCase frequency="all" testID="RTL_ResourceBundleMetadata_Class_ClassReference_Bundle1_Style_fr_Halo" description="Test that resourceManager.getXX() can be used to specify a custom resource as a Class in a style, using ClassReference." keywords="[Runtime Localization,ResourceBundleMetadata,Class,Style,ClassReference]" > 
+            <setup>
+                <ResetComponent target="ck3" className="Components.CCheckBoxSelectedIconsGetClass" waitEvent="updateComplete" />
+                <DispatchMouseEvent target="ck3" localX="10" localY="10" type="rollOver" waitEvent="updateComplete" />
+            </setup> 
+            <body> 
+                <CompareBitmap target="ck3" url="../Integration/Baselines/$testID.png"  />
+            </body> 
+        </TestCase> 
+
+    </testCases>
+</UnitTester>

Added: incubator/flex/trunk/mustella/tests/RuntimeLocalization/RTL_HaloSkin/Integration/RTL_Integration_ResourceBundleMetadata_3Locales_Halo.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/RuntimeLocalization/RTL_HaloSkin/Integration/RTL_Integration_ResourceBundleMetadata_3Locales_Halo.mxml?rev=1369982&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/RuntimeLocalization/RTL_HaloSkin/Integration/RTL_Integration_ResourceBundleMetadata_3Locales_Halo.mxml (added)
+++ incubator/flex/trunk/mustella/tests/RuntimeLocalization/RTL_HaloSkin/Integration/RTL_Integration_ResourceBundleMetadata_3Locales_Halo.mxml Mon Aug  6 20:25:24 2012
@@ -0,0 +1,307 @@
+<?xml version="1.0" encoding="utf-8"?> 
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+<UnitTester testDir="RuntimeLocalization/RTL_HaloSkin/Integration/"  xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" testSWF="RTL_ResourceBundleMetadata_frFR_jaJP_enUS_Halo.mxml" > 
+ 
+    <!-- this set of lines form a template that must be in each unit test --> 
+        <mx:Script><![CDATA[ 
+            public static function init(o:DisplayObject):void{} 
+        ]]></mx:Script> 
+ 
+        <mx:Metadata><![CDATA[ 
+            [Mixin] 
+        ]]></mx:Metadata>    
+    <!-- end of set of lines that must be in each unit test --> 
+ 
+    <mx:Script><![CDATA[ 
+        import mx.controls.sliderClasses.SliderDataTip;
+        import mx.managers.SystemManager;
+    	import mx.resources.ResourceManager;
+	
+        private var monthIndex:int; 
+        private var frMonths:Array = ["fr_January","fr_February","fr_March","fr_April","fr_May","fr_June","fr_July","fr_August","fr_September","fr_October","fr_November","fr_December"]; 
+        private var jaMonths:Array = ["ja_January","ja_February","ja_March","ja_April","ja_May","ja_June","ja_July","ja_August","ja_September","ja_October","ja_November","ja_December"]; 
+        private var enMonths:Array = ["en_January","en_February","en_March","en_April","en_May","en_June","en_July","en_August","en_September","en_October","en_November","en_December"]; 
+
+    ]]></mx:Script> 
+ 
+    <testCases> 
+	
+    <!-- General approach:
+         <setup>
+           - Set to an undesired locale chain.  No need to wait for an event.
+           - ResetComponent: Do this with a custom component, because we're using binding expressions.
+            - Wait for updateComplete.
+         </setup>
+         <body>
+           - Set to a desired locale chain and wait for the updateComplete that should result from the locale chain change.
+           (- Assert that the ResourceManager dispatches a change event...slight override of the test case, maybe should move to Events.)
+           - Verify that the controls are updated.
+         </body>
+    -->
+     
+<!-- 
+======================================================== 
+The associated swf launches in the fr_FR locale. 
+======================================================== 
+-->  
+        <!-- This checks a horizontal line through the checkbox, where the checkmark should not be. --> 
+        <TestCase frequency="all" testID="RTL_ResourceBundleMetadata_Boolean_Bundle1_Property_False_fr_2_Halo" description="Test that resourceManager.getXX() can be used to specify a custom resource as a Boolean in a property." keywords="[Runtime Localization,ResourceBundleMetadata,Boolean]" > 
+            <setup>
+                <RunCode code="ResourceManager.getInstance().localeChain=['en_US','ja_JP','fr_FR']" />
+                <ResetComponent target="ck1" className="Components.CCheckBoxSelectedGetBooleanLeft" waitEvent="updateComplete" />
+                <DispatchMouseEvent target="ck1" localX="10" localY="10" type="rollOver" waitEvent="updateComplete" />
+            </setup>
+            <body> 
+                <RunCode code="ResourceManager.getInstance().localeChain=['fr_FR','ja_JP','en_US']" waitEvent="updateComplete" waitTarget="ck1" />
+                <CompareBitmap target="ck1" url="../Integration/Baselines/$testID.png"  />
+            </body> 
+        </TestCase> 
+ 
+        <!-- This checks a horizontal line through the checkbox, where the checkmark should be. --> 
+        <TestCase frequency="all" testID="RTL_ResourceBundleMetadata_Boolean_Bundle1_Property_True_fr_2_Halo" description="Test that resourceManager.getXX() can be used to specify a custom resource as a Boolean in a property." keywords="[Runtime Localization,ResourceBundleMetadata,Boolean]" > 
+            <setup>
+                <RunCode code="ResourceManager.getInstance().localeChain=['en_US','ja_JP','fr_FR']" />
+                <ResetComponent target="ck2" className="Components.CCheckBoxSelectedGetBooleanRight" waitEvent="updateComplete" />
+                <DispatchMouseEvent target="ck2" localX="10" localY="10" type="rollOver" waitEvent="updateComplete" />
+            </setup> 
+            <body> 
+                <RunCode code="ResourceManager.getInstance().localeChain=['fr_FR','ja_JP','en_US']" waitEvent="updateComplete" waitTarget="ck2" />
+                <CompareBitmap target="ck2" url="../Integration/Baselines/$testID.png"  />
+            </body> 
+        </TestCase> 
+ 
+        <!-- The panel on the left has square bottom corners, and the panel on the right has round bottom corners. --> 
+        <TestCase frequency="all" testID="RTL_ResourceBundleMetadata_Boolean_Bundle1_Style_fr_1_Halo" description="Test that resourceManager.getXX() can be used to specify a custom resource as a Boolean in a style." keywords="[Runtime Localization,ResourceBundleMetadata,Boolean,Style]" > 
+            <setup>	
+                <RunCode code="ResourceManager.getInstance().localeChain=['en_US','ja_JP','fr_FR']" />
+                <ResetComponent target="pnl1" className="Components.CPanelRoundedCornersGetBooleanLeft" waitEvent="updateComplete" />
+           </setup>
+           <body> 
+               <RunCode code="ResourceManager.getInstance().localeChain=['fr_FR','ja_JP','en_US']" waitEvent="updateComplete" waitTarget="pnl1" />
+               <AssertPixelValue target="pnl1" x="19" y="19" value="0x5AAB5A" />               
+           </body> 
+        </TestCase> 
+ 
+        <!-- The panel on the left has square bottom corners, and the panel on the right has round bottom corners. --> 
+        <TestCase frequency="all" testID="RTL_ResourceBundleMetadata_Boolean_Bundle1_Style_fr_2_Halo" description="Test that resourceManager.getXX() can be used to specify a custom resource as a Boolean in a style." keywords="[Runtime Localization,ResourceBundleMetadata,Boolean,Style]" > 
+            <setup>	
+                <RunCode code="ResourceManager.getInstance().localeChain=['en_US','ja_JP','fr_FR']" />
+                <ResetComponent target="pnl2" className="Components.CPanelRoundedCornersGetBooleanRight" waitEvent="updateComplete" />
+           </setup>
+           <body> 
+               <RunCode code="ResourceManager.getInstance().localeChain=['fr_FR','ja_JP','en_US']" waitEvent="updateComplete" waitTarget="pnl2" />
+               <AssertPixelValue target="pnl2" x="19" y="19" value="0x006600" />               
+           </body> 
+        </TestCase> 
+ 
+        <!-- Check that the button is green on top and blue at the bottom. --> 
+        <TestCase frequency="all" testID="RTL_ResourceBundleMetadata_StringArray_Bundle1_Style_fr_Halo" description="Test that resourceManager.getXX() can be used to specify a custom resource as a StringArray in a style." keywords="[Runtime Localization,ResourceBundleMetadata,StringArray,Style]" > 
+            <setup>
+                <RunCode code="ResourceManager.getInstance().localeChain=['ja_JP','fr_FR','en_US']" />
+                <ResetComponent target="btn1" className="Components.CButtonFillColorsGetStringArray" waitEvent="updateComplete" />
+                <DispatchMouseEvent target="btn1" localX="10" localY="10" type="rollOver" waitEvent="updateComplete" />
+            </setup> 
+            <body> 
+                <RunCode code="ResourceManager.getInstance().localeChain=['fr_FR','ja_JP','en_US']" waitEvent="updateComplete" waitTarget="btn1" />
+                <AssertPixelValue target="btn1" x="20" y="1" value="0x4CA74C" /> 
+                <AssertPixelValue target="btn1" x="20" y="17" value="0x003D88" />                 
+            </body> 
+        </TestCase> 
+ 
+        <!-- Verify the backwards checkmark by examining a line across the upper half of the check box.  The tail of the check should be on the left. --> 
+        <TestCase frequency="all" testID="RTL_ResourceBundleMetadata_Class_ClassReference_Bundle1_Style_fr_2_Halo" description="Test that resourceManager.getXX() can be used to specify a custom resource as a Class in a style, using ClassReference." keywords="[Runtime Localization,ResourceBundleMetadata,Class,Style,ClassReference]" > 
+            <setup>
+                <RunCode code="ResourceManager.getInstance().localeChain=['ja_JP','fr_FR','en_US']" />
+                <ResetComponent target="ck3" className="Components.CCheckBoxSelectedIconsGetClass" waitEvent="updateComplete" />
+                <DispatchMouseEvent target="ck3" localX="10" localY="10" type="rollOver" waitEvent="updateComplete" />
+            </setup> 
+            <body> 
+                <RunCode code="ResourceManager.getInstance().localeChain=['fr_FR','ja_JP','en_US']" waitEvent="updateComplete" waitTarget="ck3" />
+                <CompareBitmap target="ck3" url="../Integration/Baselines/$testID.png"  />
+            </body> 
+        </TestCase> 
+ 
+<!-- 
+======================================================== 
+Verify that things are correct when we switch to ja_JP. 
+======================================================== 
+--> 
+        <!-- This checks a horizontal line through the checkbox, where the checkmark should be. --> 
+        <TestCase frequency="all" testID="RTL_ResourceBundleMetadata_Boolean_Bundle1_Property_True_ja_Halo" description="Test that resourceManager.getXX() can be used to specify a custom resource as a Boolean in a property." keywords="[Runtime Localization,ResourceBundleMetadata,Boolean]" > 
+            <setup>
+                <RunCode code="ResourceManager.getInstance().localeChain=['fr_FR','ja_JP','en_US']" />
+                <ResetComponent target="ck1" className="Components.CCheckBoxSelectedGetBooleanLeft" waitEvent="updateComplete" />
+                <DispatchMouseEvent target="ck1" localX="10" localY="10" type="rollOver" waitEvent="updateComplete" />
+            </setup>
+            <body> 
+                <RunCode code="ResourceManager.getInstance().localeChain=['ja_JP','fr_FR','en_US']" waitEvent="updateComplete" waitTarget="ck1" />
+                <CompareBitmap target="ck1" url="../Integration/Baselines/$testID.png"  />
+            </body> 
+        </TestCase> 
+ 
+        <!-- This checks a horizontal line through the checkbox, where the checkmark should be. --> 
+        <TestCase frequency="all" testID="RTL_ResourceBundleMetadata_Boolean_Bundle1_Property_True2_ja_Halo" description="Test that resourceManager.getXX() can be used to specify a custom resource as a Boolean in a property." keywords="[Runtime Localization,ResourceBundleMetadata,Boolean]" > 
+            <setup>
+                <RunCode code="ResourceManager.getInstance().localeChain=['en_US','ja_JP','fr_FR']" />
+                <ResetComponent target="ck2" className="Components.CCheckBoxSelectedGetBooleanRight" waitEvent="updateComplete" />
+                <DispatchMouseEvent target="ck2" localX="10" localY="10" type="rollOver" waitEvent="updateComplete" />
+            </setup> 
+            <body> 
+                <RunCode code="ResourceManager.getInstance().localeChain=['ja_JP','fr_FR','en_US']" waitEvent="updateComplete" waitTarget="ck2" />
+                <CompareBitmap target="ck2" url="../Integration/Baselines/$testID.png"  />
+            </body> 
+        </TestCase> 
+ 
+
+        <!-- Check for the rounded corner of the panel on the left. --> 
+        <TestCase frequency="all" testID="RTL_ResourceBundleMetadata_Boolean_Bundle1_Style_ja_1_Halo" description="Test that resourceManager.getXX() can be used to specify a custom resource as a Boolean in a style." keywords="[Runtime Localization,ResourceBundleMetadata,Boolean,Style]" > 
+            <setup>	
+                <RunCode code="ResourceManager.getInstance().localeChain=['fr_FR','ja_JP','en_US']" />
+                <ResetComponent target="pnl1" className="Components.CPanelRoundedCornersGetBooleanLeft" waitEvent="updateComplete" />
+           </setup>
+            <body> 
+                <RunCode code="ResourceManager.getInstance().localeChain=['ja_JP','fr_FR','en_US']" waitEvent="updateComplete" waitTarget="pnl1" />
+                <AssertPixelValue target="pnl1" x="19" y="19" value="0x006600" />                 
+            </body> 
+        </TestCase> 
+ 
+       <!-- Check for the rounded corner of the panel on the right. --> 
+        <TestCase frequency="all" testID="RTL_ResourceBundleMetadata_Boolean_Bundle1_Style_ja_2_Halo" description="Test that resourceManager.getXX() can be used to specify a custom resource as a Boolean in a style." keywords="[Runtime Localization,ResourceBundleMetadata,Boolean,Style]" > 
+            <setup>	
+                <RunCode code="ResourceManager.getInstance().localeChain=['en_US','ja_JP','fr_FR']" />
+                <ResetComponent target="pnl2" className="Components.CPanelRoundedCornersGetBooleanRight" waitEvent="updateComplete" /> 
+           </setup>
+            <body> 
+                <RunCode code="ResourceManager.getInstance().localeChain=['ja_JP','fr_FR','en_US']" waitEvent="updateComplete" waitTarget="pnl2" /> 
+                <AssertPixelValue target="pnl2" x="19" y="19" value="0x006600" />                
+            </body> 
+        </TestCase> 
+
+        <!-- Check that the button is white on top and red at the bottom. --> 
+        <TestCase frequency="all" testID="RTL_ResourceBundleMetadata_StringArray_Bundle1_Style_ja_Halo" description="Test that resourceManager.getXX() can be used to specify a custom resource as a StringArray in a style." keywords="[Runtime Localization,ResourceBundleMetadata,StringArray,Style]" > 
+            <setup>
+                <RunCode code="ResourceManager.getInstance().localeChain=['fr_FR','ja_JP','en_US']" />
+                <ResetComponent target="btn1" className="Components.CButtonFillColorsGetStringArray" waitEvent="updateComplete" />
+                <DispatchMouseEvent target="btn1" localX="10" localY="10" type="rollOver" waitEvent="updateComplete" />
+            </setup> 
+            <body> 
+                <RunCode code="ResourceManager.getInstance().localeChain=['ja_JP','fr_FR','en_US']" waitEvent="updateComplete" waitTarget="btn1" /> 
+                <AssertPixelValue target="btn1" x="20" y="1" value="0xD2EAD2" /> 
+                <AssertPixelValue target="btn1" x="20" y="17" value="0xAA4F22" />                  
+            </body> 
+        </TestCase> 
+ 
+        <!-- Verify the box by examining a line across the middle of the check box. (The checkmark is a square.) --> 
+        <TestCase frequency="all" testID="RTL_ResourceBundleMetadata_Class_ClassReference_Bundle1_Style_ja_Halo" description="Test that resourceManager.getXX() can be used to specify a custom resource as a Class in a style, using ClassReference." keywords="[Runtime Localization,ResourceBundleMetadata,Class,Style,ClassReference]" > 
+            <setup> 
+                <RunCode code="ResourceManager.getInstance().localeChain=['fr_FR','ja_JP','en_US']" />
+                <ResetComponent target="ck3" className="Components.CCheckBoxSelectedIconsGetClass" waitEvent="updateComplete" />
+                <DispatchMouseEvent target="ck3" localX="10" localY="10" type="rollOver" waitEvent="updateComplete" /> 
+            </setup> 
+            <body>
+                <RunCode code="ResourceManager.getInstance().localeChain=['ja_JP','fr_FR','en_US']" waitEvent="updateComplete" waitTarget="ck3" /> 
+                <CompareBitmap target="ck3" url="../Integration/Baselines/$testID.png"  />
+            </body> 
+        </TestCase> 
+ 
+<!-- 
+======================================================== 
+Verify that things are right when we switch to en_US. 
+======================================================== 
+--> 
+        <!-- This checks a horizontal line through the checkbox, where the checkmark should be. --> 
+        <TestCase frequency="all" testID="RTL_ResourceBundleMetadata_Boolean_Bundle1_Property_en_1_Halo" description="Test that resourceManager.getXX() can be used to specify a custom resource as a Boolean in a property." keywords="[Runtime Localization,ResourceBundleMetadata,Boolean]" > 
+            <setup>
+                <RunCode code="ResourceManager.getInstance().localeChain=['fr_FR','ja_JP','en_US']" />
+                <ResetComponent target="ck1" className="Components.CCheckBoxSelectedGetBooleanLeft" waitEvent="updateComplete" />
+                <DispatchMouseEvent target="ck1" localX="10" localY="10" type="rollOver" waitEvent="updateComplete" />
+            </setup>
+            <body> 
+                <RunCode code="ResourceManager.getInstance().localeChain=['en_US','ja_JP','fr_FR']" waitEvent="updateComplete" waitTarget="ck1" />
+                <CompareBitmap target="ck1" url="../Integration/Baselines/$testID.png"  />
+            </body> 
+        </TestCase> 
+ 
+        <!-- This checks a horizontal line through the checkbox, where the checkmark should not be. --> 
+        <TestCase frequency="all" testID="RTL_ResourceBundleMetadata_Boolean_Bundle1_Property_en_2_Halo" description="Test that resourceManager.getXX() can be used to specify a custom resource as a Boolean in a property." keywords="[Runtime Localization,ResourceBundleMetadata,Boolean]" > 
+            <setup>
+                <RunCode code="ResourceManager.getInstance().localeChain=['fr_FR','ja_JP','en_US']" />
+                <ResetComponent target="ck2" className="Components.CCheckBoxSelectedGetBooleanRight" waitEvent="updateComplete" />
+                <DispatchMouseEvent target="ck2" localX="10" localY="10" type="rollOver" waitEvent="updateComplete" />
+            </setup> 
+            <body> 
+                <RunCode code="ResourceManager.getInstance().localeChain=['en_US','ja_JP','fr_FR']" waitEvent="updateComplete" waitTarget="ck2" />
+                <CompareBitmap target="ck2" url="../Integration/Baselines/$testID.png"  />
+            </body> 
+        </TestCase> 
+ 
+        <!-- Check for the rounded corner of the panel on the left. --> 
+        <TestCase frequency="all" testID="RTL_ResourceBundleMetadata_Boolean_Bundle1_Style_en_1_Halo" description="Test that resourceManager.getXX() can be used to specify a custom resource as a Boolean in a style." keywords="[Runtime Localization,ResourceBundleMetadata,Boolean,Style]" > 
+            <setup>	
+                <RunCode code="ResourceManager.getInstance().localeChain=['fr_FR','ja_JP','en_US']" />
+                <ResetComponent target="pnl1" className="Components.CPanelRoundedCornersGetBooleanLeft" waitEvent="updateComplete" />
+           </setup>
+            <body> 
+                <RunCode code="ResourceManager.getInstance().localeChain=['en_US','ja_JP','fr_FR']" waitEvent="updateComplete" waitTarget="lbl7" />
+                <AssertPixelValue target="pnl1" x="19" y="19" value="0x006600" />                                 
+            </body> 
+        </TestCase> 
+ 
+       <!-- Check for the square corner of the panel on the right. --> 
+        <TestCase frequency="all" testID="RTL_ResourceBundleMetadata_Boolean_Bundle1_Style_en_2_Halo" description="Test that resourceManager.getXX() can be used to specify a custom resource as a Boolean in a style." keywords="[Runtime Localization,ResourceBundleMetadata,Boolean,Style]" > 
+            <setup>	
+                <RunCode code="ResourceManager.getInstance().localeChain=['fr_FR','ja_JP','en_US']" />
+                <ResetComponent target="pnl2" className="Components.CPanelRoundedCornersGetBooleanRight" waitEvent="updateComplete" />
+           </setup>
+            <body> 
+                <RunCode code="ResourceManager.getInstance().localeChain=['en_US','ja_JP','fr_FR']" waitEvent="updateComplete" waitTarget="pnl2" />
+                <AssertPixelValue target="pnl2" x="19" y="19" value="0x5AAB5A" />
+            </body> 
+        </TestCase> 
+ 
+        <!-- Check that the button is red on top and blue at the bottom. --> 
+        <TestCase frequency="all" testID="RTL_ResourceBundleMetadata_StringArray_Bundle1_Style_en_Halo" description="Test that resourceManager.getXX() can be used to specify a custom resource as a StringArray in a style." keywords="[Runtime Localization,ResourceBundleMetadata,StringArray,Style]" > 
+            <setup>
+                <RunCode code="ResourceManager.getInstance().localeChain=['fr_FR','ja_JP','en_US']" />
+                <ResetComponent target="btn1" className="Components.CButtonFillColorsGetStringArray" waitEvent="updateComplete" />
+                <DispatchMouseEvent target="btn1" localX="10" localY="10" type="rollOver" waitEvent="updateComplete" />
+            </setup> 
+            <body> 
+                <RunCode code="ResourceManager.getInstance().localeChain=['en_US','ja_JP','fr_FR']" waitEvent="updateComplete" waitTarget="btn1" />
+                <AssertPixelValue target="btn1" x="20" y="1" value="0x93634C" /> 
+                <AssertPixelValue target="btn1" x="20" y="17" value="0x122D48" />                 
+            </body> 
+        </TestCase> 
+ 
+        <!-- Verify the standard checkmark by examining a line across the upper half of the check box.  The tail of the check should be on the right. --> 
+        <TestCase frequency="all" testID="RTL_ResourceBundleMetadata_Class_ClassReference_Bundle1_Style_en_Halo" description="Test that resourceManager.getXX() can be used to specify a custom resource as a Class in a style, using ClassReference." keywords="[Runtime Localization,ResourceBundleMetadata,Class,Style,ClassReference]" > 
+            <setup>
+                <RunCode code="ResourceManager.getInstance().localeChain=['fr_FR','ja_JP','en_US']" />
+                <ResetComponent target="ck3" className="Components.CCheckBoxSelectedIconsGetClass" waitEvent="updateComplete" />
+                <DispatchMouseEvent target="ck3" localX="10" localY="10" type="rollOver" waitEvent="updateComplete" />
+            </setup> 
+            <body> 
+               <RunCode code="ResourceManager.getInstance().localeChain=['en_US','ja_JP','fr_FR']" waitEvent="updateComplete" waitTarget="ck3" />
+               <CompareBitmap target="ck3" url="../Integration/Baselines/$testID.png"  />
+            </body> 
+        </TestCase> 
+ 
+    </testCases> 
+</UnitTester> 

Added: incubator/flex/trunk/mustella/tests/RuntimeLocalization/RTL_HaloSkin/SWFs/Assets/Modules/module_framework.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/RuntimeLocalization/RTL_HaloSkin/SWFs/Assets/Modules/module_framework.mxml?rev=1369982&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/RuntimeLocalization/RTL_HaloSkin/SWFs/Assets/Modules/module_framework.mxml (added)
+++ incubator/flex/trunk/mustella/tests/RuntimeLocalization/RTL_HaloSkin/SWFs/Assets/Modules/module_framework.mxml Mon Aug  6 20:25:24 2012
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+<mx:Module xmlns:mx="http://www.adobe.com/2006/mxml" width="100%" height="100%">
+    <mx:DateChooser id="dc1" />
+</mx:Module>

Added: incubator/flex/trunk/mustella/tests/RuntimeLocalization/RTL_HaloSkin/SWFs/Assets/Modules/module_nonframework.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/RuntimeLocalization/RTL_HaloSkin/SWFs/Assets/Modules/module_nonframework.mxml?rev=1369982&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/RuntimeLocalization/RTL_HaloSkin/SWFs/Assets/Modules/module_nonframework.mxml (added)
+++ incubator/flex/trunk/mustella/tests/RuntimeLocalization/RTL_HaloSkin/SWFs/Assets/Modules/module_nonframework.mxml Mon Aug  6 20:25:24 2012
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+<mx:Module xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" width="100%" height="100%">
+    <mx:Label id="lbl1" text="@Resource(bundle='bundle1', key='SHUTDOWN')" />
+</mx:Module>
\ No newline at end of file

Added: incubator/flex/trunk/mustella/tests/RuntimeLocalization/RTL_HaloSkin/SWFs/Assets/RTL_MustellaFileSummary.xls
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/RuntimeLocalization/RTL_HaloSkin/SWFs/Assets/RTL_MustellaFileSummary.xls?rev=1369982&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/RuntimeLocalization/RTL_HaloSkin/SWFs/Assets/RTL_MustellaFileSummary.xls
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/RuntimeLocalization/RTL_HaloSkin/SWFs/Assets/bundles/custom/de_DE/bundle1.properties
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/RuntimeLocalization/RTL_HaloSkin/SWFs/Assets/bundles/custom/de_DE/bundle1.properties?rev=1369982&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/RuntimeLocalization/RTL_HaloSkin/SWFs/Assets/bundles/custom/de_DE/bundle1.properties (added)
+++ incubator/flex/trunk/mustella/tests/RuntimeLocalization/RTL_HaloSkin/SWFs/Assets/bundles/custom/de_DE/bundle1.properties Mon Aug  6 20:25:24 2012
@@ -0,0 +1,59 @@
+################################################################################
+##
+##  Licensed to the Apache Software Foundation (ASF) under one or more
+##  contributor license agreements.  See the NOTICE file distributed with
+##  this work for additional information regarding copyright ownership.
+##  The ASF licenses this file to You under the Apache License, Version 2.0
+##  (the "License"); you may not use this file except in compliance with
+##  the License.  You may obtain a copy of the License at
+##
+##      http://www.apache.org/licenses/LICENSE-2.0
+##
+##  Unless required by applicable law or agreed to in writing, software
+##  distributed under the License is distributed on an "AS IS" BASIS,
+##  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+##  See the License for the specific language governing permissions and
+##  limitations under the License.
+##
+################################################################################
+# This is sample data for a 1st resource bundle in the de_DE locale.
+
+# Strings
+SHUTDOWN=geschlossen
+CHECKFORUPDATES=überprüfen Sie auf Updates
+EMPTYSTRING=
+FONTSTYLERIGHT=italic
+FONTSTYLELEFT=italic
+
+# String Arrays
+NEIGHBORS=Netherlands,Belgium,Luxemburg,France,Switzerland,Austria,Czech Republic,Poland,Denmark
+MONTHNAMES=de_January,de_February,de_March,de_April,de_May,de_June,de_July,de_August,de_September,de_October,de_November,de_December
+FILLCOLORS=white,red
+
+# Numbers
+MEDIANAGE=43
+MEDIANAGE_DECIMAL_PERIOD=42.9
+MEDIANAGE_DECIMAL_COMMA=42,9
+POPULATION=127463611
+EMPTYNUMBER=
+ALPHA=0.5
+MAXCHARS=3
+SELECTEDCOLOR=0xFF0000
+FONTSIZELEFT=3
+FONTSIZERIGHT=3
+PRECISION=5
+TEXTCOLOR=0x00FF00
+
+# Booleans
+TESTBOOL_TRUE=true
+TESTBOOL_FALSE=false
+EMPTYBOOLEAN=
+LEFTCHECKBOX=true
+RIGHTCHECKBOX=true
+
+# Classes
+FLAG=Embed("../../../../../../../../Assets/Images/FlagImages/flag_de_DE.png")
+
+# Objects
+# Get any of the above to test Object.  They all work by using getObject, then
+# casting to the expected type. 
\ No newline at end of file

Added: incubator/flex/trunk/mustella/tests/RuntimeLocalization/RTL_HaloSkin/SWFs/Assets/bundles/custom/de_DE/styles.properties
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/RuntimeLocalization/RTL_HaloSkin/SWFs/Assets/bundles/custom/de_DE/styles.properties?rev=1369982&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/RuntimeLocalization/RTL_HaloSkin/SWFs/Assets/bundles/custom/de_DE/styles.properties (added)
+++ incubator/flex/trunk/mustella/tests/RuntimeLocalization/RTL_HaloSkin/SWFs/Assets/bundles/custom/de_DE/styles.properties Mon Aug  6 20:25:24 2012
@@ -0,0 +1,19 @@
+################################################################################
+##
+##  Licensed to the Apache Software Foundation (ASF) under one or more
+##  contributor license agreements.  See the NOTICE file distributed with
+##  this work for additional information regarding copyright ownership.
+##  The ASF licenses this file to You under the Apache License, Version 2.0
+##  (the "License"); you may not use this file except in compliance with
+##  the License.  You may obtain a copy of the License at
+##
+##      http://www.apache.org/licenses/LICENSE-2.0
+##
+##  Unless required by applicable law or agreed to in writing, software
+##  distributed under the License is distributed on an "AS IS" BASIS,
+##  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+##  See the License for the specific language governing permissions and
+##  limitations under the License.
+##
+################################################################################
+

Added: incubator/flex/trunk/mustella/tests/RuntimeLocalization/RTL_HaloSkin/SWFs/Assets/bundles/custom/de_DE/test.properties
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/RuntimeLocalization/RTL_HaloSkin/SWFs/Assets/bundles/custom/de_DE/test.properties?rev=1369982&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/RuntimeLocalization/RTL_HaloSkin/SWFs/Assets/bundles/custom/de_DE/test.properties (added)
+++ incubator/flex/trunk/mustella/tests/RuntimeLocalization/RTL_HaloSkin/SWFs/Assets/bundles/custom/de_DE/test.properties Mon Aug  6 20:25:24 2012
@@ -0,0 +1,27 @@
+################################################################################
+##
+##  Licensed to the Apache Software Foundation (ASF) under one or more
+##  contributor license agreements.  See the NOTICE file distributed with
+##  this work for additional information regarding copyright ownership.
+##  The ASF licenses this file to You under the Apache License, Version 2.0
+##  (the "License"); you may not use this file except in compliance with
+##  the License.  You may obtain a copy of the License at
+##
+##      http://www.apache.org/licenses/LICENSE-2.0
+##
+##  Unless required by applicable law or agreed to in writing, software
+##  distributed under the License is distributed on an "AS IS" BASIS,
+##  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+##  See the License for the specific language governing permissions and
+##  limitations under the License.
+##
+################################################################################
+ERROR=エラー
+
+SHUTDOWN=シャットダウンされています
+
+REBOOT=リブートします
+
+LOGOUT=ログアウトしてください
+
+CHECKFORUPDATES=アップデートについてのチェック
\ No newline at end of file

Added: incubator/flex/trunk/mustella/tests/RuntimeLocalization/RTL_HaloSkin/SWFs/Assets/bundles/custom/en_US/HaloColors.as
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/RuntimeLocalization/RTL_HaloSkin/SWFs/Assets/bundles/custom/en_US/HaloColors.as?rev=1369982&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/RuntimeLocalization/RTL_HaloSkin/SWFs/Assets/bundles/custom/en_US/HaloColors.as (added)
+++ incubator/flex/trunk/mustella/tests/RuntimeLocalization/RTL_HaloSkin/SWFs/Assets/bundles/custom/en_US/HaloColors.as Mon Aug  6 20:25:24 2012
@@ -0,0 +1,104 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  Licensed to the Apache Software Foundation (ASF) under one or more
+//  contributor license agreements.  See the NOTICE file distributed with
+//  this work for additional information regarding copyright ownership.
+//  The ASF licenses this file to You under the Apache License, Version 2.0
+//  (the "License"); you may not use this file except in compliance with
+//  the License.  You may obtain a copy of the License at
+//
+//      http://www.apache.org/licenses/LICENSE-2.0
+//
+//  Unless required by applicable law or agreed to in writing, software
+//  distributed under the License is distributed on an "AS IS" BASIS,
+//  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//  See the License for the specific language governing permissions and
+//  limitations under the License.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+package
+{
+
+import mx.utils.ColorUtil;
+
+/**
+ *  Defines the colors used by components that support the Halo theme.
+ */
+public class HaloColors 
+{
+    //include "../../core/Version.as";
+
+    //--------------------------------------------------------------------------
+    //
+    //  Class variables
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  @private
+     */
+    private static var cache:Object = {};
+    
+    //--------------------------------------------------------------------------
+    //
+    //  Class methods
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  Returns a unique hash key based on the colors that are passed in. This
+     *  key is used to store the calculated colors so they only need to be 
+     *  calculated once.
+     */
+    public static function getCacheKey(... colors):String
+    {
+        return colors.join(",");
+    }
+
+    /**
+     *  Calculates colors that are used by components that support the Halo theme, such as the colors of beveled edges.
+     *  This method uses the <code>themeColor</code> and <code>fillColors</code> properties to calculate its colors. 
+     * 
+     *  @param colors 
+     *  @param themeColor The value of the <code>themeColor</code> style property.
+     *  @param fillColor0 The start color of a fill.
+     *  @param fillColor1 The end color of a fill.
+     */
+    public static function addHaloColors(colors:Object,
+                                         themeColor:uint,
+                                         fillColor0:uint,
+                                         fillColor1:uint):void
+    {
+        var key:String = getCacheKey(themeColor, fillColor0, fillColor1); 
+        var o:Object = cache[key];
+        
+        if (!o)
+        {
+            o = cache[key] = {};
+            
+            // Cross-component styles
+            o.themeColLgt = ColorUtil.adjustBrightness(themeColor, 100);
+            o.themeColDrk1 = ColorUtil.adjustBrightness(themeColor, -75);
+            o.themeColDrk2 = ColorUtil.adjustBrightness(themeColor, -25);
+            o.fillColorBright1 = ColorUtil.adjustBrightness2(fillColor0, 15);
+            o.fillColorBright2 = ColorUtil.adjustBrightness2(fillColor1, 15);
+            o.fillColorPress1 = ColorUtil.adjustBrightness2(themeColor, 85);
+            o.fillColorPress2 = ColorUtil.adjustBrightness2(themeColor, 60);
+            o.bevelHighlight1 = ColorUtil.adjustBrightness2(fillColor0, 40);
+            o.bevelHighlight2 = ColorUtil.adjustBrightness2(fillColor1, 40);
+        }
+        
+        colors.themeColLgt = o.themeColLgt;
+        colors.themeColDrk1 = o.themeColDrk1;
+        colors.themeColDrk2 = o.themeColDrk2;
+        colors.fillColorBright1 = o.fillColorBright1;
+        colors.fillColorBright2 = o.fillColorBright2;
+        colors.fillColorPress1 = o.fillColorPress1;
+        colors.fillColorPress2 = o.fillColorPress2;
+        colors.bevelHighlight1 = o.bevelHighlight1;
+        colors.bevelHighlight2 = o.bevelHighlight2;
+    }
+}
+
+}

Added: incubator/flex/trunk/mustella/tests/RuntimeLocalization/RTL_HaloSkin/SWFs/Assets/bundles/custom/en_US/MyCheckBoxIcon_en_US.as
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/RuntimeLocalization/RTL_HaloSkin/SWFs/Assets/bundles/custom/en_US/MyCheckBoxIcon_en_US.as?rev=1369982&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/RuntimeLocalization/RTL_HaloSkin/SWFs/Assets/bundles/custom/en_US/MyCheckBoxIcon_en_US.as (added)
+++ incubator/flex/trunk/mustella/tests/RuntimeLocalization/RTL_HaloSkin/SWFs/Assets/bundles/custom/en_US/MyCheckBoxIcon_en_US.as Mon Aug  6 20:25:24 2012
@@ -0,0 +1,427 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  Licensed to the Apache Software Foundation (ASF) under one or more
+//  contributor license agreements.  See the NOTICE file distributed with
+//  this work for additional information regarding copyright ownership.
+//  The ASF licenses this file to You under the Apache License, Version 2.0
+//  (the "License"); you may not use this file except in compliance with
+//  the License.  You may obtain a copy of the License at
+//
+//      http://www.apache.org/licenses/LICENSE-2.0
+//
+//  Unless required by applicable law or agreed to in writing, software
+//  distributed under the License is distributed on an "AS IS" BASIS,
+//  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//  See the License for the specific language governing permissions and
+//  limitations under the License.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+package
+{
+
+import flash.display.GradientType;
+import flash.display.Graphics;
+import mx.skins.Border;
+import mx.styles.StyleManager;
+import mx.utils.ColorUtil;
+
+/**
+ *  The skin for all the states of the icon in a CheckBox.
+ */
+public class MyCheckBoxIcon_en_US extends Border
+{
+    //include "../../core/Version.as";
+
+    //--------------------------------------------------------------------------
+    //
+    //  Class variables
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  @private
+     */
+    private static var cache:Object = {};
+    
+    //--------------------------------------------------------------------------
+    //
+    //  Class methods
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  @private
+     *  Several colors used for drawing are calculated from the base colors
+     *  of the component (themeColor, borderColor and fillColors).
+     *  Since these calculations can be a bit expensive,
+     *  we calculate once per color set and cache the results.
+     */
+    private static function calcDerivedStyles(themeColor:uint,
+                                              borderColor:uint,
+                                              fillColor0:uint,
+                                              fillColor1:uint):Object
+    {
+        var key:String = HaloColors.getCacheKey(themeColor, borderColor,
+                                                fillColor0, fillColor1);
+        
+        if (!cache[key])
+        {
+            var o:Object = cache[key] = {};
+            
+            // Cross-component styles.
+            HaloColors.addHaloColors(o, themeColor, fillColor0, fillColor1);
+            
+            // CheckBox-specific styles.
+            o.borderColorDrk1 = ColorUtil.adjustBrightness2(borderColor, -50);
+        }
+        
+        return cache[key];
+    }
+    
+    //--------------------------------------------------------------------------
+    //
+    //  Constructor
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  Constructor.
+     */
+    public function MyCheckBoxIcon_en_US()
+    {
+        super();
+    }
+
+    //--------------------------------------------------------------------------
+    //
+    //  Overridden properties
+    //
+    //--------------------------------------------------------------------------
+
+    //----------------------------------
+    //  measuredWidth
+    //----------------------------------
+    
+    /**
+     *  @private
+     */    
+    override public function get measuredWidth():Number
+    {
+        return 14;
+    }
+    
+    //----------------------------------
+    //  measuredHeight
+    //----------------------------------
+    
+    /**
+     *  @private
+     */        
+    override public function get measuredHeight():Number
+    {
+        return 14;
+    }
+    
+    //--------------------------------------------------------------------------
+    //
+    //  Overridden methods
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  @private
+     */
+    override protected function updateDisplayList(w:Number, h:Number):void
+    {
+        super.updateDisplayList(w, h);
+
+        // User-defined styles
+        var borderColor:uint = getStyle("borderColor");
+        var fillAlphas:Array = getStyle("fillAlphas");
+        var fillColors:Array = getStyle("fillColors");
+        StyleManager.getColorNames(fillColors);
+        var highlightAlphas:Array = getStyle("highlightAlphas");        
+        var themeColor:uint = getStyle("themeColor");
+        
+        // Placeholder styles stub  
+        var checkColor:uint = 0x2B333C;// added style prop
+        
+        // Derived styles
+        var derStyles:Object = calcDerivedStyles(themeColor, borderColor, 
+                                                 fillColors[0], fillColors[1]);
+        
+        var borderColorDrk1:Number =
+            ColorUtil.adjustBrightness2(borderColor, -50);
+        
+        var themeColorDrk1:Number =
+            ColorUtil.adjustBrightness2(themeColor, -25);
+        
+        var bDrawCheck:Boolean = false;
+        
+        var upFillColors:Array;
+        var upFillAlphas:Array;
+        
+        var overFillColors:Array;
+        var overFillAlphas:Array;
+        
+        var disFillColors:Array;
+        var disFillAlphas:Array;
+
+        var g:Graphics = graphics;
+        
+        g.clear();
+        
+        switch (name)
+        {
+            case "upIcon":
+            {
+                upFillColors = [ fillColors[0], fillColors[1] ];
+                upFillAlphas = [ fillAlphas[0], fillAlphas[1] ];
+
+                // border
+                drawRoundRect(
+                    0, 0, w, h, 0,
+                    [ borderColor, borderColorDrk1 ], 1,
+                    verticalGradientMatrix(0, 0, w, h ),
+                    GradientType.LINEAR, null, 
+                    { x: 1, y: 1, w: w - 2, h: h - 2, r: 0 });
+ 
+
+                // box fill
+                drawRoundRect(
+                    1, 1, w - 2, h - 2, 0,
+                    upFillColors, upFillAlphas,
+                    verticalGradientMatrix(1, 1, w - 2, h - 2)); 
+
+                // top highlight
+                drawRoundRect(
+                    1, 1, w - 2, (h - 2) / 2, 0,
+                    [ 0xFFFFFF, 0xFFFFFF ], highlightAlphas,
+                    verticalGradientMatrix(1, 1, w - 2, (h - 2) / 2)); 
+
+
+                break;
+            }
+                
+            case "overIcon":
+            {
+                if (fillColors.length > 2)
+                    overFillColors = [ fillColors[2], fillColors[3] ];
+                else
+                    overFillColors = [ fillColors[0], fillColors[1] ];
+
+                if (fillAlphas.length > 2)
+                    overFillAlphas = [ fillAlphas[2], fillAlphas[3] ];
+                else
+                    overFillAlphas = [ fillAlphas[0], fillAlphas[1] ];
+
+                // border
+                drawRoundRect(
+                    0, 0, w, h, 0,
+                    [ themeColor, themeColorDrk1 ], 1,
+                    verticalGradientMatrix(0, 0, w, h),
+                    GradientType.LINEAR, null, 
+                    { x: 1, y: 1, w: w - 2, h: h - 2, r: 0 }); 
+                
+                // box fill
+                drawRoundRect(
+                    1, 1, w - 2, h - 2, 0,
+                    overFillColors, overFillAlphas,
+                    verticalGradientMatrix(1, 1, w - 2, h - 2));
+
+                // top highlight
+                drawRoundRect(
+                    1, 1, w - 2, (h - 2) / 2, 0,
+                    [ 0xFFFFFF, 0xFFFFFF ], highlightAlphas,
+                    verticalGradientMatrix(1, 1, w - 2, (h - 2) / 2)); 
+
+                break;
+            }
+
+            case "downIcon":
+            {               
+                // border
+                drawRoundRect(
+                    0, 0, w, h, 0,
+                    [ themeColor, themeColorDrk1 ], 1,
+                    verticalGradientMatrix(0, 0, w, h)); 
+                
+                // box fill
+                drawRoundRect(
+                    1, 1, w - 2, h - 2, 0,
+                    [ derStyles.fillColorPress1,
+                    derStyles.fillColorPress2 ], 1,
+                    verticalGradientMatrix(1, 1, w - 2, h - 2)); 
+                            
+                // top highlight
+                drawRoundRect(
+                    1, 1, w - 2, (h - 2) / 2, 0,
+                    [ 0xFFFFFF, 0xFFFFFF ], highlightAlphas,
+                    verticalGradientMatrix(1, 1, w - 2, (h - 2) / 2));
+
+                break;
+            }
+
+            case "disabledIcon":
+            {
+                disFillColors = [ fillColors[0], fillColors[1] ];
+                disFillAlphas = [ Math.max(0, fillAlphas[0] - 15),
+                                  Math.max(0, fillAlphas[1] - 15) ];
+
+                // border
+                drawRoundRect(
+                    0, 0, w, h, 0,
+                    [ borderColor, borderColorDrk1 ], 0.5,
+                    verticalGradientMatrix(0, 0, w, h),
+                    GradientType.LINEAR, null, 
+                    { x: 1, y: 1, w: w - 2, h: h - 2, r: 0 }); 
+
+                // box fill
+                drawRoundRect(
+                    1, 1, w - 2, h - 2, 0,
+                    disFillColors, disFillAlphas,
+                    verticalGradientMatrix(1, 1, w - 2, h - 2)); 
+
+                break;
+            }
+                        
+            case "selectedUpIcon":
+            {
+                bDrawCheck = true;
+                
+                upFillColors = [ fillColors[0], fillColors[1] ];
+                upFillAlphas = [ fillAlphas[0], fillAlphas[1] ];
+
+                // border
+                drawRoundRect(
+                    0, 0, w, h, 0,
+                    [ borderColor, borderColorDrk1 ], 1,
+                    verticalGradientMatrix(0, 0, w, h),
+                    GradientType.LINEAR, null, 
+                    { x: 1, y: 1, w: w - 2, h: h - 2, r: 0 }); 
+
+                // box fill
+                drawRoundRect(
+                    1, 1, w - 2, h - 2, 0,
+                    upFillColors, upFillAlphas,
+                    verticalGradientMatrix(1, 1, w - 2, h - 2)); 
+
+                // top highlight
+                drawRoundRect(
+                    1, 1, w - 2, (h - 2) / 2, 0,
+                    [ 0xFFFFFF, 0xFFFFFF ], highlightAlphas,
+                    verticalGradientMatrix(1, 1, w - 2, (h - 2) / 2));
+
+                break;
+            }
+
+            case "selectedOverIcon":
+            {
+                bDrawCheck = true;
+                
+                if (fillColors.length > 2)
+                    overFillColors = [ fillColors[2], fillColors[3] ];
+                else
+                    overFillColors = [ fillColors[0], fillColors[1] ];
+
+                if (fillAlphas.length > 2)
+                    overFillAlphas = [ fillAlphas[2], fillAlphas[3] ];
+                else
+                    overFillAlphas = [ fillAlphas[0], fillAlphas[1] ];
+
+                // border
+                drawRoundRect(
+                    0, 0, w, h, 0,
+                    [ themeColor, themeColorDrk1 ], 1,
+                    verticalGradientMatrix(0, 0, w, h),
+                    GradientType.LINEAR, null,
+                    { x: 1, y: 1, w: w - 2, h: h - 2, r: 0 }); 
+
+                // box fill
+                drawRoundRect(
+                    1, 1, w - 2, h - 2, 0,
+                    overFillColors, overFillAlphas,
+                    verticalGradientMatrix(1, 1, w - 2, h - 2)); 
+
+                // top highlight
+                drawRoundRect(
+                    1, 1, w - 2, (h - 2) / 2, 0,
+                    [ 0xFFFFFF, 0xFFFFFF ], highlightAlphas,
+                    verticalGradientMatrix(1, 1, w - 2, (h - 2) / 2)); 
+                
+                break;
+            }
+
+            case "selectedDownIcon":
+            {
+                bDrawCheck = true;
+                
+                // border
+                drawRoundRect(
+                    0, 0, w, h, 0,
+                    [ themeColor, themeColorDrk1 ], 1,
+                    verticalGradientMatrix(0, 0, w, h)); 
+                
+                // box fill
+                drawRoundRect(
+                    1, 1, w - 2, h - 2, 0,
+                    [ derStyles.fillColorPress1,
+                    derStyles.fillColorPress2 ], 1,
+                    verticalGradientMatrix(1, 1, w - 2, h - 2)); 
+                            
+                // top highlight
+                drawRoundRect(
+                    1, 1, w - 2, (h - 2) / 2, 0,
+                    [ 0xFFFFFF, 0xFFFFFF ], highlightAlphas,
+                    verticalGradientMatrix(1, 1, w - 2, (h - 2) / 2)); 
+
+                break;
+            }
+
+            case "selectedDisabledIcon":
+            {
+                bDrawCheck = true;
+                checkColor = 0x999999;
+                
+                disFillColors = [ fillColors[0], fillColors[1] ];
+                disFillAlphas = [ Math.max( 0, fillAlphas[0] - 0.15),
+                                  Math.max( 0, fillAlphas[1] - 0.15) ];
+
+                // border
+                drawRoundRect(
+                    0, 0, w, h, 0,
+                    [ borderColor, borderColorDrk1 ], 0.5,
+                    verticalGradientMatrix(0, 0, w, h),
+                    GradientType.LINEAR, null, 
+                    { x: 1, y: 1, w: w - 2, h: h - 2, r: 0 }); 
+
+                // box fill
+                drawRoundRect(
+                    1, 1, w - 2, h - 2, 0,
+                    disFillColors, disFillAlphas,
+                    verticalGradientMatrix(1, 1, w - 2, h - 2)); 
+
+                break;
+            }
+        }
+        
+        // Draw the checkmark symbol.
+        if (bDrawCheck)
+        {
+            g.beginFill(checkColor);
+            g.moveTo(3, 5);
+            g.lineTo(5, 10);
+            g.lineTo(7, 10);
+            g.lineTo(12, 2);
+            g.lineTo(13, 1);
+            g.lineTo(11, 1);
+            g.lineTo(6.5, 7);
+            g.lineTo(5, 5);
+            g.lineTo(3, 5);
+            g.endFill();
+        }
+    }
+}
+
+}

Added: incubator/flex/trunk/mustella/tests/RuntimeLocalization/RTL_HaloSkin/SWFs/Assets/bundles/custom/en_US/bundle1.properties
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/RuntimeLocalization/RTL_HaloSkin/SWFs/Assets/bundles/custom/en_US/bundle1.properties?rev=1369982&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/RuntimeLocalization/RTL_HaloSkin/SWFs/Assets/bundles/custom/en_US/bundle1.properties (added)
+++ incubator/flex/trunk/mustella/tests/RuntimeLocalization/RTL_HaloSkin/SWFs/Assets/bundles/custom/en_US/bundle1.properties Mon Aug  6 20:25:24 2012
@@ -0,0 +1,59 @@
+################################################################################
+##
+##  Licensed to the Apache Software Foundation (ASF) under one or more
+##  contributor license agreements.  See the NOTICE file distributed with
+##  this work for additional information regarding copyright ownership.
+##  The ASF licenses this file to You under the Apache License, Version 2.0
+##  (the "License"); you may not use this file except in compliance with
+##  the License.  You may obtain a copy of the License at
+##
+##      http://www.apache.org/licenses/LICENSE-2.0
+##
+##  Unless required by applicable law or agreed to in writing, software
+##  distributed under the License is distributed on an "AS IS" BASIS,
+##  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+##  See the License for the specific language governing permissions and
+##  limitations under the License.
+##
+################################################################################
+# This is sample data for a 1st resource bundle in the en_US locale.
+
+# Strings
+SHUTDOWN=Shut down
+CHECKFORUPDATES=Check for updates and be nagged to reboot every ten minutes.
+FONTSTYLERIGHT=normal
+FONTSTYLELEFT=italic
+EMPTYSTRING=
+
+# String Arrays
+NEIGHBORS=Canada,Mexico
+NEIGHBORS_SPACES = Canada, Mexico
+NEIGHBORS_DELIMITERS=,
+EMPTYSTRINGARRAY=
+MONTHNAMES=en_January,en_February,en_March,en_April,en_May,en_June,en_July,en_August,en_September,en_October,en_November,en_December
+FILLCOLORS=0x880000,0x000088
+
+# Numbers
+MEDIANAGE=37
+MEDIANAGE_DECIMAL_PERIOD=36.5
+MEDIANAGE_DECIMAL_COMMA=36,5
+POPULATION=298444215
+EMPTYNUMBER=
+ALPHA=0.7
+MAXCHARS=12
+SELECTEDCOLOR=0x00FF00
+FONTSIZELEFT=3
+FONTSIZERIGHT=12
+PRECISION=4
+TEXTCOLOR=0x0000FF
+
+# Booleans
+TESTBOOL_TRUE=true
+TESTBOOL_FALSE=false
+EMPTYBOOLEAN=
+LEFTCHECKBOX=true
+RIGHTCHECKBOX=false
+
+# Classes
+FLAG=Embed("../../../../../../../../Assets/Images/FlagImages/flag_en_US.png")
+CHECKBOXSKIN=ClassReference("MyCheckBoxIcon_en_US")

Added: incubator/flex/trunk/mustella/tests/RuntimeLocalization/RTL_HaloSkin/SWFs/Assets/bundles/custom/en_US/bundle2.properties
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/RuntimeLocalization/RTL_HaloSkin/SWFs/Assets/bundles/custom/en_US/bundle2.properties?rev=1369982&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/RuntimeLocalization/RTL_HaloSkin/SWFs/Assets/bundles/custom/en_US/bundle2.properties (added)
+++ incubator/flex/trunk/mustella/tests/RuntimeLocalization/RTL_HaloSkin/SWFs/Assets/bundles/custom/en_US/bundle2.properties Mon Aug  6 20:25:24 2012
@@ -0,0 +1,35 @@
+################################################################################
+##
+##  Licensed to the Apache Software Foundation (ASF) under one or more
+##  contributor license agreements.  See the NOTICE file distributed with
+##  this work for additional information regarding copyright ownership.
+##  The ASF licenses this file to You under the Apache License, Version 2.0
+##  (the "License"); you may not use this file except in compliance with
+##  the License.  You may obtain a copy of the License at
+##
+##      http://www.apache.org/licenses/LICENSE-2.0
+##
+##  Unless required by applicable law or agreed to in writing, software
+##  distributed under the License is distributed on an "AS IS" BASIS,
+##  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+##  See the License for the specific language governing permissions and
+##  limitations under the License.
+##
+################################################################################
+# This is bundle 2 for the en_US locale
+
+# Strings
+BUNDLETWOSTRING=BundleTwoString, en_US
+
+# String Arrays
+BUNDLETWOSTRINGARRAY=Bundle,Two,String,Array,en_US
+
+# Numbers
+BUNDLETWONUMBER=22_22
+
+# Booleans
+BUNDLETWOBOOLEANTRUE=true
+BUNDLETWOBOOLEANFALSE=false
+
+# Classes
+BUNDLETWOCLASS=Embed("flag_en_US_bundle2.png")

Added: incubator/flex/trunk/mustella/tests/RuntimeLocalization/RTL_HaloSkin/SWFs/Assets/bundles/custom/en_US/bundle3.properties
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/RuntimeLocalization/RTL_HaloSkin/SWFs/Assets/bundles/custom/en_US/bundle3.properties?rev=1369982&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/RuntimeLocalization/RTL_HaloSkin/SWFs/Assets/bundles/custom/en_US/bundle3.properties (added)
+++ incubator/flex/trunk/mustella/tests/RuntimeLocalization/RTL_HaloSkin/SWFs/Assets/bundles/custom/en_US/bundle3.properties Mon Aug  6 20:25:24 2012
@@ -0,0 +1,35 @@
+################################################################################
+##
+##  Licensed to the Apache Software Foundation (ASF) under one or more
+##  contributor license agreements.  See the NOTICE file distributed with
+##  this work for additional information regarding copyright ownership.
+##  The ASF licenses this file to You under the Apache License, Version 2.0
+##  (the "License"); you may not use this file except in compliance with
+##  the License.  You may obtain a copy of the License at
+##
+##      http://www.apache.org/licenses/LICENSE-2.0
+##
+##  Unless required by applicable law or agreed to in writing, software
+##  distributed under the License is distributed on an "AS IS" BASIS,
+##  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+##  See the License for the specific language governing permissions and
+##  limitations under the License.
+##
+################################################################################
+# This is sample data for a 3rd resource bundle in the en_US locale.
+
+# Strings
+BUNDLETHREESTRING=BundleThreeString, en_US
+
+# String Arrays
+BUNDLETHREESTRINGARRAY=Bundle,Three,String,Array,en_US
+
+# Numbers
+BUNDLETHREENUMBER=33_33
+
+# Booleans
+BUNDLETHREEBOOLEANTRUE=true
+BUNDLETHREEBOOLEANFALSE=false
+
+# Classes
+BUNDLETHREECLASS=Embed("flag_en_US_bundle3.png")

Added: incubator/flex/trunk/mustella/tests/RuntimeLocalization/RTL_HaloSkin/SWFs/Assets/bundles/custom/en_US/bundle4.properties
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/RuntimeLocalization/RTL_HaloSkin/SWFs/Assets/bundles/custom/en_US/bundle4.properties?rev=1369982&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/RuntimeLocalization/RTL_HaloSkin/SWFs/Assets/bundles/custom/en_US/bundle4.properties (added)
+++ incubator/flex/trunk/mustella/tests/RuntimeLocalization/RTL_HaloSkin/SWFs/Assets/bundles/custom/en_US/bundle4.properties Mon Aug  6 20:25:24 2012
@@ -0,0 +1,18 @@
+################################################################################
+##
+##  Licensed to the Apache Software Foundation (ASF) under one or more
+##  contributor license agreements.  See the NOTICE file distributed with
+##  this work for additional information regarding copyright ownership.
+##  The ASF licenses this file to You under the Apache License, Version 2.0
+##  (the "License"); you may not use this file except in compliance with
+##  the License.  You may obtain a copy of the License at
+##
+##      http://www.apache.org/licenses/LICENSE-2.0
+##
+##  Unless required by applicable law or agreed to in writing, software
+##  distributed under the License is distributed on an "AS IS" BASIS,
+##  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+##  See the License for the specific language governing permissions and
+##  limitations under the License.
+##
+################################################################################

Added: incubator/flex/trunk/mustella/tests/RuntimeLocalization/RTL_HaloSkin/SWFs/Assets/bundles/custom/en_US/bundle5.properties
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/RuntimeLocalization/RTL_HaloSkin/SWFs/Assets/bundles/custom/en_US/bundle5.properties?rev=1369982&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/RuntimeLocalization/RTL_HaloSkin/SWFs/Assets/bundles/custom/en_US/bundle5.properties (added)
+++ incubator/flex/trunk/mustella/tests/RuntimeLocalization/RTL_HaloSkin/SWFs/Assets/bundles/custom/en_US/bundle5.properties Mon Aug  6 20:25:24 2012
@@ -0,0 +1,18 @@
+################################################################################
+##
+##  Licensed to the Apache Software Foundation (ASF) under one or more
+##  contributor license agreements.  See the NOTICE file distributed with
+##  this work for additional information regarding copyright ownership.
+##  The ASF licenses this file to You under the Apache License, Version 2.0
+##  (the "License"); you may not use this file except in compliance with
+##  the License.  You may obtain a copy of the License at
+##
+##      http://www.apache.org/licenses/LICENSE-2.0
+##
+##  Unless required by applicable law or agreed to in writing, software
+##  distributed under the License is distributed on an "AS IS" BASIS,
+##  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+##  See the License for the specific language governing permissions and
+##  limitations under the License.
+##
+################################################################################

Added: incubator/flex/trunk/mustella/tests/RuntimeLocalization/RTL_HaloSkin/SWFs/Assets/bundles/custom/en_US/flag_en_US_bundle2.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/RuntimeLocalization/RTL_HaloSkin/SWFs/Assets/bundles/custom/en_US/flag_en_US_bundle2.png?rev=1369982&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/RuntimeLocalization/RTL_HaloSkin/SWFs/Assets/bundles/custom/en_US/flag_en_US_bundle2.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/RuntimeLocalization/RTL_HaloSkin/SWFs/Assets/bundles/custom/en_US/flag_en_US_bundle3.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/RuntimeLocalization/RTL_HaloSkin/SWFs/Assets/bundles/custom/en_US/flag_en_US_bundle3.png?rev=1369982&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/RuntimeLocalization/RTL_HaloSkin/SWFs/Assets/bundles/custom/en_US/flag_en_US_bundle3.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/RuntimeLocalization/RTL_HaloSkin/SWFs/Assets/bundles/custom/en_US/flag_en_US_bundle4.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/RuntimeLocalization/RTL_HaloSkin/SWFs/Assets/bundles/custom/en_US/flag_en_US_bundle4.png?rev=1369982&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/RuntimeLocalization/RTL_HaloSkin/SWFs/Assets/bundles/custom/en_US/flag_en_US_bundle4.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/RuntimeLocalization/RTL_HaloSkin/SWFs/Assets/bundles/custom/en_US/styles.properties
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/RuntimeLocalization/RTL_HaloSkin/SWFs/Assets/bundles/custom/en_US/styles.properties?rev=1369982&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/RuntimeLocalization/RTL_HaloSkin/SWFs/Assets/bundles/custom/en_US/styles.properties (added)
+++ incubator/flex/trunk/mustella/tests/RuntimeLocalization/RTL_HaloSkin/SWFs/Assets/bundles/custom/en_US/styles.properties Mon Aug  6 20:25:24 2012
@@ -0,0 +1,19 @@
+################################################################################
+##
+##  Licensed to the Apache Software Foundation (ASF) under one or more
+##  contributor license agreements.  See the NOTICE file distributed with
+##  this work for additional information regarding copyright ownership.
+##  The ASF licenses this file to You under the Apache License, Version 2.0
+##  (the "License"); you may not use this file except in compliance with
+##  the License.  You may obtain a copy of the License at
+##
+##      http://www.apache.org/licenses/LICENSE-2.0
+##
+##  Unless required by applicable law or agreed to in writing, software
+##  distributed under the License is distributed on an "AS IS" BASIS,
+##  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+##  See the License for the specific language governing permissions and
+##  limitations under the License.
+##
+################################################################################
+

Added: incubator/flex/trunk/mustella/tests/RuntimeLocalization/RTL_HaloSkin/SWFs/Assets/bundles/custom/fr_FR/HaloColors.as
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/RuntimeLocalization/RTL_HaloSkin/SWFs/Assets/bundles/custom/fr_FR/HaloColors.as?rev=1369982&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/RuntimeLocalization/RTL_HaloSkin/SWFs/Assets/bundles/custom/fr_FR/HaloColors.as (added)
+++ incubator/flex/trunk/mustella/tests/RuntimeLocalization/RTL_HaloSkin/SWFs/Assets/bundles/custom/fr_FR/HaloColors.as Mon Aug  6 20:25:24 2012
@@ -0,0 +1,104 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  Licensed to the Apache Software Foundation (ASF) under one or more
+//  contributor license agreements.  See the NOTICE file distributed with
+//  this work for additional information regarding copyright ownership.
+//  The ASF licenses this file to You under the Apache License, Version 2.0
+//  (the "License"); you may not use this file except in compliance with
+//  the License.  You may obtain a copy of the License at
+//
+//      http://www.apache.org/licenses/LICENSE-2.0
+//
+//  Unless required by applicable law or agreed to in writing, software
+//  distributed under the License is distributed on an "AS IS" BASIS,
+//  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//  See the License for the specific language governing permissions and
+//  limitations under the License.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+package
+{
+
+import mx.utils.ColorUtil;
+
+/**
+ *  Defines the colors used by components that support the Halo theme.
+ */
+public class HaloColors 
+{
+    //include "../../core/Version.as";
+
+    //--------------------------------------------------------------------------
+    //
+    //  Class variables
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  @private
+     */
+    private static var cache:Object = {};
+    
+    //--------------------------------------------------------------------------
+    //
+    //  Class methods
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  Returns a unique hash key based on the colors that are passed in. This
+     *  key is used to store the calculated colors so they only need to be 
+     *  calculated once.
+     */
+    public static function getCacheKey(... colors):String
+    {
+        return colors.join(",");
+    }
+
+    /**
+     *  Calculates colors that are used by components that support the Halo theme, such as the colors of beveled edges.
+     *  This method uses the <code>themeColor</code> and <code>fillColors</code> properties to calculate its colors. 
+     * 
+     *  @param colors 
+     *  @param themeColor The value of the <code>themeColor</code> style property.
+     *  @param fillColor0 The start color of a fill.
+     *  @param fillColor1 The end color of a fill.
+     */
+    public static function addHaloColors(colors:Object,
+                                         themeColor:uint,
+                                         fillColor0:uint,
+                                         fillColor1:uint):void
+    {
+        var key:String = getCacheKey(themeColor, fillColor0, fillColor1); 
+        var o:Object = cache[key];
+        
+        if (!o)
+        {
+            o = cache[key] = {};
+            
+            // Cross-component styles
+            o.themeColLgt = ColorUtil.adjustBrightness(themeColor, 100);
+            o.themeColDrk1 = ColorUtil.adjustBrightness(themeColor, -75);
+            o.themeColDrk2 = ColorUtil.adjustBrightness(themeColor, -25);
+            o.fillColorBright1 = ColorUtil.adjustBrightness2(fillColor0, 15);
+            o.fillColorBright2 = ColorUtil.adjustBrightness2(fillColor1, 15);
+            o.fillColorPress1 = ColorUtil.adjustBrightness2(themeColor, 85);
+            o.fillColorPress2 = ColorUtil.adjustBrightness2(themeColor, 60);
+            o.bevelHighlight1 = ColorUtil.adjustBrightness2(fillColor0, 40);
+            o.bevelHighlight2 = ColorUtil.adjustBrightness2(fillColor1, 40);
+        }
+        
+        colors.themeColLgt = o.themeColLgt;
+        colors.themeColDrk1 = o.themeColDrk1;
+        colors.themeColDrk2 = o.themeColDrk2;
+        colors.fillColorBright1 = o.fillColorBright1;
+        colors.fillColorBright2 = o.fillColorBright2;
+        colors.fillColorPress1 = o.fillColorPress1;
+        colors.fillColorPress2 = o.fillColorPress2;
+        colors.bevelHighlight1 = o.bevelHighlight1;
+        colors.bevelHighlight2 = o.bevelHighlight2;
+    }
+}
+
+}



Mime
View raw message