incubator-flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From p...@apache.org
Subject svn commit: r1370370 [37/43] - in /incubator/flex/trunk/mustella/tests/mx: ./ binding/ binding/utils/ binding/utils/BindingUtils/ binding/utils/BindingUtils/SWFs/ binding/utils/BindingUtils/SWFs/assets/ binding/utils/BindingUtils/method/ binding/utils/...
Date Tue, 07 Aug 2012 17:13:35 GMT
Added: incubator/flex/trunk/mustella/tests/mx/styles/AdvancedStyleClient/SWFs/assets/externalStyle.css
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/mx/styles/AdvancedStyleClient/SWFs/assets/externalStyle.css?rev=1370370&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/mx/styles/AdvancedStyleClient/SWFs/assets/externalStyle.css (added)
+++ incubator/flex/trunk/mustella/tests/mx/styles/AdvancedStyleClient/SWFs/assets/externalStyle.css Tue Aug  7 17:13:06 2012
@@ -0,0 +1,109 @@
+/*
+ *
+ * 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.
+ *
+ */
+/* CSS file */
+@namespace s "library://ns.adobe.com/flex/spark";
+@namespace mx "library://ns.adobe.com/flex/mx";
+@namespace styleTest "assets.styleTest.*";
+
+/* ID Selector */
+#advStyleTest_External_ID {
+	teststyle_1_string_noinh : "idString";	
+	teststyle_2_number_noinh : 6666666;		
+	teststyle_3_uint_inh : 43;
+	
+	teststyle_5_format_length_noinh : 50px;
+	teststyle_6_format_time_noinh : 12000;
+	teststyle_7_format_color_noinh : #556677;
+	
+	teststyle_11_boolean_noinh : true;
+	teststyle_12_enum_string_inh : "secondType";
+	teststyle_13_enum_int_noinh : 99;
+	
+	teststyle_15_state_string_noinh : "idStateString";	
+}  
+
+#advStyleTest_External3 {
+	teststyle_2_number_noinh : 1111;
+	
+	teststyle_11_boolean_noinh : true;
+	teststyle_12_enum_string_inh : "firstType";
+} 
+	
+/* Class Selector */
+.ExternalClassStyle {
+	teststyle_1_string_noinh : "ExternalString";
+	teststyle_2_number_noinh : 6666789;
+	teststyle_3_uint_inh : 34;
+	
+	teststyle_5_format_length_noinh : 50px;
+	teststyle_6_format_time_noinh : 12000;
+	teststyle_7_format_color_noinh : #776655;
+	
+	teststyle_11_boolean_noinh : false;
+	teststyle_12_enum_string_inh : "secondType";
+	teststyle_13_enum_int_noinh : 99;
+	
+	teststyle_15_state_string_noinh : "ExternalStateString";
+	teststyle_17_skin_state_noinh : ClassReference("assets.styleTest.ADVStyleTestSkin"); 
+} 
+	
+/* Partly Class Selector */
+.addStyle1 {
+	teststyle_1_string_noinh : "classString";	
+	
+	teststyle_5_format_length_noinh : 50px;
+	teststyle_6_format_time_noinh : 12000;
+	
+	teststyle_11_boolean_noinh : false;
+	teststyle_12_enum_string_inh : "secondType";
+
+} 
+
+.addStyle2 {
+	teststyle_1_string_noinh : "classString";	
+	
+	teststyle_5_format_length_noinh : 50px;
+	teststyle_6_format_time_noinh : 12000;
+	
+	teststyle_11_boolean_noinh : false;
+	teststyle_12_enum_string_inh : "secondType";
+} 
+
+#advStyleTest_External_Measure1 {
+	teststyle_5_format_length_noinh : 1in;
+	teststyle_7_format_color_noinh : rgb(100%, 0%, 0%);
+}  	
+#advStyleTest_External_Measure2 {
+	teststyle_5_format_length_noinh : 1cm;
+	teststyle_7_format_color_noinh : Red;	
+} 		
+#advStyleTest_External_Measure3 {
+	teststyle_5_format_length_noinh : 1pt;
+	teststyle_7_format_color_noinh : 255,0,0;	
+} 
+#advStyleTest_External_Measure4 {
+	teststyle_5_format_length_noinh : 1pc;
+	teststyle_7_format_color_noinh : #ff0000;	
+} 
+#advStyleTest_External_Measure5 {
+	teststyle_5_format_length_noinh : 1mm;	
+} 
+#advStyleTest_External_Measure6 {
+	teststyle_5_format_length_noinh : 1px;
+} 

Added: incubator/flex/trunk/mustella/tests/mx/styles/AdvancedStyleClient/SWFs/assets/globalStyle.css
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/mx/styles/AdvancedStyleClient/SWFs/assets/globalStyle.css?rev=1370370&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/mx/styles/AdvancedStyleClient/SWFs/assets/globalStyle.css (added)
+++ incubator/flex/trunk/mustella/tests/mx/styles/AdvancedStyleClient/SWFs/assets/globalStyle.css Tue Aug  7 17:13:06 2012
@@ -0,0 +1,29 @@
+/*
+ *
+ * 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.
+ *
+ */
+/* CSS file */
+@namespace s "library://ns.adobe.com/flex/spark";
+@namespace mx "library://ns.adobe.com/flex/mx";
+@namespace styleTest "assets.styleTest.*";
+
+/* Global Selector */
+global {
+	teststyle_2_number_noinh : 111;		
+	teststyle_3_uint_inh : 0;
+}	
+

Added: incubator/flex/trunk/mustella/tests/mx/styles/AdvancedStyleClient/SWFs/assets/localUIComp.css
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/mx/styles/AdvancedStyleClient/SWFs/assets/localUIComp.css?rev=1370370&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/mx/styles/AdvancedStyleClient/SWFs/assets/localUIComp.css (added)
+++ incubator/flex/trunk/mustella/tests/mx/styles/AdvancedStyleClient/SWFs/assets/localUIComp.css Tue Aug  7 17:13:06 2012
@@ -0,0 +1,50 @@
+/*
+ *
+ * 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.
+ *
+ */
+/* CSS file */
+@namespace s "library://ns.adobe.com/flex/spark";
+@namespace mx "library://ns.adobe.com/flex/mx";
+@namespace styleTest "assets.styleTest.*";
+
+styleTest|ADVStyleTestClassUIComp {
+	teststyle_2_number_noinh : 8888888;
+}
+
+styleTest|ADVStyleTestClassUIComp:heavy {
+	teststyle_15_state_string_noinh : "extStateStringHeavy";
+	
+	teststyle_1_string_noinh : "extHeavy";
+	teststyle_2_number_noinh : 12345;
+	
+}
+
+styleTest|ADVStyleTestClassUIComp:medium {
+	teststyle_15_state_string_noinh : "extStateStringMedium";
+	
+	teststyle_1_string_noinh : "extMedium";
+	teststyle_2_number_noinh : 67890;
+	
+}
+
+styleTest|ADVStyleTestClassUIComp:light {
+	teststyle_15_state_string_noinh : "extStateStringLight";
+	
+	teststyle_1_string_noinh : "extLight";
+	teststyle_2_number_noinh : 123456789;
+	
+}

Added: incubator/flex/trunk/mustella/tests/mx/styles/AdvancedStyleClient/SWFs/assets/moduleStyle.css
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/mx/styles/AdvancedStyleClient/SWFs/assets/moduleStyle.css?rev=1370370&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/mx/styles/AdvancedStyleClient/SWFs/assets/moduleStyle.css (added)
+++ incubator/flex/trunk/mustella/tests/mx/styles/AdvancedStyleClient/SWFs/assets/moduleStyle.css Tue Aug  7 17:13:06 2012
@@ -0,0 +1,33 @@
+/*
+ *
+ * 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.
+ *
+ */
+/* CSS file */
+@namespace s "library://ns.adobe.com/flex/spark";
+@namespace mx "library://ns.adobe.com/flex/mx";
+@namespace styleTest "assets.styleTest.*";
+
+/* Type Selector */
+styleTest|ADVStyleTestClass {
+	teststyle_1_string_noinh : "typeString";	
+	teststyle_2_number_noinh : 111;		
+	teststyle_3_uint_inh : 222;
+	teststyle_5_format_length_noinh : 50px;
+	teststyle_6_format_time_noinh : 12000;
+}	
+
+

Added: incubator/flex/trunk/mustella/tests/mx/styles/AdvancedStyleClient/SWFs/assets/style.css
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/mx/styles/AdvancedStyleClient/SWFs/assets/style.css?rev=1370370&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/mx/styles/AdvancedStyleClient/SWFs/assets/style.css (added)
+++ incubator/flex/trunk/mustella/tests/mx/styles/AdvancedStyleClient/SWFs/assets/style.css Tue Aug  7 17:13:06 2012
@@ -0,0 +1,116 @@
+/*
+ *
+ * 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.
+ *
+ */
+/* CSS file */
+@namespace s "library://ns.adobe.com/flex/spark";
+@namespace mx "library://ns.adobe.com/flex/mx";
+@namespace styleTest "assets.styleTest.*";
+
+/* ID Selector */
+#advStyleTest_External_ID {
+	teststyle_1_string_noinh : "idString";	
+	teststyle_2_number_noinh : 6666666;		
+	teststyle_3_uint_inh : 43;
+	teststyle_5_format_length_noinh : 50px;
+	teststyle_6_format_time_noinh : 12000;
+	teststyle_7_format_color_noinh : #556677;
+	teststyle_11_boolean_noinh : true;
+	teststyle_12_enum_string_inh : "secondType";
+	teststyle_13_enum_int_noinh : 99;
+	teststyle_15_state_string_noinh : "idStateString";	
+}  
+
+#advStyleTest_External3 {
+	
+	teststyle_2_number_noinh : 1111;
+	teststyle_11_boolean_noinh : true;
+	teststyle_12_enum_string_inh : "firstType";
+} 
+	
+/* Class Selector */
+.ExternalClassStyle {
+	teststyle_1_string_noinh : "ExternalString";
+	/*
+	this will be using external style
+	teststyle_2_number_noinh : 6666789.54321;
+	*/
+	
+	teststyle_2_number_noinh : 6666789;
+	
+	teststyle_3_uint_inh : 34;
+	teststyle_5_format_length_noinh : 50px;
+	teststyle_6_format_time_noinh : 12000;
+	teststyle_7_format_color_noinh : #776655;
+	teststyle_11_boolean_noinh : false;
+	teststyle_12_enum_string_inh : "secondType";
+	teststyle_13_enum_int_noinh : 99;
+	/*
+	this will be using external style
+	teststyle_15_state_string_noinh : "localStateString";
+	*/
+	teststyle_15_state_string_noinh : "ExternalStateString";
+	
+	/* teststyle_16_skin_noinh, teststyle_17_skin_state_noinh cannot be used
+	in css*/
+ 	/* 		teststyle_16_skin_noinh : Embed("../../../../../../Assets/Images/next.JPG");
+	teststyle_17_skin_state_noinh : Embed("../../../../../../Assets/Images/next.JPG");  */
+/*	teststyle_17_skin_state_noinh : ClassReference("assets.styleTest.ADVStyleTestSkin"); */
+} 
+	
+/* Partly Class Selector */
+.addStyle1 {
+	teststyle_1_string_noinh : "classString";	
+	teststyle_5_format_length_noinh : 50px;
+	teststyle_6_format_time_noinh : 12000;
+	teststyle_11_boolean_noinh : false;
+	teststyle_12_enum_string_inh : "secondType";
+
+} 
+
+.addStyle2 {
+	teststyle_1_string_noinh : "classString";	
+	
+	teststyle_5_format_length_noinh : 50px;
+	teststyle_6_format_time_noinh : 12000;
+	
+	teststyle_11_boolean_noinh : false;
+	teststyle_12_enum_string_inh : "secondType";
+} 
+
+#advStyleTest_External_Measure1 {
+	teststyle_5_format_length_noinh : 1in;
+	teststyle_7_format_color_noinh : rgb(100%, 0%, 0%);
+}  	
+#advStyleTest_External_Measure2 {
+	teststyle_5_format_length_noinh : 1cm;
+	teststyle_7_format_color_noinh : Red;	
+} 		
+#advStyleTest_External_Measure3 {
+	teststyle_5_format_length_noinh : 1pt;
+	teststyle_7_format_color_noinh : 255,0,0;	
+} 
+#advStyleTest_External_Measure4 {
+	teststyle_5_format_length_noinh : 1pc;
+	teststyle_7_format_color_noinh : #ff0000;	
+} 
+#advStyleTest_External_Measure5 {
+	teststyle_5_format_length_noinh : 1mm;	
+} 
+#advStyleTest_External_Measure6 {
+	teststyle_5_format_length_noinh : 1px;
+} 

Added: incubator/flex/trunk/mustella/tests/mx/styles/AdvancedStyleClient/SWFs/assets/styleTest/ADVStyleTestClass.as
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/mx/styles/AdvancedStyleClient/SWFs/assets/styleTest/ADVStyleTestClass.as?rev=1370370&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/mx/styles/AdvancedStyleClient/SWFs/assets/styleTest/ADVStyleTestClass.as (added)
+++ incubator/flex/trunk/mustella/tests/mx/styles/AdvancedStyleClient/SWFs/assets/styleTest/ADVStyleTestClass.as Tue Aug  7 17:13:06 2012
@@ -0,0 +1,263 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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 assets.styleTest
+{
+	import flash.events.Event;
+	
+	import mx.collections.ArrayCollection;
+	import mx.collections.IList;
+	import mx.collections.XMLListCollection;
+	import mx.core.FlexGlobals;
+	import mx.styles.AdvancedStyleClient;
+	import mx.styles.CSSStyleDeclaration;
+	
+	//The possible values of the format property of the [Style] metadata tag are:
+	// Boolean, Color, Number, Length, uint, Time, File, EmbeddedFile, int, 
+	// ICollectionView, Array, Class, String, Object 
+	
+	//style with String type
+	[Style(name="teststyle_1_string_noinh", type="String", inherit="no")]
+	
+	//sample as <s:ComboBox paddingBottom="13.5" />
+	[Style(name="teststyle_2_number_noinh", type="Number", inherit="no")]
+	
+	[Style(name="teststyle_3_uint_inh", type="uint", inherit="yes")]
+	
+	[Style(name="teststyle_4_date_inh", type="Date", inherit="yes")]
+	
+	/*
+	 style with format, we will only focus on the following format type:
+		Length format
+		Time format
+		Color format
+		Using Arrays for style properties
+	*/
+	
+	//Length format
+	/**
+	 Length is of type Number. 
+	 Length format has following unit:
+	 Unit    Scale    Description
+		 em    Relative    Ems. The width of the character m in the character set.
+		 ex    Relative    x-height. The height of the character x in the character set.
+	 px    Relative    Pixels.
+	 in    Absolute    Inches.
+	 cm    Absolute    Centimeters.
+	 mm    Absolute    Millimeters.
+	 pt    Absolute    Points.
+	 pc    Absolute    Picas.
+	 Flex does not support the em and ex units. You can convert these to px units by using the following scales:
+1em = 10.06667px
+1ex = 6px
+	When you use inline styles, Flex ignores units and uses pixels as the default.
+	*/
+	[Style(name="teststyle_5_format_length_noinh", type="Number", format="Length", inherit="no")]
+	
+	//Time format
+	/**
+	The Time format is of type Number and is represented in milliseconds.
+	Do not specify the units when entering a value in the Time format.
+	 */
+	[Style(name="teststyle_6_format_time_noinh", type="Number", format="Time", inherit="no")]
+
+	//Color format
+	/**
+	hexadecimal: 
+		You use the 0x prefix when defining colors in calls to the setStyle() method and in MXML tags. 
+		 * 
+	 	You use the # prefix in CSS style sheets and in <fx:Style> tag blocks.
+		 * 
+	YRGB: 
+		You can use the RGB format only in style sheet definitions.
+		 * 
+		RGB colors are a mixture of the colors red, green, and blue, 
+		and are represented in percentages of the color’s saturation. 
+		The format for setting RGB colors is color:rgb(x%, y%, z%)
+		 * 
+	8-bit octet RGB: 
+		You can use the RGB format only in style sheet definitions.
+		 * 
+		The 8-bit octet RGB colors are red, green, and blue values from 1 to 255. 
+		The format of 8-bit octet colors is [0-255],[0-255],[0-255].
+		 * 
+	VGA color names: 
+		You can use the VGA color names format in style sheet definitions and inline style declarations.
+		 * 
+		VGA color names are not case-sensitive. 
+		The available color names are Aqua, Black, Blue, Fuchsia, Gray, Green, Lime, 
+		Maroon, Navy, Olive, Purple, Red, Silver, Teal, White, Yellow. 
+	*/
+	//sample as <s:Button label="test" emphasized="true" accentColor="#FF99FF" />
+	[Style(name="teststyle_7_format_color_noinh", type="uint", format="Color", inherit="no")]
+	
+	//style with format and arrayType
+	/** sample as:
+	 mx|Tree {
+        deColors: #FFCC33, #FFCC99, #CC9900;
+        alternatingItemColors: red, green;
+     }
+	*/
+	[Style(name="teststyle_8_format_arrayType_noinh", type="Array", arrayType="uint", format="Color", inherit="no")]
+	
+	//style with ArrayCollection type
+	[Style(name="teststyle_9_date_arrayCol_inh", type="ArrayCollection", arrayType="Date", inherit="yes")]
+	[Style(name="teststyle_10_xml_arrayCol_noinh", type="XMLListCollection", arrayType="XMLList", format="ICollectionView", inherit="no")]
+	
+	//style of Boolean
+	[Style(name="teststyle_11_boolean_noinh", type="Boolean", format="Boolean", inherit="no")]
+	
+	//style with enumeration
+	[Style(name="teststyle_12_enum_string_inh", type="String", inherit="yes", enumeration="defaultType, firstType, secondType")]
+	[Style(name="teststyle_13_enum_int_noinh", type="int", inherit="no", enumeration="15, 66, 99, 1")]
+	
+	//style with custom object
+	[Style(name="teststyle_14_object_noinh", type="assets.styleTest.ADVStyleTestVo", format="Object", inherit="no")]
+	
+	//style with state
+	[Style(name="teststyle_15_state_string_noinh", type="String", inherit="no", states="heavy, medium, light")]
+	
+	//skin
+	[Style(name="teststyle_16_skin_noinh", type="Class", inherit="no")]
+	//skin with state
+	[Style(name="teststyle_17_skin_state_noinh", type="Class", format="Class", inherit="no", states="heavy, medium, light")]
+	
+	//end test style.
+	
+	/**
+	 * this event will be dispatched when a style named start with "teststyle_" has been changed.
+	 * and event's property: changedStyleName will contain this style name.
+	 */
+	[Event(name="testStylesChanged", type="assets.styleTest.ADVStyleTestEvent")]
+		
+	public class ADVStyleTestClass extends AdvancedStyleClient
+	{
+		
+		// Define a static variable.
+		private static var classConstructed:Boolean = classConstruct();
+		
+		// Define a static method.
+		private static function classConstruct():Boolean {
+			if (!FlexGlobals.topLevelApplication.styleManager.getStyleDeclaration("assets.styleTest.ADVStyleTestClass"))
+			{
+				// If there is no CSS definition for StyledRectangle, 
+				// then create one and set the default value.
+				var cssStyle:CSSStyleDeclaration = new CSSStyleDeclaration();
+				cssStyle.defaultFactory = function():void
+				{
+					this.teststyle_1_string_noinh = 'defaultString';
+					/**
+					 * 2, 3 unset here, so can set them using Application and global selector.
+					 */
+//					this.teststyle_2_number_noinh = 11111.2345;
+//					this.teststyle_3_uint_inh = 9870;
+					this.teststyle_4_date_inh = ADVStyleTestConstants.defaultDate;
+					this.teststyle_5_format_length_noinh = 30;
+					this.teststyle_6_format_time_noinh = 5000;
+					this.teststyle_7_format_color_noinh = 0x112233;
+					this.teststyle_8_format_arrayType_noinh = [0xFFCC33, 0xCC33FF, 0x33FFCC];
+					
+					this.teststyle_9_date_arrayCol_inh = new ArrayCollection([
+						new Date(1910, 1, 5), 
+						new Date(1950, 5, 5), 
+						new Date(1990, 10, 5)]);
+					this.teststyle_10_xml_arrayCol_noinh = new XMLListCollection(new XMLList(
+						'<defaultXml1>defaultXml1</defaultXml1>' +
+						'<defaultXml2>defaultXml2</defaultXml2>' +
+						'<defaultXml3>defaultXml3</defaultXml3>'));
+					
+					this.teststyle_11_boolean_noinh = false;
+					this.teststyle_12_enum_string_inh = 'defaultType';
+					this.teststyle_13_enum_int_noinh = 15;
+					this.teststyle_14_object_noinh = ADVStyleTestConstants.defaultAdvVo;
+					
+					this.teststyle_15_state_string_noinh = "defaultStateString";
+					
+					this.teststyle_16_skin_noinh = ADVStyleTestConstants.defaultCls;
+					this.teststyle_17_skin_state_noinh = ADVStyleTestConstants.defaultCls_heavy;
+				}
+					
+				FlexGlobals.topLevelApplication.styleManager.setStyleDeclaration("assets.styleTest.ADVStyleTestClass", cssStyle, true);
+				
+			}
+			
+			return true;
+		}
+		
+		/**
+		 * a list that fill with all style's name defined in this ADVStyleTestClass class.
+		 */
+		public static const STYLE_NAME_LIST:ArrayCollection = new ArrayCollection([
+			'teststyle_1_string_noinh',
+			'teststyle_2_number_noinh',
+			'teststyle_3_uint_inh',
+			'teststyle_4_date_inh',
+			'teststyle_5_format_length_noinh',
+			'teststyle_6_format_time_noinh',
+			'teststyle_7_format_color_noinh',
+			'teststyle_8_format_arrayType_noinh',
+			'teststyle_9_date_arrayCol_inh',
+			'teststyle_10_xml_arrayCol_noinh',
+			'teststyle_11_boolean_noinh',
+			'teststyle_12_enum_string_inh',
+			'teststyle_13_enum_int_noinh',
+			'teststyle_14_object_noinh',
+			'teststyle_15_state_string_noinh',
+			'teststyle_16_skin_noinh',
+			'teststyle_17_skin_state_noinh',
+		]);
+		
+		public function ADVStyleTestClass()
+		{
+			super();
+		}
+		
+		/**
+		 *  Detects changes to style properties. When any style property is set,
+		 *  Flex calls the <code>styleChanged()</code> method,
+		 *  passing to it the name of the style being set.
+		 * 
+		 * 	Override this method to dispatch an event:ADVStyleTestEvent(ADVStyleTestEvent.TEST_STYLE_CHANGED)
+		 *  when a "teststyle_*" has changed.
+		 */
+		override public function styleChanged(styleProp:String):void {
+			super.styleChanged(styleProp);
+			
+			if (styleProp) {
+				if (styleProp.indexOf('teststyle_') == 0) {
+					var event:ADVStyleTestEvent = new ADVStyleTestEvent(ADVStyleTestEvent.TEST_STYLE_CHANGED);
+					event.changedStyleName = styleProp;
+					
+					this.dispatchEvent(event);
+				}
+			}
+		}
+		
+		[Bindable("testStylesChanged")]
+		public function getMyStyleLabel():String {
+			var retVal:String;
+			
+			retVal = this.getStyle('teststyle_1_string_noinh') + ":" +
+				this.getStyle('teststyle_2_number_noinh') + ":" +
+				this.getStyle('teststyle_3_uint_inh');
+			
+			return retVal;
+		}
+
+	}
+}
\ No newline at end of file

Added: incubator/flex/trunk/mustella/tests/mx/styles/AdvancedStyleClient/SWFs/assets/styleTest/ADVStyleTestClassUIComp.as
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/mx/styles/AdvancedStyleClient/SWFs/assets/styleTest/ADVStyleTestClassUIComp.as?rev=1370370&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/mx/styles/AdvancedStyleClient/SWFs/assets/styleTest/ADVStyleTestClassUIComp.as (added)
+++ incubator/flex/trunk/mustella/tests/mx/styles/AdvancedStyleClient/SWFs/assets/styleTest/ADVStyleTestClassUIComp.as Tue Aug  7 17:13:06 2012
@@ -0,0 +1,369 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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 assets.styleTest
+{
+	import flash.events.Event;
+	
+	import mx.collections.ArrayCollection;
+	import mx.collections.IList;
+	import mx.collections.XMLListCollection;
+	import mx.core.FlexGlobals;
+	import mx.core.UIComponent;
+	import mx.events.CollectionEvent;
+	import mx.styles.CSSStyleDeclaration;
+	
+	//The possible values of the format property of the [Style] metadata tag are:
+	// Boolean, Color, Number, Length, uint, Time, File, EmbeddedFile, int, 
+	// ICollectionView, Array, Class, String, Object 
+	
+	//style with String type
+	[Style(name="teststyle_1_string_noinh", type="String", inherit="no")]
+	
+	//sample as <s:ComboBox paddingBottom="13.5" />
+	[Style(name="teststyle_2_number_noinh", type="Number", inherit="no")]
+	
+	[Style(name="teststyle_3_uint_inh", type="uint", inherit="yes")]
+	
+	[Style(name="teststyle_4_date_inh", type="Date", inherit="yes")]
+	
+	/*
+	style with format, we will only focus on the following format type:
+	Length format
+	Time format
+	Color format
+	Using Arrays for style properties
+	*/
+	
+	//Length format
+	/**
+	 Length is of type Number. 
+	 Length format has following unit:
+	 Unit    Scale    Description
+	 em    Relative    Ems. The width of the character m in the character set.
+	 ex    Relative    x-height. The height of the character x in the character set.
+	 px    Relative    Pixels.
+	 in    Absolute    Inches.
+	 cm    Absolute    Centimeters.
+	 mm    Absolute    Millimeters.
+	 pt    Absolute    Points.
+	 pc    Absolute    Picas.
+	 Flex does not support the em and ex units. You can convert these to px units by using the following scales:
+	 1em = 10.06667px
+	 1ex = 6px
+	 When you use inline styles, Flex ignores units and uses pixels as the default.
+	 */
+	[Style(name="teststyle_5_format_length_noinh", type="Number", format="Length", inherit="no")]
+	
+	//Time format
+	/**
+	 The Time format is of type Number and is represented in milliseconds.
+	 Do not specify the units when entering a value in the Time format.
+	 */
+	[Style(name="teststyle_6_format_time_noinh", type="Number", format="Time", inherit="no")]
+	
+	//Color format
+	/**
+	 hexadecimal: 
+	 You use the 0x prefix when defining colors in calls to the setStyle() method and in MXML tags. 
+	 * 
+	 You use the # prefix in CSS style sheets and in <fx:Style> tag blocks.
+	 * 
+	 YRGB: 
+	 You can use the RGB format only in style sheet definitions.
+	 * 
+	 RGB colors are a mixture of the colors red, green, and blue, 
+	 and are represented in percentages of the color’s saturation. 
+	 The format for setting RGB colors is color:rgb(x%, y%, z%)
+	 * 
+	 8-bit octet RGB: 
+	 You can use the RGB format only in style sheet definitions.
+	 * 
+	 The 8-bit octet RGB colors are red, green, and blue values from 1 to 255. 
+	 The format of 8-bit octet colors is [0-255],[0-255],[0-255].
+	 * 
+	 VGA color names: 
+	 You can use the VGA color names format in style sheet definitions and inline style declarations.
+	 * 
+	 VGA color names are not case-sensitive. 
+	 The available color names are Aqua, Black, Blue, Fuchsia, Gray, Green, Lime, 
+	 Maroon, Navy, Olive, Purple, Red, Silver, Teal, White, Yellow. 
+	 */
+	//sample as <s:Button label="test" emphasized="true" accentColor="#FF99FF" />
+	[Style(name="teststyle_7_format_color_noinh", type="uint", format="Color", inherit="no")]
+	
+	//style with format and arrayType
+	/** sample as:
+	 mx|Tree {
+	 deColors: #FFCC33, #FFCC99, #CC9900;
+	 alternatingItemColors: red, green;
+	 }
+	 */
+	[Style(name="teststyle_8_format_arrayType_noinh", type="Array", arrayType="uint", format="Color", inherit="no")]
+	
+	//style with ArrayCollection type
+	[Style(name="teststyle_9_date_arrayCol_inh", type="ArrayCollection", arrayType="Date", inherit="yes")]
+	[Style(name="teststyle_10_xml_arrayCol_noinh", type="XMLListCollection", arrayType="XMLList", format="ICollectionView", inherit="no")]
+	
+	//style of Boolean
+	[Style(name="teststyle_11_boolean_noinh", type="Boolean", format="Boolean", inherit="no")]
+	
+	//style with enumeration
+	[Style(name="teststyle_12_enum_string_inh", type="String", inherit="yes", enumeration="defaultType, firstType, secondType")]
+	[Style(name="teststyle_13_enum_int_noinh", type="int", inherit="no", enumeration="15, 66, 99, 1")]
+	
+	//style with custom object
+	[Style(name="teststyle_14_object_noinh", type="assets.styleTest.ADVStyleTestVo", format="Object", inherit="no")]
+	
+	//style with state
+	[Style(name="teststyle_15_state_string_noinh", type="String", inherit="no", states="heavy, medium, light")]
+	
+	//skin
+	[Style(name="teststyle_16_skin_noinh", type="Class", inherit="no")]
+	//skin with state
+	[Style(name="teststyle_17_skin_state_noinh", type="Class", format="Class", inherit="no", states="heavy, medium, light")]
+	
+	//end test style.
+	
+	[Event(name="testStylesChanged", type="assets.styleTest.ADVStyleTestEvent")]
+	
+	public class ADVStyleTestClassUIComp extends UIComponent
+	{
+		
+		// Define a static variable.
+		private static var classConstructed:Boolean = classConstruct();
+		
+		// Define a static method.
+		private static function classConstruct():Boolean {
+			/*
+			var cssStyle:CSSStyleDeclaration = FlexGlobals.topLevelApplication.styleManager.getStyleDeclaration("assets.styleTest.ADVStyleTestClassUIComp");
+			if (cssStyle == null)
+			{
+				// If there is no CSS definition for StyledRectangle, 
+				// then create one and set the default value.
+				cssStyle = new CSSStyleDeclaration();
+			}
+			
+			cssStyle.defaultFactory = function():void
+			{
+				this.fillColors = [0xFF0000, 0x0000FF];
+				this.alphas = [0.5, 0.5];
+			}
+				
+			FlexGlobals.topLevelApplication.styleManager.setStyleDeclaration("assets.styleTest.ADVStyleTestClassUIComp", cssStyle, true);
+			*/
+			
+			if (!FlexGlobals.topLevelApplication.styleManager.getStyleDeclaration("assets.styleTest.ADVStyleTestClassUIComp"))
+			{
+				// If there is no CSS definition for StyledRectangle, 
+				// then create one and set the default value.
+				var cssStyle:CSSStyleDeclaration = new CSSStyleDeclaration();
+				cssStyle.defaultFactory = function():void
+				{
+					this.teststyle_1_string_noinh = 'defaultString';
+					/**
+					 * 2, 3 unset here, so can set them using Application and global selector.
+					 */
+//					this.teststyle_2_number_noinh = 11111.2345;
+//					this.teststyle_3_uint_inh = 9870;
+					this.teststyle_4_date_inh = new Date(2010, 5, 4);
+					this.teststyle_5_format_length_noinh = 30;
+					this.teststyle_6_format_time_noinh = 5000;
+					this.teststyle_7_format_color_noinh = 0x112233;
+					this.teststyle_8_format_arrayType_noinh = [0xFFCC33, 0xCC33FF, 0x33FFCC];
+					
+					this.teststyle_9_date_arrayCol_inh = new ArrayCollection([
+						new Date(1910, 1, 5), 
+						new Date(1950, 5, 5), 
+						new Date(1990, 10, 5)]);
+					this.teststyle_10_xml_arrayCol_noinh = new XMLListCollection(new XMLList(
+						'<defaultXml1>defaultXml1</defaultXml1>' +
+						'<defaultXml2>defaultXml2</defaultXml2>' +
+						'<defaultXml3>defaultXml3</defaultXml3>'));
+					
+					this.teststyle_11_boolean_noinh = false;
+					this.teststyle_12_enum_string_inh = 'defaultType';
+					this.teststyle_13_enum_int_noinh = 15;
+					this.teststyle_14_object_noinh = ADVStyleTestConstants.defaultAdvVo;
+					
+					this.teststyle_15_state_string_noinh = "defaultStateString";
+					
+					this.teststyle_16_skin_noinh = ADVStyleTestConstants.defaultCls;
+					this.teststyle_17_skin_state_noinh = ADVStyleTestConstants.defaultCls_heavy;
+				}
+				
+				FlexGlobals.topLevelApplication.styleManager.setStyleDeclaration("assets.styleTest.ADVStyleTestClassUIComp", cssStyle, true);
+				
+			}
+
+			return true;
+		}
+		
+		public static const STYLE_NAME_LIST:ArrayCollection = new ArrayCollection([
+			'teststyle_1_string_noinh',
+			'teststyle_2_number_noinh',
+			'teststyle_3_uint_inh',
+			'teststyle_4_date_inh',
+			'teststyle_5_format_length_noinh',
+			'teststyle_6_format_time_noinh',
+			'teststyle_7_format_color_noinh',
+			'teststyle_8_format_arrayType_noinh',
+			'teststyle_9_date_arrayCol_inh',
+			'teststyle_10_xml_arrayCol_noinh',
+			'teststyle_11_boolean_noinh',
+			'teststyle_12_enum_string_inh',
+			'teststyle_13_enum_int_noinh',
+			'teststyle_14_object_noinh',
+			'teststyle_15_state_string_noinh',
+			'teststyle_16_skin_noinh',
+			'teststyle_17_skin_state_noinh',
+		]);
+		
+		[Bindable]
+		private var truelyGetStyleList:ArrayCollection;
+		
+		public function ADVStyleTestClassUIComp()
+		{
+			super();
+			//truelyGetStyleList = new ArrayCollection(new Array(STYLE_NAME_LIST.length));
+			
+			//this.addEventListener("allStylesChanged", allStyleChangedHandler);
+		}
+		
+		// Define a default size of 100 x 100 pixels.
+		override protected function measure():void {
+			super.measure();
+			
+			measuredWidth = measuredMinWidth = 100;
+			measuredHeight = measuredMinHeight = 100;
+		}
+		
+		// Define the flag to indicate that a style property changed.
+		private var bStypePropChanged:Boolean = true;
+		
+		private var myColor:uint;
+		private var myAlpha:Number;
+		
+		// Define the variable for additional control on the fill.
+		// You can create a style property for this as well.
+		private var ratios:Array = [0x00, 0xFF];
+		
+		// Override updateDisplayList() to update the component 
+		// based on the style setting.
+		override protected function updateDisplayList(unscaledWidth:Number,
+													  unscaledHeight:Number):void {
+			super.updateDisplayList(unscaledWidth, unscaledHeight);
+			
+			// Check to see if style changed. 
+			if (bStypePropChanged == true) 
+			{
+				// Redraw gradient fill only if style changed.
+				myColor = getStyle("teststyle_7_format_color_noinh");
+				//myAlpha = getStyle("teststyle_2_number_noinh");
+				
+				graphics.beginFill(myColor);  
+				graphics.drawRect(0, 0, unscaledWidth, unscaledHeight);
+				
+				bStypePropChanged = false;
+			}
+		}
+
+		
+		private function allStyleChangedHandler(event:Event):void {
+			truelyGetStyleList = generateTruelyGetStyleList();
+			
+//			var ev:TestStylesEvent = new TestStylesEvent(TestStylesEvent.ALL_TEST_STYLE_CHANGED);
+//			ev.truelyStyleList = truelyGetStyleList;
+//			
+//			dispatchEvent(ev);
+		}
+		
+		private function generateTruelyGetStyleList():ArrayCollection {
+			var temp:ArrayCollection = new ArrayCollection(new Array(STYLE_NAME_LIST.length));
+			
+			for each (var styleName:String in STYLE_NAME_LIST) {
+				setStyleInList(getStyle(styleName), getIdxOfStyle(styleName), temp);
+			}
+			
+			return temp;
+		}
+		
+		/**
+		 * get index value with the given styleName. 
+		 * Because custom style named from 1, this idx will decrease 1.
+		 */
+		private function getIdxOfStyle(styleName:String):int {
+			var idx:int = 0;
+			
+			if (styleName != null) {
+				var start:int = styleName.indexOf('_');
+				
+				if (start > 0) {
+					var end:int = styleName.indexOf('_', start + 1);
+					
+					if (end > 0) {
+						var str:String = styleName.substring(start + 1, end);
+						
+						idx = int (str);
+					}
+				}
+				
+			}
+			
+			return (idx - 1);
+		}
+		
+		/**
+		 * set 'style' into an 'IList' at 'idx'.
+		 */
+		private function setStyleInList(style:*, idx:int, list:IList):void {
+			if (list) {
+				list.removeItemAt(idx);
+				list.addItemAt(style, idx);
+			}
+		}
+		
+		override public function styleChanged(styleProp:String):void {
+			super.styleChanged(styleProp);
+			
+			if (styleProp && (styleProp != "styleName")) {
+				// Check to see if style changed. 
+				if (styleProp=="teststyle_7_format_color_noinh" || styleProp=="teststyle_2_number_noinh") 
+				{
+					bStypePropChanged = true; 
+					invalidateDisplayList();
+					return;
+				}
+				
+				if (styleProp.indexOf('teststyle_') == 0) {
+					var event:ADVStyleTestEvent = new ADVStyleTestEvent(ADVStyleTestEvent.TEST_STYLE_CHANGED);
+					event.changedStyleName = styleProp;
+					
+					this.dispatchEvent(event);
+					//setStyleInList(styleProp, truelyGetStyleList);
+				}
+			} else {
+				bStypePropChanged = true; 
+				invalidateDisplayList();
+				return;
+			}
+			
+		}
+
+	}
+}
\ No newline at end of file

Added: incubator/flex/trunk/mustella/tests/mx/styles/AdvancedStyleClient/SWFs/assets/styleTest/ADVStyleTestConstants.as
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/mx/styles/AdvancedStyleClient/SWFs/assets/styleTest/ADVStyleTestConstants.as?rev=1370370&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/mx/styles/AdvancedStyleClient/SWFs/assets/styleTest/ADVStyleTestConstants.as (added)
+++ incubator/flex/trunk/mustella/tests/mx/styles/AdvancedStyleClient/SWFs/assets/styleTest/ADVStyleTestConstants.as Tue Aug  7 17:13:06 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.
+//
+////////////////////////////////////////////////////////////////////////////////
+package assets.styleTest
+{
+	public class ADVStyleTestConstants
+	{
+		public static const pauseTime: int = 100;
+			
+		[Embed(source="../../../../../../../Assets/Images/next.JPG")]
+		[Bindable]
+		public static var defaultCls_heavy:Class;
+		
+		[Embed(source="../../../../../../../Assets/Images/next.JPG")]
+		[Bindable]
+		public static var defaultCls_medium:Class;
+		
+		[Embed(source="../../../../../../../Assets/Images/next.JPG")]
+		[Bindable]
+		public static var defaultCls_light:Class;
+		
+		[Embed(source="../../../../../../../Assets/Images/next.JPG")]
+		[Bindable]
+		public static var defaultCls:Class;
+		
+		[Embed(source="../../../../../../../Assets/Images/next.JPG")]
+		[Bindable]
+		public static var imgCls:Class;
+		
+		[Embed(source="../../../../../../../Assets/Images/down.JPG")]
+		[Bindable]
+		public static var img2Cls:Class;
+		
+		[Embed(source="../../../../../../../Assets/Images/up.JPG")]
+		[Bindable]
+		public static var img3Cls:Class;
+		
+		public static var defaultAdvVo:ADVStyleTestVo = new ADVStyleTestVo('defaultObjectVo_heavy');
+			
+		public static var testDate:Date = new Date(2000, 8, 16);
+		public static var defaultDate:Date = new Date(2010, 5, 4);
+			
+	}
+}
\ No newline at end of file

Added: incubator/flex/trunk/mustella/tests/mx/styles/AdvancedStyleClient/SWFs/assets/styleTest/ADVStyleTestEvent.as
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/mx/styles/AdvancedStyleClient/SWFs/assets/styleTest/ADVStyleTestEvent.as?rev=1370370&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/mx/styles/AdvancedStyleClient/SWFs/assets/styleTest/ADVStyleTestEvent.as (added)
+++ incubator/flex/trunk/mustella/tests/mx/styles/AdvancedStyleClient/SWFs/assets/styleTest/ADVStyleTestEvent.as Tue Aug  7 17:13:06 2012
@@ -0,0 +1,42 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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 assets.styleTest
+{
+	import flash.events.Event;
+	
+	import mx.collections.ArrayCollection;
+	
+	public class ADVStyleTestEvent extends Event
+	{
+		public static const TEST_STYLE_CHANGED:String = "testStylesChanged";
+		
+		public static const TEST_STYLE_LOAD_COMPLETE:String = "testStylesLoadComplete";
+		
+		public var changedStyleName:String;
+		
+		public function ADVStyleTestEvent(type:String, bubbles:Boolean=false, cancelable:Boolean=false)
+		{
+			super(type, bubbles, cancelable);
+		}
+		
+		override public function clone():Event {
+			return new ADVStyleTestEvent(type, bubbles, cancelable);
+		}
+	}
+}
\ No newline at end of file

Added: incubator/flex/trunk/mustella/tests/mx/styles/AdvancedStyleClient/SWFs/assets/styleTest/ADVStyleTestExtendClass.as
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/mx/styles/AdvancedStyleClient/SWFs/assets/styleTest/ADVStyleTestExtendClass.as?rev=1370370&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/mx/styles/AdvancedStyleClient/SWFs/assets/styleTest/ADVStyleTestExtendClass.as (added)
+++ incubator/flex/trunk/mustella/tests/mx/styles/AdvancedStyleClient/SWFs/assets/styleTest/ADVStyleTestExtendClass.as Tue Aug  7 17:13:06 2012
@@ -0,0 +1,49 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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 assets.styleTest
+{
+	import mx.collections.ArrayCollection;
+	
+	[Style(name="testextstyle_1_string_noinh", type="String", inherit="no")]	
+	
+	[Style(name="testextstyle_2_number_noinh", type="Number", inherit="no")]
+	
+	[Style(name="testextstyle_3_uint_inh", type="uint", inherit="yes")]
+	
+	[Style(name="testextstyle_4_boolean_inh", type="Boolean", inherit="yes")]
+	
+	public class ADVStyleTestExtendClass extends ADVStyleTestClass
+	{
+		public function ADVStyleTestExtendClass()
+		{
+			//TODO: implement function
+			super();
+		}
+		
+		/**
+		 * a list that fill with all style's name defined in this ADVStyleTestClass class.
+		 */
+		public static const STYLE_NAME_LIST:ArrayCollection = new ArrayCollection([
+			'testextstyle_1_string_noinh',
+			'testextstyle_2_number_noinh',
+			'testextstyle_3_uint_inh',
+			'testextstyle_4_boolean_inh',
+		]);
+	}
+}
\ No newline at end of file

Added: incubator/flex/trunk/mustella/tests/mx/styles/AdvancedStyleClient/SWFs/assets/styleTest/ADVStyleTestSkin.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/mx/styles/AdvancedStyleClient/SWFs/assets/styleTest/ADVStyleTestSkin.mxml?rev=1370370&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/mx/styles/AdvancedStyleClient/SWFs/assets/styleTest/ADVStyleTestSkin.mxml (added)
+++ incubator/flex/trunk/mustella/tests/mx/styles/AdvancedStyleClient/SWFs/assets/styleTest/ADVStyleTestSkin.mxml Tue Aug  7 17:13:06 2012
@@ -0,0 +1,39 @@
+<?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:UIComponent xmlns:fx="http://ns.adobe.com/mxml/2009" 
+				xmlns:s="library://ns.adobe.com/flex/spark" 
+				xmlns:mx="library://ns.adobe.com/flex/mx">
+	<fx:Declarations>
+		<!-- Place non-visual elements (e.g., services, value objects) here -->
+	</fx:Declarations>
+	
+	<fx:Script>
+		<![CDATA[
+			
+			override protected function updateDisplayList(unscaledWidth:Number, 
+														  unscaledHeight:Number):void
+			{
+				super.updateDisplayList(unscaledWidth, unscaledHeight);
+			}     
+			
+		]]>
+	</fx:Script>
+	
+</mx:UIComponent>

Added: incubator/flex/trunk/mustella/tests/mx/styles/AdvancedStyleClient/SWFs/assets/styleTest/ADVStyleTestVo.as
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/mx/styles/AdvancedStyleClient/SWFs/assets/styleTest/ADVStyleTestVo.as?rev=1370370&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/mx/styles/AdvancedStyleClient/SWFs/assets/styleTest/ADVStyleTestVo.as (added)
+++ incubator/flex/trunk/mustella/tests/mx/styles/AdvancedStyleClient/SWFs/assets/styleTest/ADVStyleTestVo.as Tue Aug  7 17:13:06 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.
+//
+////////////////////////////////////////////////////////////////////////////////
+package assets.styleTest
+{
+	public class ADVStyleTestVo extends Object
+	{
+		public var name:String;
+		
+		public function ADVStyleTestVo(name:String = null)
+		{
+			this.name = name;
+		}
+		
+		public function toString():String {
+			return "myvo.name:" + this.name;
+		}
+		
+	}
+}
\ No newline at end of file

Added: incubator/flex/trunk/mustella/tests/mx/styles/AdvancedStyleClient/SWFs/assets/styleTest/IModuleInterface.as
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/mx/styles/AdvancedStyleClient/SWFs/assets/styleTest/IModuleInterface.as?rev=1370370&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/mx/styles/AdvancedStyleClient/SWFs/assets/styleTest/IModuleInterface.as (added)
+++ incubator/flex/trunk/mustella/tests/mx/styles/AdvancedStyleClient/SWFs/assets/styleTest/IModuleInterface.as Tue Aug  7 17:13:06 2012
@@ -0,0 +1,28 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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 assets.styleTest 
+{
+	import flash.events.IEventDispatcher;
+	
+	public interface IModuleInterface extends IEventDispatcher
+	{
+		function setADVStyle():void;
+		function getADVStyle(styleName:String):*;
+	}
+}
\ No newline at end of file

Added: incubator/flex/trunk/mustella/tests/mx/styles/AdvancedStyleClient/SWFs/assets/testStyleManager.css
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/mx/styles/AdvancedStyleClient/SWFs/assets/testStyleManager.css?rev=1370370&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/mx/styles/AdvancedStyleClient/SWFs/assets/testStyleManager.css (added)
+++ incubator/flex/trunk/mustella/tests/mx/styles/AdvancedStyleClient/SWFs/assets/testStyleManager.css Tue Aug  7 17:13:06 2012
@@ -0,0 +1,42 @@
+/*
+ *
+ * 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.
+ *
+ */
+/* CSS file */
+@namespace s "library://ns.adobe.com/flex/spark";
+@namespace mx "library://ns.adobe.com/flex/mx";
+@namespace styleTest "assets.styleTest.*";
+
+/*test load/unload Type Selector style CSS */
+styleTest|ADVStyleTestClass {
+	teststyle_2_number_noinh : 8888888;
+	teststyle_6_format_time_noinh : 2010;
+}
+
+/*test load/unload a same name Class Selector style CSS */
+.myStyle {
+	teststyle_1_string_noinh : "extString";
+	teststyle_2_number_noinh : 777777;
+	teststyle_6_format_time_noinh : 2012;
+}
+
+/*test load/unload  a different name Class Selector style CSS */
+.extStyle {
+	teststyle_1_string_noinh : "cjString";
+	teststyle_2_number_noinh : 55555;
+	teststyle_6_format_time_noinh : 2013;
+}
\ No newline at end of file

Added: incubator/flex/trunk/mustella/tests/mx/styles/AdvancedStyleClient/SWFs/assets/typeApplicationCompoundStyle.css
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/mx/styles/AdvancedStyleClient/SWFs/assets/typeApplicationCompoundStyle.css?rev=1370370&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/mx/styles/AdvancedStyleClient/SWFs/assets/typeApplicationCompoundStyle.css (added)
+++ incubator/flex/trunk/mustella/tests/mx/styles/AdvancedStyleClient/SWFs/assets/typeApplicationCompoundStyle.css Tue Aug  7 17:13:06 2012
@@ -0,0 +1,42 @@
+/*
+ *
+ * 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.
+ *
+ */
+/* CSS file */
+@namespace s "library://ns.adobe.com/flex/spark";
+@namespace mx "library://ns.adobe.com/flex/mx";
+@namespace styleTest "assets.styleTest.*";
+
+/* Type Selector */
+styleTest|ADVStyleTestClass {
+	teststyle_2_number_noinh: 11;
+	
+	teststyle_11_boolean_noinh : true;
+	teststyle_12_enum_string_inh : "firstType";
+	
+	teststyle_15_state_string_noinh : "inlineStringHeavy";
+	
+	teststyle_17_skin_state_noinh: ClassReference("assets.styleTest.ADVStyleTestSkin");
+}
+
+
+/* application Selector */
+s|Application {			
+	teststyle_2_number_noinh: 111;
+	teststyle_3_uint_inh: 0;	
+} 
+

Added: incubator/flex/trunk/mustella/tests/mx/styles/AdvancedStyleClient/SWFs/assets/typeGlobalCompoundStyle.css
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/mx/styles/AdvancedStyleClient/SWFs/assets/typeGlobalCompoundStyle.css?rev=1370370&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/mx/styles/AdvancedStyleClient/SWFs/assets/typeGlobalCompoundStyle.css (added)
+++ incubator/flex/trunk/mustella/tests/mx/styles/AdvancedStyleClient/SWFs/assets/typeGlobalCompoundStyle.css Tue Aug  7 17:13:06 2012
@@ -0,0 +1,43 @@
+/*
+ *
+ * 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.
+ *
+ */
+/* CSS file */
+@namespace s "library://ns.adobe.com/flex/spark";
+@namespace mx "library://ns.adobe.com/flex/mx";
+@namespace styleTest "assets.styleTest.*";
+
+/* Type Selector */
+styleTest|ADVStyleTestClass {
+	teststyle_2_number_noinh: 11;
+	
+	teststyle_11_boolean_noinh : true;
+	teststyle_12_enum_string_inh : "firstType";
+	
+	teststyle_15_state_string_noinh : "inlineStringHeavy";
+	
+	teststyle_17_skin_state_noinh: ClassReference("assets.styleTest.ADVStyleTestSkin")	
+}
+
+
+/* application Selector */
+global {
+	teststyle_2_number_noinh: 111;
+	teststyle_3_uint_inh: 0;			
+} 
+
+

Added: incubator/flex/trunk/mustella/tests/mx/styles/AdvancedStyleClient/SWFs/assets/typeStyle.css
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/mx/styles/AdvancedStyleClient/SWFs/assets/typeStyle.css?rev=1370370&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/mx/styles/AdvancedStyleClient/SWFs/assets/typeStyle.css (added)
+++ incubator/flex/trunk/mustella/tests/mx/styles/AdvancedStyleClient/SWFs/assets/typeStyle.css Tue Aug  7 17:13:06 2012
@@ -0,0 +1,46 @@
+/*
+ *
+ * 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.
+ *
+ */
+/* CSS file */
+@namespace s "library://ns.adobe.com/flex/spark";
+@namespace mx "library://ns.adobe.com/flex/mx";
+@namespace styleTest "assets.styleTest.*";
+
+/* Type Selector */
+styleTest|ADVStyleTestClass {
+	teststyle_1_string_noinh : "typeString";	
+	teststyle_2_number_noinh : 111;		
+	teststyle_3_uint_inh : 0;
+	
+	teststyle_5_format_length_noinh : 50px;
+	teststyle_6_format_time_noinh : 12000;
+	teststyle_7_format_color_noinh : #556677;
+	
+	teststyle_11_boolean_noinh : false;
+	teststyle_12_enum_string_inh : "secondType";
+	teststyle_13_enum_int_noinh : 99;
+	
+	teststyle_15_state_string_noinh : "externalStateString";
+	
+}
+
+styleTest|ADVStyleTestClass:medium{
+	teststyle_1_string_noinh : "mediumString";
+	
+	teststyle_15_state_string_noinh: "mediumStateString";	
+}
\ No newline at end of file

Added: incubator/flex/trunk/mustella/tests/mx/styles/AdvancedStyleClient/SWFs/assets/typeSuperCompoundStyle.css
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/mx/styles/AdvancedStyleClient/SWFs/assets/typeSuperCompoundStyle.css?rev=1370370&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/mx/styles/AdvancedStyleClient/SWFs/assets/typeSuperCompoundStyle.css (added)
+++ incubator/flex/trunk/mustella/tests/mx/styles/AdvancedStyleClient/SWFs/assets/typeSuperCompoundStyle.css Tue Aug  7 17:13:06 2012
@@ -0,0 +1,51 @@
+/*
+ *
+ * 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.
+ *
+ */
+/* CSS file */
+@namespace s "library://ns.adobe.com/flex/spark";
+@namespace mx "library://ns.adobe.com/flex/mx";
+@namespace styleTest "assets.styleTest.*";
+
+
+/*super Type Selector*/
+styleTest|ADVStyleTestClass{
+	teststyle_1_string_noinh : "classString";
+	
+	teststyle_5_format_length_noinh : 50px;
+	teststyle_6_format_time_noinh : 12000;
+	
+	teststyle_11_boolean_noinh : false;
+	teststyle_12_enum_string_inh : "secondType";
+	
+	testextstyle_1_string_noinh : "childString";
+	testextstyle_2_number_noinh : -2;
+} 
+
+/*child Type Selector*/
+styleTest|ADVStyleTestExtendClass{
+	teststyle_11_boolean_noinh : true;
+	teststyle_12_enum_string_inh : "firstType";
+	
+	teststyle_15_state_string_noinh : "localStringHeavy";
+	teststyle_17_skin_state_noinh : ClassReference("assets.styleTest.ADVStyleTestSkin"); 
+	
+	testextstyle_2_number_noinh: -1;
+	testextstyle_3_uint_inh : 2;
+} 	
+
+

Added: incubator/flex/trunk/mustella/tests/mx/styles/AdvancedStyleClient/SWFs/pre_compile.sh
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/mx/styles/AdvancedStyleClient/SWFs/pre_compile.sh?rev=1370370&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/mx/styles/AdvancedStyleClient/SWFs/pre_compile.sh (added)
+++ incubator/flex/trunk/mustella/tests/mx/styles/AdvancedStyleClient/SWFs/pre_compile.sh Tue Aug  7 17:13:06 2012
@@ -0,0 +1,45 @@
+#!/bin/sh
+################################################################################
+##
+##  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.
+##
+################################################################################
+echo "Sort/SWFs/pre_compile.sh: The SDK is $SDK_DIR"
+echo "Sort/SWFs/pre_compile.sh: mxmlc version is " `$SDK_DIR/bin/mxmlc -version`
+
+echo "Hello, clueless egg"
+
+echo "Removing previously compiled files..."
+rm -f `find . -name "*.swf"`
+
+echo "Compiling module SWFs..."
+$SDK_DIR/bin/mxmlc  -static-rsls=true assets/FlexDescModule.mxml -sp ./
+
+$SDK_DIR/bin/mxmlc  -static-rsls=true assets/FlexClassTypeCompoundModule.mxml -sp ./
+
+$SDK_DIR/bin/mxmlc  -static-rsls=true assets/FlexDescSuperModule.mxml -sp ./
+
+$SDK_DIR/bin/mxmlc  -static-rsls=true -debug assets/FlexModule.mxml -sp ./
+
+echo "Compiling external CSS SWFs..."
+
+cd assets
+
+$SDK_DIR/bin/mxmlc  -static-rsls=true -debug moduleStyle.css
+
+$SDK_DIR/bin/mxmlc  -static-rsls=true testStyleManager.css
+
+

Propchange: incubator/flex/trunk/mustella/tests/mx/styles/AdvancedStyleClient/SWFs/pre_compile.sh
------------------------------------------------------------------------------
    svn:executable = *

Added: incubator/flex/trunk/mustella/tests/mx/styles/AdvancedStyleClient/Styles/ADV_externalStyle_ApplicationSelector_main_tester.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/mx/styles/AdvancedStyleClient/Styles/ADV_externalStyle_ApplicationSelector_main_tester.mxml?rev=1370370&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/mx/styles/AdvancedStyleClient/Styles/ADV_externalStyle_ApplicationSelector_main_tester.mxml (added)
+++ incubator/flex/trunk/mustella/tests/mx/styles/AdvancedStyleClient/Styles/ADV_externalStyle_ApplicationSelector_main_tester.mxml Tue Aug  7 17:13:06 2012
@@ -0,0 +1,89 @@
+<?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="mx/styles/AdvancedStyleClient/Styles/"  
+			xmlns:mx="http://www.adobe.com/2006/mxml" 
+			xmlns:s="library://ns.adobe.com/flex/spark" 
+			xmlns="*" 
+			testSWF="ADV_externalStyle_ApplicationSelector_main.mxml">
+	
+	<mx:Script>
+		<![CDATA[
+			import assets.styleTest.*;
+			
+			public static function init(o:DisplayObject):void 
+			{
+				
+			}
+			
+			
+		]]>
+	</mx:Script>
+	
+	<mx:Metadata>
+		<![CDATA[
+		[Mixin]
+		]]>
+	</mx:Metadata>
+	
+	<testCases>		
+		<!--test with external style setting: Application Selector-->
+		<TestCase testID="ADV_extStyle_application_selector_test1" 
+				  description="test with external style setting: Application Selector" 
+				  keywords="[ADVStyleTestClass, external, Application Selector]">
+			<setup>
+				<ResetComponent target="label" className="spark.components.Label" waitEvent="updateComplete" />
+			</setup>
+			<body>
+				<!--noninherited style should have default value-->
+				<AssertStyleValue target="advStyleTest_External_Application" styleName="teststyle_2_number_noinh" valueExpression="value=undefined"/>
+				<!--inherited style should have default value-->
+				<AssertStyleValue target="advStyleTest_External_Application" styleName="teststyle_3_uint_inh" valueExpression="value=0"/>
+			</body>
+		</TestCase>
+		
+		<TestCase testID="ADV_extStyle_application_selector_component_test2" 
+				  description="test component with external style setting: Application Selector" 
+				  keywords="[ADVStyleTestClass, external, Application Selector]">
+			<setup>
+				<ResetComponent target="label" className="spark.components.Label" waitEvent="updateComplete" />
+			</setup>
+			<body>
+				<!--noninherited style should have default value-->
+				<AssertStyleValue target="mycomp.componentADV" styleName="teststyle_2_number_noinh" valueExpression="value=undefined"/>
+				<!--inherited style should have default value-->
+				<AssertStyleValue target="mycomp.componentADV" styleName="teststyle_3_uint_inh" valueExpression="value=0"/>
+			</body>
+		</TestCase>
+		
+		<TestCase testID="ADV_extStyle_application_selector_module_load_test4" 
+				  description="test module load using moduleLoader with external style setting: Application Selector" 
+				  keywords="[ADVStyleTestClass, external, Application Selector, module, loader]">
+			<setup>
+				<ResetComponent target="label" className="spark.components.Label" waitEvent="updateComplete" />
+			</setup>
+			<body>
+				<!--noninherited style should have default value-->
+				<AssertStyleValue target="myLoadedModule.child.moduleADV" styleName="teststyle_2_number_noinh" valueExpression="value=undefined"/>
+				<!--inherited style should have default value-->
+				<AssertStyleValue target="myLoadedModule.child.moduleADV" styleName="teststyle_3_uint_inh" valueExpression="value=0"/>
+			</body>
+		</TestCase>
+	</testCases>
+</UnitTester>
\ No newline at end of file

Added: incubator/flex/trunk/mustella/tests/mx/styles/AdvancedStyleClient/Styles/ADV_externalStyle_GlobalSelector_main_tester.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/mx/styles/AdvancedStyleClient/Styles/ADV_externalStyle_GlobalSelector_main_tester.mxml?rev=1370370&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/mx/styles/AdvancedStyleClient/Styles/ADV_externalStyle_GlobalSelector_main_tester.mxml (added)
+++ incubator/flex/trunk/mustella/tests/mx/styles/AdvancedStyleClient/Styles/ADV_externalStyle_GlobalSelector_main_tester.mxml Tue Aug  7 17:13:06 2012
@@ -0,0 +1,83 @@
+<?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="mx/styles/AdvancedStyleClient/Styles/"  
+			xmlns:mx="http://www.adobe.com/2006/mxml" 
+			xmlns:s="library://ns.adobe.com/flex/spark" 
+			xmlns="*" 
+			testSWF="ADV_externalStyle_GlobalSelector_main.mxml">
+	
+	<mx:Script>
+		<![CDATA[
+			import assets.styleTest.*;
+			
+			public static function init(o:DisplayObject):void 
+			{
+				
+			}
+			
+			
+		]]>
+	</mx:Script>
+	
+	<mx:Metadata>
+		<![CDATA[
+		[Mixin]
+		]]>
+	</mx:Metadata>
+	
+	<testCases>			
+		<!--test with external style setting: Global Selector-->
+		<TestCase testID="ADV_extStyle_global_selector_test1" 
+				  description="test with external style setting: Global Selector" 
+				  keywords="[ADVStyleTestClass, external, Global Selector]">
+			<setup>
+				<ResetComponent target="label" className="spark.components.Label" waitEvent="updateComplete" />
+			</setup>
+			<body>				
+				<AssertStyleValue target="mycomp.componentADV" styleName="teststyle_2_number_noinh" valueExpression="value=111"/>
+				<AssertStyleValue target="mycomp.componentADV" styleName="teststyle_3_uint_inh" valueExpression="value=0"/>
+			</body>
+		</TestCase>
+		
+		<TestCase testID="ADV_extStyle_global_selector_component_test2" 
+				  description="test component with external style setting: Global Selector" 
+				  keywords="[ADVStyleTestClass, external, Global Selector, component]">
+			<setup>
+				<ResetComponent target="label" className="spark.components.Label" waitEvent="updateComplete" />
+			</setup>
+			<body>				
+				<AssertStyleValue target="mycomp.componentADV" styleName="teststyle_2_number_noinh" valueExpression="value=111"/>
+				<AssertStyleValue target="mycomp.componentADV" styleName="teststyle_3_uint_inh" valueExpression="value=0"/>
+			</body>
+		</TestCase>
+		
+		<TestCase testID="ADV_extStyle_global_selector_module_load_test4" 
+				  description="test module using moduleLoader with external style setting: Global Selector" 
+				  keywords="[ADVStyleTestClass, external, Global Selector]">
+			<setup>
+				<ResetComponent target="label" className="spark.components.Label" waitEvent="updateComplete" />
+			</setup>
+			<body>				
+				<AssertStyleValue target="myLoadedModule.child.moduleADV" styleName="teststyle_2_number_noinh" valueExpression="value=111"/>
+				<AssertStyleValue target="myLoadedModule.child.moduleADV" styleName="teststyle_3_uint_inh" valueExpression="value=0"/>
+			</body>
+		</TestCase>
+	</testCases>
+</UnitTester>
\ No newline at end of file

Added: incubator/flex/trunk/mustella/tests/mx/styles/AdvancedStyleClient/Styles/ADV_externalStyle_TypeSelector_main_tester.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/mx/styles/AdvancedStyleClient/Styles/ADV_externalStyle_TypeSelector_main_tester.mxml?rev=1370370&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/mx/styles/AdvancedStyleClient/Styles/ADV_externalStyle_TypeSelector_main_tester.mxml (added)
+++ incubator/flex/trunk/mustella/tests/mx/styles/AdvancedStyleClient/Styles/ADV_externalStyle_TypeSelector_main_tester.mxml Tue Aug  7 17:13:06 2012
@@ -0,0 +1,120 @@
+<UnitTester testDir="mx/styles/AdvancedStyleClient/Styles/" testSWF="ADV_externalStyle_TypeSelector_main.mxml" xmlns:mx="http://www.adobe.com/2006/mxml" xmlns:s="library://ns.adobe.com/flex/spark" xmlns="*">
+    <mx:Script><![CDATA[
+			import assets.styleTest.*;
+			
+			public static function init(o:DisplayObject):void 
+			{
+				
+			}
+			
+			
+		]]></mx:Script>
+    <mx:Metadata><![CDATA[
+		[Mixin]
+		]]></mx:Metadata>
+    <testCases>
+        <TestCase testID="ADV_extStyle_type_selector_test_1" description="test with external style setting: Type Selector" keywords="[ADVStyleTestClass, external, Type Selector]">
+            <setup>
+                <ResetComponent target="label" className="spark.components.Label" waitEvent="updateComplete"/>
+                <ChangeState toState="heavy" waitEvent="changeEventDone"/>
+            </setup>
+            <body>
+                <AssertStyleValue target="advStyleTest_External_Type" styleName="teststyle_1_string_noinh" value="typeString"/>
+                <AssertStyleValue target="advStyleTest_External_Type" styleName="teststyle_2_number_noinh" valueExpression="value=111"/>
+                <AssertStyleValue target="advStyleTest_External_Type" styleName="teststyle_3_uint_inh" valueExpression="value=0"/>
+                <AssertStyleValue target="advStyleTest_External_Type" styleName="teststyle_5_format_length_noinh" valueExpression="value=50"/>
+                <AssertStyleValue target="advStyleTest_External_Type" styleName="teststyle_6_format_time_noinh" valueExpression="value=12000"/>
+                <AssertStyleValue target="advStyleTest_External_Type" styleName="teststyle_7_format_color_noinh" valueExpression="value=0x556677"/>
+                <AssertStyleValue target="advStyleTest_External_Type" styleName="teststyle_11_boolean_noinh" valueExpression="value=false"/>
+                <AssertStyleValue target="advStyleTest_External_Type" styleName="teststyle_12_enum_string_inh" value="secondType"/>
+                <AssertStyleValue target="advStyleTest_External_Type" styleName="teststyle_13_enum_int_noinh" valueExpression="value=99"/>
+                <AssertStyleValue target="advStyleTest_External_Type" styleName="teststyle_15_state_string_noinh" value="externalStateString"/>
+            </body>
+        </TestCase>
+        <TestCase testID="ADV_extStyle_pseudo_selector_test_2" description="test with external style setting: pseudo Selector" keywords="[ADVStyleTestClass, external, Type Selector, pseudo selector]">
+            <setup>
+                <ResetComponent target="label" className="spark.components.Label" waitEvent="updateComplete"/>
+                <ChangeState toState="medium" waitEvent="changeEventDone"/>
+            </setup>
+            <body>
+                <AssertStyleValue target="advStyleTest_External_Type" styleName="teststyle_1_string_noinh" value="typeString"/>
+                <AssertStyleValue target="advStyleTest_External_Type" styleName="teststyle_15_state_string_noinh" value="externalStateString"/>
+            </body>
+        </TestCase>
+        <TestCase testID="ADV_extStyle_type_selector_super_class_test_3" description="test with external style setting: child class ADVStyleTestExtendClass that extend test class ADVStyleTestClass with Type Selector" keywords="[ADVStyleTestClass, external, Type Selector]">
+            <setup>
+                <ResetComponent target="label" className="spark.components.Label" waitEvent="updateComplete"/>
+                <ChangeState toState="light" waitEvent="changeEventDone"/>
+            </setup>
+            <body>
+                <AssertStyleValue target="advStyleTest_ExternalChild_Type" styleName="teststyle_1_string_noinh" value="typeString"/>
+                <AssertStyleValue target="advStyleTest_ExternalChild_Type" styleName="teststyle_2_number_noinh" valueExpression="value=111"/>
+                <AssertStyleValue target="advStyleTest_ExternalChild_Type" styleName="teststyle_3_uint_inh" valueExpression="value=0"/>
+                <AssertStyleValue target="advStyleTest_ExternalChild_Type" styleName="teststyle_5_format_length_noinh" valueExpression="value=50"/>
+                <AssertStyleValue target="advStyleTest_ExternalChild_Type" styleName="teststyle_6_format_time_noinh" valueExpression="value=12000"/>
+                <AssertStyleValue target="advStyleTest_ExternalChild_Type" styleName="teststyle_7_format_color_noinh" valueExpression="value=0x556677"/>
+                <AssertStyleValue target="advStyleTest_ExternalChild_Type" styleName="teststyle_11_boolean_noinh" valueExpression="value=false"/>
+                <AssertStyleValue target="advStyleTest_ExternalChild_Type" styleName="teststyle_12_enum_string_inh" value="secondType"/>
+                <AssertStyleValue target="advStyleTest_ExternalChild_Type" styleName="teststyle_13_enum_int_noinh" valueExpression="value=99"/>
+                <AssertStyleValue target="advStyleTest_ExternalChild_Type" styleName="teststyle_15_state_string_noinh" value="externalStateString"/>
+            </body>
+        </TestCase>
+        <TestCase testID="ADV_extStyle_type_selector_component_test_4" description="test with external style setting: Type Selector in component" keywords="[ADVStyleTestClass, external, Type Selector, component]">
+            <setup>
+                <ResetComponent target="label" className="spark.components.Label" waitEvent="updateComplete"/>
+                <ChangeState toState="heavy" waitEvent="changeEventDone"/>
+            </setup>
+            <body>
+                <AssertStyleValue target="mycomp.componentADV" styleName="teststyle_1_string_noinh" value="typeString"/>
+                <AssertStyleValue target="mycomp.componentADV" styleName="teststyle_2_number_noinh" valueExpression="value=111"/>
+                <AssertStyleValue target="mycomp.componentADV" styleName="teststyle_3_uint_inh" valueExpression="value=0"/>
+                <AssertStyleValue target="mycomp.componentADV" styleName="teststyle_5_format_length_noinh" valueExpression="value=50"/>
+                <AssertStyleValue target="mycomp.componentADV" styleName="teststyle_6_format_time_noinh" valueExpression="value=12000"/>
+                <AssertStyleValue target="mycomp.componentADV" styleName="teststyle_7_format_color_noinh" valueExpression="value=0x556677"/>
+                <AssertStyleValue target="mycomp.componentADV" styleName="teststyle_11_boolean_noinh" valueExpression="value=false"/>
+                <AssertStyleValue target="mycomp.componentADV" styleName="teststyle_12_enum_string_inh" value="secondType"/>
+                <AssertStyleValue target="mycomp.componentADV" styleName="teststyle_13_enum_int_noinh" valueExpression="value=99"/>
+                <AssertStyleValue target="mycomp.componentADV" styleName="teststyle_15_state_string_noinh" value="externalStateString"/>
+            </body>
+        </TestCase>
+        <TestCase testID="ADV_extStyle_pseudo_selector_component_test_5" description="test component with external style setting: pseudo Selector in component" keywords="[ADVStyleTestClass, external, Type Selector, pseudo selector, component]">
+            <setup>
+                <ResetComponent target="label" className="spark.components.Label" waitEvent="updateComplete"/>
+                <ChangeState toState="medium" waitEvent="changeEventDone"/>
+            </setup>
+            <body>
+                <AssertStyleValue target="mycomp.componentADV" styleName="teststyle_1_string_noinh" value="typeString"/>
+                <AssertStyleValue target="mycomp.componentADV" styleName="teststyle_15_state_string_noinh" value="externalStateString"/>
+            </body>
+        </TestCase>
+        
+        <TestCase testID="ADV_extStyle_type_selector_module_loader_test_8" description="test with external style setting: Type Selector in module with moduleLoader" keywords="[ADVStyleTestClass, external, Type Selector, module, moduleLoader]">
+            <setup>
+                <ResetComponent target="label" className="spark.components.Label" waitEvent="updateComplete"/>
+                <ChangeState toState="heavy" waitEvent="changeEventDone"/>
+            </setup>
+            <body>
+                <AssertStyleValue target="myLoadedModule.child.moduleADV" styleName="teststyle_1_string_noinh" value="typeString"/>
+                <AssertStyleValue target="myLoadedModule.child.moduleADV" styleName="teststyle_2_number_noinh" valueExpression="value=111"/>
+                <AssertStyleValue target="myLoadedModule.child.moduleADV" styleName="teststyle_3_uint_inh" valueExpression="value=0"/>
+                <AssertStyleValue target="myLoadedModule.child.moduleADV" styleName="teststyle_5_format_length_noinh" valueExpression="value=50"/>
+                <AssertStyleValue target="myLoadedModule.child.moduleADV" styleName="teststyle_6_format_time_noinh" valueExpression="value=12000"/>
+                <AssertStyleValue target="myLoadedModule.child.moduleADV" styleName="teststyle_7_format_color_noinh" valueExpression="value=0x556677"/>
+                <AssertStyleValue target="myLoadedModule.child.moduleADV" styleName="teststyle_11_boolean_noinh" valueExpression="value=false"/>
+                <AssertStyleValue target="myLoadedModule.child.moduleADV" styleName="teststyle_12_enum_string_inh" value="secondType"/>
+                <AssertStyleValue target="myLoadedModule.child.moduleADV" styleName="teststyle_13_enum_int_noinh" valueExpression="value=99"/>
+                <AssertStyleValue target="myLoadedModule.child.moduleADV" styleName="teststyle_15_state_string_noinh" value="externalStateString"/>
+            </body>
+        </TestCase>
+        <TestCase testID="ADV_extStyle_pseudo_selector_module_loader_test_9" description="test with external style setting: pseudo Selector in module with moduleLoader" keywords="[ADVStyleTestClass, external, Type Selector, pseudo selector, module, moduleLoader]">
+            <setup>
+                <ResetComponent target="label" className="spark.components.Label" waitEvent="updateComplete"/>
+                <ChangeState toState="medium" waitEvent="changeEventDone"/>
+            </setup>
+            <body>
+                <AssertStyleValue target="myLoadedModule.child.moduleADV" styleName="teststyle_1_string_noinh" value="typeString"/>
+                <AssertStyleValue target="myLoadedModule.child.moduleADV" styleName="teststyle_15_state_string_noinh" value="externalStateString"/>
+            </body>
+        </TestCase>
+    </testCases>
+</UnitTester>
\ No newline at end of file



Mime
View raw message