flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From p...@apache.org
Subject svn commit: r1370380 [9/13] - in /incubator/flex/trunk/mustella/tests/resources: ./ Integration/ Integration/Compiler/ Integration/FrameworkProperties/ Integration/SWFs/ Integration/SWFs/Assets/ Integration/SWFs/Assets/bundles/ Integration/SWFs/Assets/...
Date Tue, 07 Aug 2012 17:34:19 GMT
Added: incubator/flex/trunk/mustella/tests/resources/ResourceManager/SWFs/ResourceManagerApp.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/resources/ResourceManager/SWFs/ResourceManagerApp.mxml?rev=1370380&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/resources/ResourceManager/SWFs/ResourceManagerApp.mxml (added)
+++ incubator/flex/trunk/mustella/tests/resources/ResourceManager/SWFs/ResourceManagerApp.mxml Tue Aug  7 17:34:13 2012
@@ -0,0 +1,430 @@
+<?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:Application backgroundColor="0xFFFFFF"  xmlns:mx="http://www.adobe.com/2006/mxml">
+
+	<mx:Script>
+	<![CDATA[
+
+        import mx.collections.ArrayCollection;
+		import mx.core.*;
+		import mx.resources.IResourceBundle;
+		import mx.resources.ResourceBundle;
+
+		public var aClass:Class = ResourceBundle;
+        public var frClass:Object = UIComponent;
+        public var jaClass:Object = UITextField;
+        
+		public var anArray:Array = [ "abc", "def" ];
+		public var frArray:Array = [ "fr", "FR" ];
+		public var jaArray:Array = [ "ja", "JP" ];
+		
+		public var anObject:Object = { abc: "def" };
+        public var frObject:Object = { abc: "French" };
+        public var jaObject:Object = { abc: "Japanese" };
+
+        public var localeParamArrays:ArrayCollection;
+
+		public function setup():void
+		{
+            var tmpArr:Array;
+            var anInt:int = 2;
+            var anObjectWithANumber:Object = new Object();
+            anObjectWithANumber = 2;
+            		
+            localeParamArrays = new ArrayCollection();
+		
+			resourceManager.removeResourceBundlesForLocale("qa_QA");
+        	resourceManager.removeResourceBundlesForLocale("ja_JP");
+        	resourceManager.removeResourceBundlesForLocale("fr_FR");
+			
+			var resourceBundle:IResourceBundle = new ResourceBundle("qa_QA", "myResources");
+
+			resourceBundle.content["STRING"] = "abc";
+			resourceBundle.content["STRING_LIST"] = " abc,def , ghi jil\tmno ";
+			resourceBundle.content["STRING_EMPTY"] = "";
+			resourceBundle.content["STRING_NULL"] = "null";
+			resourceBundle.content["STRING_UNDEFINED"] = "undefined";
+			resourceBundle.content["STRING_TRUE_LOWERCASE"] = "true";
+			resourceBundle.content["STRING_TRUE_MIXEDCASE"] = "True";
+			resourceBundle.content["STRING_TRUE_UPPERCASE"] = "TRUE";
+			resourceBundle.content["STRING_FALSE_LOWERCASE"] = "false";
+			resourceBundle.content["STRING_FALSE_MIXEDCASE"] = "False";
+			resourceBundle.content["STRING_FALSE_UPPERCASE"] = "FALSE";
+			resourceBundle.content["STRING_NAN"] = "NaN";
+			resourceBundle.content["STRING_ZERO"] = "0";
+			resourceBundle.content["STRING_POSITIVE_INTEGER"] = "3";
+			resourceBundle.content["STRING_NEGATIVE_INTEGER"] = "-3";
+			resourceBundle.content["STRING_FIXEDPOINT"] = "1.5";
+			resourceBundle.content["STRING_FLOATINGPOINT"] = "5.0e-1";
+			resourceBundle.content["NULL"] = null;
+			resourceBundle.content["UNDEFINED"] = undefined;
+			resourceBundle.content["TRUE"] = true;
+			resourceBundle.content["FALSE"] = false;
+			resourceBundle.content["NAN"] = NaN;
+			resourceBundle.content["ZERO"] = 0;
+			resourceBundle.content["POSITIVE_INTEGER"] = 3;
+			resourceBundle.content["NEGATIVE_INTEGER"] = -3;
+			resourceBundle.content["FIXEDPOINT"] = 1.5;
+			resourceBundle.content["FLOATINGPOINT"] = 5.0e-1;
+			resourceBundle.content["CLASS"] = aClass;
+			resourceBundle.content["ARRAY"] = anArray;
+			resourceBundle.content["OBJECT"] = anObject;
+            
+            // The items below are used for testing the "params" parameter.  If you change the order of them,
+            // be sure to also change Methods/ResourceManager_Methods_getString.mxml.
+            
+            // 0
+            resourceBundle.content["PARAM_" + localeParamArrays.length.toString()] = "There are 2 {0}.";
+            localeParamArrays.addItem(new Array('cats'));
+
+            // 1
+            resourceBundle.content["PARAM_" + localeParamArrays.length.toString()] = "There are 2 {3}.";
+            localeParamArrays.addItem(new Array('dogs', 'mice', 'birds', 'cats'));
+
+            // 2
+            resourceBundle.content["PARAM_" + localeParamArrays.length.toString()] = "There are {0} {1}.";
+            localeParamArrays.addItem(new Array('2', 'cats'));
+
+            // 3
+            resourceBundle.content["PARAM_" + localeParamArrays.length.toString()] = "There are {2} {3} sleeping on the {1} and the {0}.";
+            localeParamArrays.addItem(new Array('couch', 'chair', '2', 'cats'));
+
+            // 4
+            resourceBundle.content["PARAM_" + localeParamArrays.length.toString()] = "There are {0} {1} (2 cats), {2} {3} (5 dogs), {4} {5} (3 bears), {6} {7} (9 pigs), {8} {9} (7 capybaras), {10} {11} (4 snakes), {12} {13} (11 sloths), {14} {15} (1 sea cucumber), {16} {17} (6 skunks), {18} {19} (8 wart hots), and {20} {21} (10 fruit flies).";
+            localeParamArrays.addItem(new Array('2', 'cats', '5', 'dogs', '3', 'bears', '9', 'pigs', '7', 'capybaras', '4', 'snakes', '11', 'sloths', '1', 'sea cucumber', '6', 'skunks', '8', 'wart hogs', '10', 'fruit flies'));
+
+            // 5
+            resourceBundle.content["PARAM_" + localeParamArrays.length.toString()] = "There are {0} {1}.  Do you like the {0} {1}?  The {0} {1} are lazy.  The {0} {1} are sleeping in the sun.";
+            localeParamArrays.addItem(new Array('2', 'cats'));
+
+            // 6
+            resourceBundle.content["PARAM_" + localeParamArrays.length.toString()] = "The number of {1} is {0}.  There are {0} {1}.  Again, the number of {1} is {0}. The {0} {1} get hungry at {0}:00.";
+            localeParamArrays.addItem(new Array('2', 'cats'));
+
+            // 7
+            resourceBundle.content["PARAM_" + localeParamArrays.length.toString()] = "{5} would be too many {1}.  I would rather have just {0} {1}.";
+            localeParamArrays.addItem(new Array('2', 'cats'));
+
+            // 8
+            resourceBundle.content["PARAM_" + localeParamArrays.length.toString()] = "There are 2 cats.";
+            localeParamArrays.addItem(new Array('2', 'cats'));
+
+            // 9
+            resourceBundle.content["PARAM_" + localeParamArrays.length.toString()] = "There are {0} cats.";
+            localeParamArrays.addItem(new Array('2', 'cats'));
+
+            // 10
+            resourceBundle.content["PARAM_" + localeParamArrays.length.toString()] = "There are {a0} cats.";
+            localeParamArrays.addItem(new Array('2'));
+
+            // 11
+            resourceBundle.content["PARAM_" + localeParamArrays.length.toString()] = "There are {-0} cats.";
+            localeParamArrays.addItem(new Array('2'));
+
+            // 12
+            resourceBundle.content["PARAM_" + localeParamArrays.length.toString()] = "There are {0a} cats.";
+            localeParamArrays.addItem(new Array('2'));
+
+            // 13
+            resourceBundle.content["PARAM_" + localeParamArrays.length.toString()] = "There are {01} cats.";
+            localeParamArrays.addItem(new Array('2'));
+
+            // 14
+            resourceBundle.content["PARAM_" + localeParamArrays.length.toString()] = "There are {{0}} cats.";
+            localeParamArrays.addItem(new Array('2'));
+
+            // 15
+            resourceBundle.content["PARAM_" + localeParamArrays.length.toString()] = "There are {1{0}} cats.  That is 10  more than we want.";
+            localeParamArrays.addItem(new Array('2'));
+
+            // 16
+            resourceBundle.content["PARAM_" + localeParamArrays.length.toString()] = "There are {2{0}} cats.";
+            localeParamArrays.addItem(new Array('', '2'));
+
+            // 17
+            resourceBundle.content["PARAM_" + localeParamArrays.length.toString()] = "There are {2{0}} cats.  That is 20 more than we want.";
+            localeParamArrays.addItem(new Array('2', ''));
+
+            // 18
+            resourceBundle.content["PARAM_" + localeParamArrays.length.toString()] = "There are {0} cats.  The number of cats is more than {1}.";
+            localeParamArrays.addItem(new Array('2', '{0}'));
+
+            // 19
+            resourceBundle.content["PARAM_" + localeParamArrays.length.toString()] = "It is raining {0}.";
+            localeParamArrays.addItem(new Array('cats and dogs'));
+
+            // 20
+            resourceBundle.content["PARAM_" + localeParamArrays.length.toString()] = "It is raining {0}.";
+            localeParamArrays.addItem(new Array('cats     and          dogs'));
+
+            // 21
+            resourceBundle.content["PARAM_" + localeParamArrays.length.toString()] = "It is raining {0}.";
+            localeParamArrays.addItem(new Array('cats/dogs'));
+
+            // 22
+            resourceBundle.content["PARAM_" + localeParamArrays.length.toString()] = "It is raining/pouring {0}.";
+            localeParamArrays.addItem(new Array('cats and dogs'));
+
+            // 23
+            resourceBundle.content["PARAM_" + localeParamArrays.length.toString()] = "On Windows, look in {0}.";
+            localeParamArrays.addItem(new Array('qa\testsuites\mustella'));
+
+            // 24
+            resourceBundle.content["PARAM_" + localeParamArrays.length.toString()] = "On Windows, look in qa\testsuites\{0}.";
+            localeParamArrays.addItem(new Array('mustella'));
+
+            // 25
+            resourceBundle.content["PARAM_" + localeParamArrays.length.toString()] = "We have cats, dogs, etc{0}{0}{0}";
+            localeParamArrays.addItem(new Array('.'));
+
+            // 26
+            resourceBundle.content["PARAM_" + localeParamArrays.length.toString()] = "Mr. Smith has {0}, dogs, etc...";
+            localeParamArrays.addItem(new Array('cats'));
+
+            // 27
+            resourceBundle.content["PARAM_" + localeParamArrays.length.toString()] = "There are \{0} \\{1}.";
+            localeParamArrays.addItem(new Array('2', 'cats'));
+
+            // 28
+            resourceBundle.content["PARAM_" + localeParamArrays.length.toString()] = "Cats{0}2 = cats squared.";
+            localeParamArrays.addItem(new Array('^'));
+
+            // 29
+            resourceBundle.content["PARAM_" + localeParamArrays.length.toString()] = "Cats^{0} = cats squared.";
+            localeParamArrays.addItem(new Array('2'));
+
+            // 30
+            resourceBundle.content["PARAM_" + localeParamArrays.length.toString()] = "To indicate {0} can use no characters from a-z, use [^a-z], {1}.";
+            localeParamArrays.addItem(new Array('cats', 'please'));
+
+            // 31
+            resourceBundle.content["PARAM_" + localeParamArrays.length.toString()] = "To indicate {0} can use no characters from a-z, use {1}, please.";
+            localeParamArrays.addItem(new Array('cats', '[^a-z]'));
+
+            // 32
+            resourceBundle.content["PARAM_" + localeParamArrays.length.toString()] = "The cat sharpens its claws on the {0} sofa.";
+            localeParamArrays.addItem(new Array('$3000'));
+
+            // 33
+            resourceBundle.content["PARAM_" + localeParamArrays.length.toString()] = "The cat sharpens its claws on the ${0} sofa.";
+            localeParamArrays.addItem(new Array('3000'));
+
+            // 34
+            resourceBundle.content["PARAM_" + localeParamArrays.length.toString()] = "The cat deleted {0}.{0}.";
+            localeParamArrays.addItem(new Array('*'));
+
+            // 35
+            resourceBundle.content["PARAM_" + localeParamArrays.length.toString()] = "The {0} deleted *.*.  That darn {0}!";
+            localeParamArrays.addItem(new Array('cat'));
+
+            // 36
+            resourceBundle.content["PARAM_" + localeParamArrays.length.toString()] = "We are trying a new cat food. {0}Do not tell him!{1}";
+            localeParamArrays.addItem(new Array('(', ')'));
+
+            // 37
+            resourceBundle.content["PARAM_" + localeParamArrays.length.toString()] = "We are trying a new {0} food. (Do not tell him!)";
+            localeParamArrays.addItem(new Array('cat'));
+
+            // 38
+            resourceBundle.content["PARAM_" + localeParamArrays.length.toString()] = "What{0}  We are trying a new cat food{0}";
+            localeParamArrays.addItem(new Array('?'));
+
+            // 39
+            resourceBundle.content["PARAM_" + localeParamArrays.length.toString()] = "What?  We are trying a new {0} food?";
+            localeParamArrays.addItem(new Array('cat'));
+
+            // 40
+            resourceBundle.content["PARAM_" + localeParamArrays.length.toString()] = "Dogs {0} cats = a potential mess.";
+            localeParamArrays.addItem(new Array('+'));
+
+            // 41
+            resourceBundle.content["PARAM_" + localeParamArrays.length.toString()] = "Dogs + {0} = a potential mess.";
+            localeParamArrays.addItem(new Array('cats'));
+
+            // 42
+            resourceBundle.content["PARAM_" + localeParamArrays.length.toString()] = "A pipe character: {0}.";
+            localeParamArrays.addItem(new Array('|'));
+
+            // 43
+            resourceBundle.content["PARAM_" + localeParamArrays.length.toString()] = "| is the {0} character.";
+            localeParamArrays.addItem(new Array('pipe'));
+
+            // 44
+            resourceBundle.content["PARAM_" + localeParamArrays.length.toString()] = "The cat walked across the keyboard and typed {0}.";
+            localeParamArrays.addItem(new Array('[\t\r\n\v\f]'));
+
+            // 45
+            resourceBundle.content["PARAM_" + localeParamArrays.length.toString()] = "The letters [\t\r\n\v\f] were typed by the {0}.";
+            localeParamArrays.addItem(new Array('cat'));
+
+            // 46
+            resourceBundle.content["PARAM_" + localeParamArrays.length.toString()] = "{0} is the tab character.";
+            localeParamArrays.addItem(new Array('\t'));
+
+            // 47
+            resourceBundle.content["PARAM_" + localeParamArrays.length.toString()] = "\t is the {0} character.";
+            localeParamArrays.addItem(new Array('tab'));
+
+            // 48
+            resourceBundle.content["PARAM_" + localeParamArrays.length.toString()] = "{0} is the carriage return character.";
+            localeParamArrays.addItem(new Array('\r'));
+
+            // 49
+            resourceBundle.content["PARAM_" + localeParamArrays.length.toString()] = "\r is the {0} character.";
+            localeParamArrays.addItem(new Array('carriage return'));
+
+            // 50
+            resourceBundle.content["PARAM_" + localeParamArrays.length.toString()] = "{0} is the newline character.";
+            localeParamArrays.addItem(new Array('\n'));
+
+            // 51
+            resourceBundle.content["PARAM_" + localeParamArrays.length.toString()] = "\n is the {0} character.";
+            localeParamArrays.addItem(new Array('newline'));
+
+            // 52
+            resourceBundle.content["PARAM_" + localeParamArrays.length.toString()] = "{0} is used for a line ending on certain operating systems.";
+            localeParamArrays.addItem(new Array('\r\n'));
+
+            // 53
+            resourceBundle.content["PARAM_" + localeParamArrays.length.toString()] = "\r\n is used for a {0} on certain operating systems.";
+            localeParamArrays.addItem(new Array('line ending'));
+
+            // 54
+            resourceBundle.content["PARAM_" + localeParamArrays.length.toString()] = "{0} indicates vertical white space.";
+            localeParamArrays.addItem(new Array('\v'));
+
+            // 55
+            resourceBundle.content["PARAM_" + localeParamArrays.length.toString()] = "\v indicates {0}.";
+            localeParamArrays.addItem(new Array('vertical white space'));
+
+            // 56
+            resourceBundle.content["PARAM_" + localeParamArrays.length.toString()] = "{0} indicates form feed.";
+            localeParamArrays.addItem(new Array('\f'));
+
+            // 57
+            resourceBundle.content["PARAM_" + localeParamArrays.length.toString()] = "\f indicates {0}.";
+            localeParamArrays.addItem(new Array('form feed'));
+
+            // 58
+            resourceBundle.content["PARAM_" + localeParamArrays.length.toString()] = "The cat{0}s name is {0}Carmen{0}.";
+            localeParamArrays.addItem(new Array('\''));
+
+            // 59
+            resourceBundle.content["PARAM_" + localeParamArrays.length.toString()] = "The cat's name is {0}.";
+            localeParamArrays.addItem(new Array('\'Carmen\''));
+
+            // 60
+            resourceBundle.content["PARAM_" + localeParamArrays.length.toString()] = "She thinks her name is {0}Princess{0}.";
+            localeParamArrays.addItem(new Array('"'));
+
+            // 61
+            resourceBundle.content["PARAM_" + localeParamArrays.length.toString()] = "She thinks her name is \"{0}\".";
+            localeParamArrays.addItem(new Array('Princess'));
+
+            // 62
+            resourceBundle.content["PARAM_" + localeParamArrays.length.toString()] = "There are {0} cats.";
+            localeParamArrays.addItem(new Array(null));
+
+            // 63
+            resourceBundle.content["PARAM_" + localeParamArrays.length.toString()] = "There are {0} cats.";
+            localeParamArrays.addItem(new Array(undefined));
+
+            // 64
+            resourceBundle.content["PARAM_" + localeParamArrays.length.toString()] = "There are {0} cats.";
+            tmpArr = new Array();
+            tmpArr.push(2);
+            localeParamArrays.addItem(tmpArr);
+
+            // 65
+            resourceBundle.content["PARAM_" + localeParamArrays.length.toString()] = "There are {0} cats.";
+            tmpArr = new Array();
+            tmpArr.push(anInt);
+            localeParamArrays.addItem(tmpArr);
+
+            // 66
+            resourceBundle.content["PARAM_" + localeParamArrays.length.toString()] = "There are {0} cats.";
+            tmpArr = new Array();
+            tmpArr.push(new Number(2));
+            localeParamArrays.addItem(tmpArr);
+
+            // 67
+            resourceBundle.content["PARAM_" + localeParamArrays.length.toString()] = "There are {0} cats.";
+            localeParamArrays.addItem(new Array('2+1'));
+
+            // 68
+            resourceBundle.content["PARAM_" + localeParamArrays.length.toString()] = "There are {0} cats.";
+            tmpArr = new Array();
+            tmpArr.push(anObjectWithANumber);
+            localeParamArrays.addItem(tmpArr);
+            
+			resourceManager.addResourceBundle(resourceBundle);
+			
+            resourceBundle = new ResourceBundle("fr_FR", "myResources");
+            resourceBundle.content["STRING"] = "Arrêté";
+            resourceBundle.content["TRUE"] = "true";
+            resourceBundle.content["FALSE"] = "false";
+            resourceBundle.content["CLASS"] = frClass;
+            resourceBundle.content["POSITIVE_INTEGER"] = 3;
+            resourceBundle.content["OBJECT"] = frObject;
+            resourceBundle.content["ARRAY"] = frArray;
+            resourceManager.addResourceBundle(resourceBundle);
+
+			resourceBundle = new ResourceBundle("ja_JP", "myResources");
+	        resourceBundle.content["STRING"] = "シャットダウンされています";
+	        resourceBundle.content["TRUE"] = "true";
+	        resourceBundle.content["FALSE"] = "false";
+	        resourceBundle.content["CLASS"] = jaClass;
+	        resourceBundle.content["POSITIVE_INTEGER"] = 2;
+	        resourceBundle.content["OBJECT"] = jaObject;
+	        resourceBundle.content["ARRAY"] = jaArray;
+            resourceManager.addResourceBundle(resourceBundle);
+            			
+			resourceManager.localeChain = [ "qa_QA" ];
+		}
+
+        public function clearLocales():void
+        {            
+            var numLocales:int
+            
+            resourceManager.localeChain = [];
+            numLocales = resourceManager.getLocales().length;
+            
+            for(var i:int = numLocales; i > 0; --i){
+                resourceManager.removeResourceBundlesForLocale(resourceManager.getLocales()[i-1]);
+            }
+        }
+    
+        public function doAddResourceBundle(localeName:String, bundleName:String, includeClose:Boolean = true):void
+        {
+            var newBundle:ResourceBundle;
+            
+            newBundle = new ResourceBundle(localeName, bundleName);
+            newBundle.content["OPEN"] = localeName + "_" + bundleName + "_" + "Open";
+            
+            if(includeClose)
+                newBundle.content["CLOSE"] = localeName + "_" + bundleName + "_" + "Close";
+
+            resourceManager.addResourceBundle(newBundle);
+        }
+
+	]]>
+	</mx:Script>
+
+</mx:Application>

Added: incubator/flex/trunk/mustella/tests/resources/ResourceManager/SWFs/assets/bundles/custom/de_DE/bundle1.properties
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/resources/ResourceManager/SWFs/assets/bundles/custom/de_DE/bundle1.properties?rev=1370380&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/resources/ResourceManager/SWFs/assets/bundles/custom/de_DE/bundle1.properties (added)
+++ incubator/flex/trunk/mustella/tests/resources/ResourceManager/SWFs/assets/bundles/custom/de_DE/bundle1.properties Tue Aug  7 17:34:13 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
+NUMCOLUMNS=15
+TEXTCOLOR=0x00FF00
+
+# Booleans
+TESTBOOL_TRUE=true
+TESTBOOL_FALSE=false
+EMPTYBOOLEAN=
+LEFTCHECKBOX=true
+RIGHTCHECKBOX=true
+
+# Classes
+# FLAG=Embed("../../../../../../../../Assets/Images/FlagImages/flag_de_DE.gif")
+
+# 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/resources/ResourceManager/SWFs/assets/bundles/custom/de_DE/styles.properties
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/resources/ResourceManager/SWFs/assets/bundles/custom/de_DE/styles.properties?rev=1370380&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/resources/ResourceManager/SWFs/assets/bundles/custom/de_DE/styles.properties (added)
+++ incubator/flex/trunk/mustella/tests/resources/ResourceManager/SWFs/assets/bundles/custom/de_DE/styles.properties Tue Aug  7 17:34:13 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/resources/ResourceManager/SWFs/assets/bundles/custom/en_US/HaloColors.as
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/resources/ResourceManager/SWFs/assets/bundles/custom/en_US/HaloColors.as?rev=1370380&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/resources/ResourceManager/SWFs/assets/bundles/custom/en_US/HaloColors.as (added)
+++ incubator/flex/trunk/mustella/tests/resources/ResourceManager/SWFs/assets/bundles/custom/en_US/HaloColors.as Tue Aug  7 17:34:13 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/resources/ResourceManager/SWFs/assets/bundles/custom/en_US/MyCheckBoxIcon_en_US.as
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/resources/ResourceManager/SWFs/assets/bundles/custom/en_US/MyCheckBoxIcon_en_US.as?rev=1370380&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/resources/ResourceManager/SWFs/assets/bundles/custom/en_US/MyCheckBoxIcon_en_US.as (added)
+++ incubator/flex/trunk/mustella/tests/resources/ResourceManager/SWFs/assets/bundles/custom/en_US/MyCheckBoxIcon_en_US.as Tue Aug  7 17:34:13 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/resources/ResourceManager/SWFs/assets/bundles/custom/en_US/bundle1.properties
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/resources/ResourceManager/SWFs/assets/bundles/custom/en_US/bundle1.properties?rev=1370380&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/resources/ResourceManager/SWFs/assets/bundles/custom/en_US/bundle1.properties (added)
+++ incubator/flex/trunk/mustella/tests/resources/ResourceManager/SWFs/assets/bundles/custom/en_US/bundle1.properties Tue Aug  7 17:34:13 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
+NUMCOLUMNS=7
+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/resources/ResourceManager/SWFs/assets/bundles/custom/en_US/bundle2.properties
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/resources/ResourceManager/SWFs/assets/bundles/custom/en_US/bundle2.properties?rev=1370380&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/resources/ResourceManager/SWFs/assets/bundles/custom/en_US/bundle2.properties (added)
+++ incubator/flex/trunk/mustella/tests/resources/ResourceManager/SWFs/assets/bundles/custom/en_US/bundle2.properties Tue Aug  7 17:34:13 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("../../../../../../../../Assets/Images/FlagImages/flag_en_US.png");

Added: incubator/flex/trunk/mustella/tests/resources/ResourceManager/SWFs/assets/bundles/custom/en_US/bundle3.properties
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/resources/ResourceManager/SWFs/assets/bundles/custom/en_US/bundle3.properties?rev=1370380&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/resources/ResourceManager/SWFs/assets/bundles/custom/en_US/bundle3.properties (added)
+++ incubator/flex/trunk/mustella/tests/resources/ResourceManager/SWFs/assets/bundles/custom/en_US/bundle3.properties Tue Aug  7 17:34:13 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("../../../../../../../../Assets/Images/FlagImages/flag_en_US.png");

Added: incubator/flex/trunk/mustella/tests/resources/ResourceManager/SWFs/assets/bundles/custom/en_US/bundle4.properties
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/resources/ResourceManager/SWFs/assets/bundles/custom/en_US/bundle4.properties?rev=1370380&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/resources/ResourceManager/SWFs/assets/bundles/custom/en_US/bundle4.properties (added)
+++ incubator/flex/trunk/mustella/tests/resources/ResourceManager/SWFs/assets/bundles/custom/en_US/bundle4.properties Tue Aug  7 17:34:13 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/resources/ResourceManager/SWFs/assets/bundles/custom/en_US/bundle5.properties
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/resources/ResourceManager/SWFs/assets/bundles/custom/en_US/bundle5.properties?rev=1370380&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/resources/ResourceManager/SWFs/assets/bundles/custom/en_US/bundle5.properties (added)
+++ incubator/flex/trunk/mustella/tests/resources/ResourceManager/SWFs/assets/bundles/custom/en_US/bundle5.properties Tue Aug  7 17:34:13 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/resources/ResourceManager/SWFs/assets/bundles/custom/en_US/styles.properties
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/resources/ResourceManager/SWFs/assets/bundles/custom/en_US/styles.properties?rev=1370380&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/resources/ResourceManager/SWFs/assets/bundles/custom/en_US/styles.properties (added)
+++ incubator/flex/trunk/mustella/tests/resources/ResourceManager/SWFs/assets/bundles/custom/en_US/styles.properties Tue Aug  7 17:34:13 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/resources/ResourceManager/SWFs/assets/bundles/custom/fr_FR/HaloColors.as
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/resources/ResourceManager/SWFs/assets/bundles/custom/fr_FR/HaloColors.as?rev=1370380&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/resources/ResourceManager/SWFs/assets/bundles/custom/fr_FR/HaloColors.as (added)
+++ incubator/flex/trunk/mustella/tests/resources/ResourceManager/SWFs/assets/bundles/custom/fr_FR/HaloColors.as Tue Aug  7 17:34:13 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/resources/ResourceManager/SWFs/assets/bundles/custom/fr_FR/MyCheckBoxIcon_fr_FR.as
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/resources/ResourceManager/SWFs/assets/bundles/custom/fr_FR/MyCheckBoxIcon_fr_FR.as?rev=1370380&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/resources/ResourceManager/SWFs/assets/bundles/custom/fr_FR/MyCheckBoxIcon_fr_FR.as (added)
+++ incubator/flex/trunk/mustella/tests/resources/ResourceManager/SWFs/assets/bundles/custom/fr_FR/MyCheckBoxIcon_fr_FR.as Tue Aug  7 17:34:13 2012
@@ -0,0 +1,440 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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_fr_FR 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_fr_FR()
+    {
+        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();
+            */
+            g.beginFill(checkColor);
+            g.moveTo(11,5);
+            g.lineTo(9,10);
+            g.lineTo(7, 10);
+            g.lineTo(2, 2);
+            g.lineTo(1, 1);
+            g.lineTo(3, 1);
+            g.lineTo(7.5, 7);
+            g.lineTo(9, 5);
+            g.lineTo(5, 5);
+            g.endFill();
+        }
+    }
+}
+
+}

Added: incubator/flex/trunk/mustella/tests/resources/ResourceManager/SWFs/assets/bundles/custom/fr_FR/bundle1.properties
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/resources/ResourceManager/SWFs/assets/bundles/custom/fr_FR/bundle1.properties?rev=1370380&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/resources/ResourceManager/SWFs/assets/bundles/custom/fr_FR/bundle1.properties (added)
+++ incubator/flex/trunk/mustella/tests/resources/ResourceManager/SWFs/assets/bundles/custom/fr_FR/bundle1.properties Tue Aug  7 17:34:13 2012
@@ -0,0 +1,63 @@
+################################################################################
+##
+##  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 fr_FR locale.
+
+# Strings
+SHUTDOWN=Arrêté
+CHECKFORUPDATES=Vérifiez les mises à jour
+EMPTYSTRING=
+FONTSTYLERIGHT=italic
+FONTSTYLELEFT=normal
+
+# String Arrays
+NEIGHBORS=Spain,Belgium,Luxembourg,Germany,Switzerland,Italy
+NEIGHBORS_SPACES = Spain, Belgium, Luxemburg, Germany, Switzerland, Italy
+NEIGHBORS_DELIMITERS= ,,,,,
+EMPTYSTRINGARRAY=
+MONTHNAMES=fr_January,fr_February,fr_March,fr_April,fr_May,fr_June,fr_July,fr_August,fr_September,fr_October,fr_November,fr_December
+FILLCOLORS=green,blue
+
+# Numbers
+MEDIANAGE=39
+MEDIANAGE_DECIMAL_PERIOD=39.1
+MEDIANAGE_DECIMAL_COMMA=39,1
+POPULATION=62752136
+EMPTYNUMBER=
+ALPHA=0.3
+MAXCHARS=7
+SELECTEDCOLOR=0x0000FF
+FONTSIZELEFT=12
+FONTSIZERIGHT=3
+NUMCOLUMNS=12
+TEXTCOLOR=0xFF0000
+
+# Booleans
+TESTBOOL_TRUE=true
+TESTBOOL_FALSE=false
+EMPTYBOOLEAN=
+LEFTCHECKBOX=false
+RIGHTCHECKBOX=true
+
+# Classes
+# FLAG=Embed("../../../../../../../../Assets/Images/FlagImages/flag_fr_FR.png")
+CHECKBOXSKIN=ClassReference("MyCheckBoxIcon_fr_FR")
+
+# 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/resources/ResourceManager/SWFs/assets/bundles/custom/fr_FR/bundle2.properties
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/resources/ResourceManager/SWFs/assets/bundles/custom/fr_FR/bundle2.properties?rev=1370380&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/resources/ResourceManager/SWFs/assets/bundles/custom/fr_FR/bundle2.properties (added)
+++ incubator/flex/trunk/mustella/tests/resources/ResourceManager/SWFs/assets/bundles/custom/fr_FR/bundle2.properties Tue Aug  7 17:34:13 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 2nd resource bundle in the fr_FR locale.
+
+# Strings
+BUNDLETWOSTRING=BundleTwoString, fr_FR
+
+# String Arrays
+BUNDLETWOSTRINGARRAY=Bundle,Two,String,Array,fr_FR
+
+# Numbers
+BUNDLETWONUMBER=22
+
+# Booleans
+BUNDLETWOBOOLEANTRUE=true
+BUNDLETWOBOOLEANFALSE=false
+
+# Classes
+# BUNDLETWOCLASS=Embed("../../../../../../../../Assets/Images/FlagImages/flag_fr_FR.png");

Added: incubator/flex/trunk/mustella/tests/resources/ResourceManager/SWFs/assets/bundles/custom/fr_FR/bundle3.properties
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/resources/ResourceManager/SWFs/assets/bundles/custom/fr_FR/bundle3.properties?rev=1370380&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/resources/ResourceManager/SWFs/assets/bundles/custom/fr_FR/bundle3.properties (added)
+++ incubator/flex/trunk/mustella/tests/resources/ResourceManager/SWFs/assets/bundles/custom/fr_FR/bundle3.properties Tue Aug  7 17:34:13 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 fr_FR locale.
+
+# Strings
+BUNDLETHREESTRING=BundleThreeString, fr_FR
+
+# String Arrays
+BUNDLETHREESTRINGARRAY=Bundle,Three,String,Array,fr_FR
+
+# Numbers
+BUNDLETHREENUMBER=33
+
+# Booleans
+BUNDLETHREEBOOLEANTRUE=true
+BUNDLETHREEBOOLEANFALSE=false
+
+# Classes
+# BUNDLETHREECLASS=Embed("../../../../../../../../Assets/Images/FlagImages/flag_fr_FR.png");

Added: incubator/flex/trunk/mustella/tests/resources/ResourceManager/SWFs/assets/bundles/custom/fr_FR/bundle4.properties
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/resources/ResourceManager/SWFs/assets/bundles/custom/fr_FR/bundle4.properties?rev=1370380&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/resources/ResourceManager/SWFs/assets/bundles/custom/fr_FR/bundle4.properties (added)
+++ incubator/flex/trunk/mustella/tests/resources/ResourceManager/SWFs/assets/bundles/custom/fr_FR/bundle4.properties Tue Aug  7 17:34:13 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 4th resource bundle in the fr_FR locale.
+
+# Strings
+BUNDLEFOURSTRING=BundleFourString, fr_FR
+
+# String Arrays
+BUNDLEFOURSTRINGARRAY=Bundle,Four,String,Array,fr_FR
+
+# Numbers
+BUNDLEFOURNUMBER=44
+
+# Booleans
+BUNDLEFOURBOOLEANTRUE=true
+BUNDLEFOURBOOLEANFALSE=false
+
+# Classes
+# BUNDLEFOURCLASS=Embed("../../../../../../../../Assets/Images/FlagImages/flag_fr_FR.png");

Added: incubator/flex/trunk/mustella/tests/resources/ResourceManager/SWFs/assets/bundles/custom/fr_FR/bundle5.properties
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/resources/ResourceManager/SWFs/assets/bundles/custom/fr_FR/bundle5.properties?rev=1370380&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/resources/ResourceManager/SWFs/assets/bundles/custom/fr_FR/bundle5.properties (added)
+++ incubator/flex/trunk/mustella/tests/resources/ResourceManager/SWFs/assets/bundles/custom/fr_FR/bundle5.properties Tue Aug  7 17:34:13 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.
+##
+################################################################################



Mime
View raw message