flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From p...@apache.org
Subject svn commit: r1369978 [2/7] - in /incubator/flex/trunk/mustella/tests/PerModuleStyles: ./ BasicTests/ BasicTests/baselines/ SWFs/ SWFs/assets/ SWFs/test/ api/ api/baselines/ inheritance/ inheritance/baselines/ merging/ merging/baselines/ regressions/ st...
Date Mon, 06 Aug 2012 20:22:56 GMT
Added: incubator/flex/trunk/mustella/tests/PerModuleStyles/BasicTests/themesTest.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/PerModuleStyles/BasicTests/themesTest.mxml?rev=1369978&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/PerModuleStyles/BasicTests/themesTest.mxml (added)
+++ incubator/flex/trunk/mustella/tests/PerModuleStyles/BasicTests/themesTest.mxml Mon Aug  6 20:22:48 2012
@@ -0,0 +1,52 @@
+<?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="PerModuleStyles/BasicTests/"  xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns="*" testSWF="SparkApp.mxml">
+
+	<!-- this set of lines form a template that must be in each unit test -->
+	<fx:Script>
+	<![CDATA[
+		public static function init(o:DisplayObject):void
+		{
+		}
+		]]>
+	</fx:Script>
+
+	<fx:Metadata>
+		<![CDATA[
+		[Mixin]
+	]]>
+	</fx:Metadata>
+	<!-- end of set of lines that must be in each unit test -->
+
+	<testCases>
+		<TestCase testID="themeTest" keywords="[Styles,Module]" description="Test to make sure modules can define their own styles.." >
+		    <body>		
+			<RunCode code="application.iniit();"  waitTarget="mod_loader" waitEvent="ready" />
+			<Pause timeout="5000" />
+
+			
+			<AssertStyleValue styleName="focusColor" target="mxBtn" value="0xFFFF00"/>
+			<AssertStyleValue styleName="borderColor" target="mod_loader.child.mxBtn" value="0x0000FF"/>
+			
+		    </body>
+		</TestCase>
+	</testCases>
+
+</UnitTester>
\ No newline at end of file

Added: incubator/flex/trunk/mustella/tests/PerModuleStyles/BasicTests/tooltipTest.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/PerModuleStyles/BasicTests/tooltipTest.mxml?rev=1369978&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/PerModuleStyles/BasicTests/tooltipTest.mxml (added)
+++ incubator/flex/trunk/mustella/tests/PerModuleStyles/BasicTests/tooltipTest.mxml Mon Aug  6 20:22:48 2012
@@ -0,0 +1,52 @@
+<?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="PerModuleStyles/BasicTests/"  xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns="*" testSWF="ToolTipApp.mxml">
+
+	<!-- this set of lines form a template that must be in each unit test -->
+	<fx:Script>
+	<![CDATA[
+		public static function init(o:DisplayObject):void
+		{
+		}
+		]]>
+	</fx:Script>
+
+	<fx:Metadata>
+		<![CDATA[
+		[Mixin]
+	]]>
+	</fx:Metadata>
+	<!-- end of set of lines that must be in each unit test -->
+
+	<testCases>
+		<TestCase testID="tool_TipTest" keywords="[Styles,Module]" description="Test to make sure modules can define their own styles.." >
+		    <body>		
+				
+				<Pause timeout="2000" />
+				<RunCode code="application.swf_Loader.content.document.mouseOver();"   waitTarget="swf_Loader.content.document.waitForEventsDispatcher" waitEvent="toolTipShown" />
+				
+				<Pause timeout="2000" />
+				<CompareBitmap url="../BasicTests/baselines/$testID.png" target="swf_Loader.content.document.mytoolTip"   numColorVariances="8" ignoreMaxColorVariance="true" />
+			</body>
+		</TestCase>
+
+	</testCases>
+
+</UnitTester>
\ No newline at end of file

Added: incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/App4.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/App4.mxml?rev=1369978&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/App4.mxml (added)
+++ incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/App4.mxml Mon Aug  6 20:22:48 2012
@@ -0,0 +1,52 @@
+<?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.
+
+-->
+<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" 
+			   xmlns:s="library://ns.adobe.com/flex/spark" 
+			   xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="1024" minHeight="768">
+	<fx:Script>
+		<![CDATA[
+			import mx.events.ModuleEvent;
+			import mx.managers.IPopUpManager;
+			
+			private var placeHolder:IPopUpManager;
+            
+            import mx.core.EmbeddedFontRegistry; EmbeddedFontRegistry;
+            
+			
+			public function iniit():void {
+				mod_loader.url = 'assets/ModuleAppThree.swf';
+			}
+			
+			private function readyHandler(event:ModuleEvent):void
+			{
+				mod_loader2.url = 'assets/ModuleAppFour.swf';
+			}
+		]]>
+	</fx:Script>
+	
+	<s:layout>
+		<s:VerticalLayout/>
+	</s:layout>
+	<s:VGroup>
+		<mx:ModuleLoader id="mod_loader" ready="readyHandler(event)"   />
+		<mx:ModuleLoader id="mod_loader2"    />
+		<mx:Button label="Load Module" click="iniit()" />
+	</s:VGroup>
+</s:Application>

Added: incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/App6.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/App6.mxml?rev=1369978&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/App6.mxml (added)
+++ incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/App6.mxml Mon Aug  6 20:22:48 2012
@@ -0,0 +1,165 @@
+<?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.
+
+-->
+<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" 
+			   xmlns:s="library://ns.adobe.com/flex/spark" 
+			   xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="1024" minHeight="768" creationComplete="application1_creationCompleteHandler(event)">
+	<fx:Style>
+		@namespace s "library://ns.adobe.com/flex/spark";
+		@namespace mx "library://ns.adobe.com/flex/mx";
+		
+		@font-face{
+			src: url("../../../Assets/Fonts/Open_Sans/OpenSans-Regular.ttf");
+			fontFamily: SparkVera;
+			embedAsCFF: true;
+		}
+
+
+		@font-face{
+			src: url("../../../Assets/Fonts/Open_Sans/OpenSans-Bold.ttf");
+			fontWeight: bold;
+			fontFamily: SparkVera;
+			embedAsCFF: true;
+		}
+
+		@font-face{
+			src: url("../../../Assets/Fonts/Open_Sans/OpenSans-Italic.ttf");
+			fontStyle: italic;
+			fontFamily: SparkVera;
+			embedAsCFF: true;
+
+		}
+		@font-face{
+			src: url("../../../Assets/Fonts/Open_Sans/OpenSans-BoldItalic.ttf");
+			fontWeight: bold;
+			fontStyle: italic;
+			fontFamily: SparkVera;
+
+			embedAsCFF: true;
+		}
+
+
+		@font-face{
+			src: url("../../../Assets/Fonts/Open_Sans/OpenSans-BoldItalic.ttf");
+			fontWeight: bold;
+			fontStyle: italic;
+			fontFamily: HaloVera;
+
+			embedAsCFF: false;
+		}
+		
+		@font-face{
+			src: url("../../../Assets/Fonts/Open_Sans/OpenSans-Regular.ttf");
+			fontFamily: HaloVera;
+			embedAsCFF: false;
+		}
+
+
+		@font-face{
+			src: url("../../../Assets/Fonts/Open_Sans/OpenSans-Bold.ttf");
+			fontWeight: bold;
+			fontFamily: HaloVera;
+			embedAsCFF: false;
+		}
+
+		@font-face{
+			src: url("../../../Assets/Fonts/Open_Sans/OpenSans-Italic.ttf");
+			fontStyle: italic;
+			fontFamily: HaloVera;
+			embedAsCFF: false;
+		
+		}
+
+		global {
+			fontAntiAliasType: "normal";
+			fontFamily: SparkVera;
+			fontLookup: "embeddedCFF";
+		}
+		
+		s|List
+		{
+			borderColor: #0000FF;
+			fontSize: 16;
+		}
+		
+		s|Button#gumboButton
+		{
+			chromeColor: #AAFFAA;
+			fontSize: 16;
+		}
+		
+		mx|Label
+		{
+			fontAntiAliasType: "normal";
+			fontFamily: HaloVera;
+			fontSize: 16;
+		}
+	</fx:Style>
+	
+	<fx:Script>
+		<![CDATA[
+			import mx.events.FlexEvent;
+			import mx.collections.ArrayList;
+			private var arr:Array =
+				[
+					{ label:'Apple', data:10.00},
+					{ label:'Banana', data:15.00 },
+					{ label:'Melon', data:3.50 },
+					{ label:'Kiwi', data:7.65},
+					{ label:'Strawberry',data:12.35 },
+					{ label:'Other', data:00.00}
+				];
+			
+			private var listArr :ArrayList = new ArrayList(arr);
+			
+			protected function application1_creationCompleteHandler(event:FlexEvent):void
+			{
+				appList.dataProvider = listArr;
+			}
+			
+			public function iniit():void
+			{
+				mod_loader.url = "assets/ModuleAppSeven.swf";
+			}
+
+			public function changeModule():void
+			{
+				mod_loader.url = "assets/ModuleAppEight.swf";
+			}
+			
+		]]>
+	</fx:Script>
+	<s:layout>
+		<s:VerticalLayout />
+	</s:layout>
+	
+	<s:Panel title="Gumbo Panel" id="appPanel">
+		<s:layout>
+			<s:VerticalLayout />
+		</s:layout>
+		
+		<s:List id="appList"  />
+		<s:Button id="gumboButton" label="Gumbo Button"  />
+		<mx:Label text="MX Label"  />
+	</s:Panel>
+	
+	<mx:ModuleLoader id="mod_loader" />
+	<s:Button label="Load Module" click="iniit()" />
+	<s:Button label="Change Module" click="changeModule()" />
+</s:Application>

Added: incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/App7.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/App7.mxml?rev=1369978&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/App7.mxml (added)
+++ incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/App7.mxml Mon Aug  6 20:22:48 2012
@@ -0,0 +1,167 @@
+<?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.
+
+-->
+<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" 
+			   xmlns:s="library://ns.adobe.com/flex/spark" 
+			   xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="1024" minHeight="768" creationComplete="application1_creationCompleteHandler(event)">
+	<fx:Style>
+		@namespace s "library://ns.adobe.com/flex/spark";
+		@namespace mx "library://ns.adobe.com/flex/mx";
+		
+		@font-face{
+			src: url("../../../Assets/Fonts/Open_Sans/OpenSans-Regular.ttf");
+			fontFamily: SparkVera;
+			embedAsCFF: true;
+		}
+
+
+		@font-face{
+			src: url("../../../Assets/Fonts/Open_Sans/OpenSans-Bold.ttf");
+			fontWeight: bold;
+			fontFamily: SparkVera;
+			embedAsCFF: true;
+		}
+
+		@font-face{
+			src: url("../../../Assets/Fonts/Open_Sans/OpenSans-Italic.ttf");
+			fontStyle: italic;
+			fontFamily: SparkVera;
+			embedAsCFF: true;
+
+		}
+		
+		@font-face{
+			src: url("../../../Assets/Fonts/Open_Sans/OpenSans-BoldItalic.ttf");
+			fontWeight: bold;
+			fontStyle: italic;
+			fontFamily: SparkVera;
+
+			embedAsCFF: true;
+		}
+
+
+		@font-face{
+			src: url("../../../Assets/Fonts/Open_Sans/OpenSans-BoldItalic.ttf");
+			fontWeight: bold;
+			fontStyle: italic;
+			fontFamily: HaloVera;
+
+			embedAsCFF: false;
+		}
+
+		@font-face{
+			src: url("../../../Assets/Fonts/Open_Sans/OpenSans-Regular.ttf");
+			fontFamily: HaloVera;
+			embedAsCFF: false;
+		}
+
+
+		@font-face{
+			src: url("../../../Assets/Fonts/Open_Sans/OpenSans-Bold.ttf");
+			fontWeight: bold;
+			fontFamily: HaloVera;
+			embedAsCFF: false;
+		}
+
+		@font-face{
+			src: url("../../../Assets/Fonts/Open_Sans/OpenSans-Italic.ttf");
+			fontStyle: italic;
+			fontFamily: HaloVera;
+			embedAsCFF: false;
+		
+		}
+
+		global {
+			fontAntiAliasType: "normal";
+			fontFamily: SparkVera;
+			fontLookup: "embeddedCFF";
+		}
+		
+
+		s|List
+		{
+			borderColor: #0000FF;
+			fontSize: 16;
+		}
+		
+		s|Button#gumboButton
+		{
+			chromeColor: #AAFFAA;
+			fontSize: 16;
+		}
+		
+		mx|Label
+		{
+			fontAntiAliasType: "normal";
+			fontFamily: HaloVera;
+			fontSize: 16;
+		}
+	</fx:Style>
+	
+	<fx:Script>
+		<![CDATA[
+			import mx.events.FlexEvent;
+			import mx.collections.ArrayList;
+			private var arr:Array =
+				[
+					{ label:'Apple', data:10.00},
+					{ label:'Banana', data:15.00 },
+					{ label:'Melon', data:3.50 },
+					{ label:'Kiwi', data:7.65},
+					{ label:'Strawberry',data:12.35 },
+					{ label:'Other', data:00.00}
+				];
+			
+			private var listArr :ArrayList = new ArrayList(arr);
+			
+			protected function application1_creationCompleteHandler(event:FlexEvent):void
+			{
+				appList.dataProvider = listArr;
+			}
+			
+			public function iniit():void
+			{
+				swf_loader.load("assets/SwfLoaderAppOne.swf");
+			}
+
+			public function changeSwf():void
+			{
+				swf_loader.load("assets/SwfLoaderAppTwo.swf");
+			}
+			
+		]]>
+	</fx:Script>
+	<s:layout>
+		<s:VerticalLayout />
+	</s:layout>
+	
+	<s:Panel title="Gumbo Panel" id="appPanel">
+		<s:layout>
+			<s:VerticalLayout />
+		</s:layout>
+		
+		<s:List id="appList"  />
+		<s:Button id="gumboButton" label="Gumbo Button"  />
+		<mx:Label text="MX Label"  />
+	</s:Panel>
+	
+	<mx:SWFLoader id="swf_loader" />
+	<s:Button label="Load Child Swf" click="iniit()" />
+	<s:Button label="Change Swf" click="changeSwf()" />
+</s:Application>

Added: incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/App8.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/App8.mxml?rev=1369978&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/App8.mxml (added)
+++ incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/App8.mxml Mon Aug  6 20:22:48 2012
@@ -0,0 +1,169 @@
+<?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.
+
+-->
+<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" 
+			   xmlns:s="library://ns.adobe.com/flex/spark" 
+			   xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="1024" minHeight="768" creationComplete="application1_creationCompleteHandler(event)">
+	<fx:Style>
+		@namespace s "library://ns.adobe.com/flex/spark";
+		@namespace mx "library://ns.adobe.com/flex/mx";
+		
+		@font-face{
+			src: url("../../../Assets/Fonts/Open_Sans/OpenSans-Regular.ttf");
+			fontFamily: SparkVera;
+			embedAsCFF: true;
+		}
+
+
+		@font-face{
+			src: url("../../../Assets/Fonts/Open_Sans/OpenSans-Bold.ttf");
+			fontWeight: bold;
+			fontFamily: SparkVera;
+			embedAsCFF: true;
+		}
+
+		@font-face{
+			src: url("../../../Assets/Fonts/Open_Sans/OpenSans-Italic.ttf");
+			fontStyle: italic;
+			fontFamily: SparkVera;
+			embedAsCFF: true;
+
+		}
+		@font-face{
+			src: url("../../../Assets/Fonts/Open_Sans/OpenSans-BoldItalic.ttf");
+			fontWeight: bold;
+			fontStyle: italic;
+			fontFamily: SparkVera;
+
+			embedAsCFF: true;
+		}
+
+
+		@font-face{
+			src: url("../../../Assets/Fonts/Open_Sans/OpenSans-BoldItalic.ttf");
+			fontWeight: bold;
+			fontStyle: italic;
+			fontFamily: HaloVera;
+
+			embedAsCFF: false;
+		}
+		
+		@font-face{
+			src: url("../../../Assets/Fonts/Open_Sans/OpenSans-Regular.ttf");
+			fontFamily: HaloVera;
+			embedAsCFF: false;
+		}
+
+
+		@font-face{
+			src: url("../../../Assets/Fonts/Open_Sans/OpenSans-Bold.ttf");
+			fontWeight: bold;
+			fontFamily: HaloVera;
+			embedAsCFF: false;
+		}
+
+		@font-face{
+			src: url("../../../Assets/Fonts/Open_Sans/OpenSans-Italic.ttf");
+			fontStyle: italic;
+			fontFamily: HaloVera;
+			embedAsCFF: false;
+		
+		}
+
+		global {
+			fontAntiAliasType: "normal";
+			fontFamily: SparkVera;
+			fontLookup: "embeddedCFF";
+		}
+		
+
+		s|List
+		{
+			borderColor: #0000FF;
+			fontSize: 16;
+		}
+		
+		s|Button#gumboButton
+		{
+			chromeColor: #AAFFAA;
+			fontSize: 16;
+		}
+		
+		mx|Label
+		{
+			fontAntiAliasType: "normal";
+			fontFamily: HaloVera;
+			fontSize: 16;
+		}
+	</fx:Style>
+	
+	<fx:Script>
+		<![CDATA[
+			import mx.events.FlexEvent;
+			import mx.collections.ArrayList;
+			import mx.events.ModuleEvent;
+
+			private var arr:Array =
+				[
+					{ label:'Apple', data:10.00},
+					{ label:'Banana', data:15.00 },
+					{ label:'Melon', data:3.50 },
+					{ label:'Kiwi', data:7.65},
+					{ label:'Strawberry',data:12.35 },
+					{ label:'Other', data:00.00}
+				];
+			
+			private var listArr :ArrayList = new ArrayList(arr);
+			
+			protected function application1_creationCompleteHandler(event:FlexEvent):void
+			{
+				appList.dataProvider = listArr;
+			}
+			
+			public function iniit():void
+			{
+				mod_loader.url = 'assets/ModuleAppSeven.swf';
+			}
+
+			private function readyHandler(event:ModuleEvent):void
+			{
+				swf_loader.load("assets/SwfLoaderAppOne.swf");
+				
+			}
+			
+		]]>
+	</fx:Script>
+	<s:layout>
+		<s:VerticalLayout />
+	</s:layout>
+	
+	<s:Panel title="Gumbo Panel" id="appPanel" rotation="-5">
+		<s:layout>
+			<s:VerticalLayout />
+		</s:layout>
+		
+		<s:List id="appList"  />
+		<s:Button id="gumboButton" label="Gumbo Button"  />
+		<mx:Label text="MX Label"  />
+	</s:Panel>
+	
+	<mx:SWFLoader id="swf_loader" rotation="-5" />
+	<mx:ModuleLoader id="mod_loader" ready="readyHandler(event)" rotation="-5"/>
+	<s:Button label="Load Child Swf/Module" click="iniit()" />
+</s:Application>

Added: incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/AppLoadsSwfLoaderLoadsModule.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/AppLoadsSwfLoaderLoadsModule.mxml?rev=1369978&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/AppLoadsSwfLoaderLoadsModule.mxml (added)
+++ incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/AppLoadsSwfLoaderLoadsModule.mxml Mon Aug  6 20:22:48 2012
@@ -0,0 +1,177 @@
+<?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.
+
+-->
+<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" 
+			   xmlns:s="library://ns.adobe.com/flex/spark" 
+			   xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="1024" minHeight="768" creationComplete="application1_creationCompleteHandler(event)">
+	<fx:Style>
+		@namespace s "library://ns.adobe.com/flex/spark";
+		@namespace mx "library://ns.adobe.com/flex/mx";
+		
+		@font-face{
+			src: url("../../../Assets/Fonts/Open_Sans/OpenSans-Regular.ttf");
+			fontFamily: SparkVera;
+			embedAsCFF: true;
+		}
+
+
+		@font-face{
+			src: url("../../../Assets/Fonts/Open_Sans/OpenSans-Bold.ttf");
+			fontWeight: bold;
+			fontFamily: SparkVera;
+			embedAsCFF: true;
+		}
+
+		@font-face{
+			src: url("../../../Assets/Fonts/Open_Sans/OpenSans-Italic.ttf");
+			fontStyle: italic;
+			fontFamily: SparkVera;
+			embedAsCFF: true;
+
+		}
+		
+		@font-face{
+			src: url("../../../Assets/Fonts/Open_Sans/OpenSans-BoldItalic.ttf");
+			fontWeight: bold;
+			fontStyle: italic;
+			fontFamily: SparkVera;
+
+			embedAsCFF: true;
+		}
+
+
+		@font-face{
+			src: url("../../../Assets/Fonts/Open_Sans/OpenSans-BoldItalic.ttf");
+			fontWeight: bold;
+			fontStyle: italic;
+			fontFamily: HaloVera;
+
+			embedAsCFF: false;
+		}
+
+		@font-face{
+			src: url("../../../Assets/Fonts/Open_Sans/OpenSans-Regular.ttf");
+			fontFamily: HaloVera;
+			embedAsCFF: false;
+		}
+
+
+		@font-face{
+			src: url("../../../Assets/Fonts/Open_Sans/OpenSans-Bold.ttf");
+			fontWeight: bold;
+			fontFamily: HaloVera;
+			embedAsCFF: false;
+		}
+
+		@font-face{
+			src: url("../../../Assets/Fonts/Open_Sans/OpenSans-Italic.ttf");
+			fontStyle: italic;
+			fontFamily: HaloVera;
+			embedAsCFF: false;
+		
+		}
+
+		global {
+			fontAntiAliasType: "normal";
+			fontFamily: SparkVera;
+			fontLookup: "embeddedCFF";
+		}
+		
+
+		s|List
+		{
+			borderColor: #0000FF;
+			fontSize: 16;
+		}
+		
+		s|Button#gumboButton
+		{
+			chromeColor: #AAFFAA;
+			fontSize: 16;
+		}
+		
+		mx|Label
+		{
+			fontAntiAliasType: "normal";
+			fontFamily: HaloVera;
+			fontSize: 16;
+		}
+	</fx:Style>
+	
+	<fx:Script>
+		<![CDATA[
+			import mx.events.FlexEvent;
+			import mx.collections.ArrayList;
+			
+
+			private var arr:Array =
+				[
+					{ label:'Apple', data:10.00},
+					{ label:'Banana', data:15.00 },
+					{ label:'Melon', data:3.50 },
+					{ label:'Kiwi', data:7.65},
+					{ label:'Strawberry',data:12.35 },
+					{ label:'Other', data:00.00}
+				];
+			
+			private var listArr :ArrayList = new ArrayList(arr);
+			
+			protected function application1_creationCompleteHandler(event:FlexEvent):void
+			{
+				appList.dataProvider = listArr;
+				swf_loader.addEventListener("complete",swfLoaded);
+			}
+			public function swfLoaded(event:flash.events.Event):void
+			{
+				dispatchEvent(new FlexEvent("swfLoaded"));
+			}
+			public function iniit():void
+			{
+				swf_loader.load("assets/SwfLoaderAppLoadsModule.swf");
+			}
+
+			public function iniit2():void
+			{
+				swf_loader.unloadAndStop();
+				mod_loader.url = "assets/ModuleAppLoadsSwfLoader.swf";
+			}
+			
+
+		]]>
+	</fx:Script>
+	<s:layout>
+		<s:VerticalLayout />
+	</s:layout>
+	
+	<s:Panel title="Gumbo Panel" id="appPanel" rotation="-5">
+		<s:layout>
+			<s:VerticalLayout />
+		</s:layout>
+		
+		<s:List id="appList"  />
+		<s:Button id="gumboButton" label="Gumbo Button"  />
+		<mx:Label text="MX Label"  />
+	</s:Panel>
+	
+	<mx:SWFLoader id="swf_loader" rotation="-5" />
+	<mx:ModuleLoader id="mod_loader" rotation="-5" />
+	
+	<s:Button label="Load Child Swf/Module" click="iniit()" />
+	<s:Button label="Load Child Module/Swf" click="iniit2()" />
+</s:Application>

Added: incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/App_loadsModuleInCurrentDomain.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/App_loadsModuleInCurrentDomain.mxml?rev=1369978&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/App_loadsModuleInCurrentDomain.mxml (added)
+++ incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/App_loadsModuleInCurrentDomain.mxml Mon Aug  6 20:22:48 2012
@@ -0,0 +1,93 @@
+<?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.
+
+-->
+<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" 
+               xmlns:s="library://ns.adobe.com/flex/spark" 
+               xmlns:mx="library://ns.adobe.com/flex/mx" creationComplete="init()">
+
+	<fx:Style>
+		@namespace mx "library://ns.adobe.com/flex/mx";
+		
+		@font-face{
+			src: url("../../../Assets/Fonts/Open_Sans/OpenSans-Regular.ttf");
+			fontFamily: HaloVera;
+			embedAsCFF: false;
+		}
+
+		@font-face{
+			src: url("../../../Assets/Fonts/Open_Sans/OpenSans-Bold.ttf");
+			fontWeight: bold;
+			fontFamily: HaloVera;
+			embedAsCFF: false;
+		}
+		
+		@font-face{
+			src: url("../../../Assets/Fonts/Open_Sans/OpenSans-BoldItalic.ttf");
+			fontWeight: bold;
+			fontStyle: italic;
+			fontFamily: HaloVera;
+
+			embedAsCFF: false;
+		}
+
+		@font-face{
+			src: url("../../../Assets/Fonts/Open_Sans/OpenSans-Italic.ttf");
+			fontStyle: italic;
+			fontFamily: HaloVera;
+			embedAsCFF: false;
+		}
+
+		mx|ComboBox {
+			fontAntiAliasType: "normal";
+			fontFamily: HaloVera;
+			color: red;
+			fontSize: 15;
+			openDuration: 1000;
+		}
+		
+		.myComboBox {
+			fontAntiAliasType: "normal";
+			fontFamily: HaloVera;
+			color: #00FF00;
+			fontSize: 10;
+			openDuration: 1500;
+		}
+
+	</fx:Style>
+	
+	<fx:Script>
+		<![CDATA[
+			import flash.system.ApplicationDomain;
+			
+			public function iniit():void {
+				mod_loader.applicationDomain = ApplicationDomain.currentDomain;
+				mod_loader.url = 'assets/ModuleApp.swf';
+				
+			}		
+		]]>
+	</fx:Script>
+	<s:layout>
+		<s:VerticalLayout/>
+	</s:layout>
+	<s:VGroup>
+		<mx:ModuleLoader id="mod_loader"   />
+		
+	</s:VGroup>
+<s:Button label="Load Module" click="iniit()" />
+</s:Application>
\ No newline at end of file

Propchange: incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/App_loadsModuleInCurrentDomain.mxml
------------------------------------------------------------------------------
    svn:executable = *

Added: incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/CSSDeclarationApp.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/CSSDeclarationApp.mxml?rev=1369978&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/CSSDeclarationApp.mxml (added)
+++ incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/CSSDeclarationApp.mxml Mon Aug  6 20:22:48 2012
@@ -0,0 +1,189 @@
+<?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.
+
+-->
+<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" 
+			   xmlns:s="library://ns.adobe.com/flex/spark" 
+			   xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="1024" minHeight="768" creationComplete="application1_creationCompleteHandler(event)">
+	<fx:Style>
+		@namespace s "library://ns.adobe.com/flex/spark";
+		@namespace mx "library://ns.adobe.com/flex/mx";
+	
+		@font-face{
+			src: url("../../../assets/Fonts/Open_Sans/OpenSans-Regular.ttf");
+			fontFamily: SparkVera;
+			embedAsCFF: true;
+		}
+		
+		@font-face{
+			src: url("../../../assets/Fonts/Open_Sans/OpenSans-Bold.ttf");
+			fontWeight: bold;
+			fontFamily: SparkVera;
+			embedAsCFF: true;
+		}
+		
+		@font-face{
+			src: url("../../../assets/Fonts/Open_Sans/OpenSans-Italic.ttf");
+			fontStyle: italic;
+			fontFamily: SparkVera;
+			embedAsCFF: true;
+		}
+
+		@font-face{
+			src: url("../../../Assets/Fonts/Open_Sans/OpenSans-BoldItalic.ttf");
+			fontWeight: bold;
+			fontStyle: italic;
+			fontFamily: SparkVera;
+
+			embedAsCFF: true;
+		}
+
+
+		@font-face{
+			src: url("../../../Assets/Fonts/Open_Sans/OpenSans-BoldItalic.ttf");
+			fontWeight: bold;
+			fontStyle: italic;
+			fontFamily: HaloVera;
+
+			embedAsCFF: false;
+		}
+
+		
+		@font-face{
+			src: url("../../../assets/Fonts/Open_Sans/OpenSans-Regular.ttf");
+			fontFamily: HaloVera;
+			embedAsCFF: false;
+		}
+		
+		@font-face{
+			src: url("../../../assets/Fonts/Open_Sans/OpenSans-Bold.ttf");
+			fontWeight: bold;
+			fontFamily: HaloVera;
+			embedAsCFF: false;
+		}
+		
+		@font-face{
+			src: url("../../../assets/Fonts/Open_Sans/OpenSans-Italic.ttf");
+			fontStyle: italic;
+			fontFamily: HaloVera;
+			embedAsCFF: false;
+		}
+		
+		global {
+			fontAntiAliasType: "normal";
+			fontFamily: SparkVera;
+			fontLookup: "embeddedCFF";
+		}
+		
+		s|List
+		{
+			
+			borderColor: #0000FF;
+			fontSize: 16;
+		}
+		
+	</fx:Style>
+	
+	<fx:Script>
+		<![CDATA[
+			import mx.collections.ArrayList;
+			import mx.events.FlexEvent;
+			import mx.events.ModuleEvent;
+
+			import spark.components.TextInput;
+			
+			private var arr:Array =
+				[
+					{ label:'Apple', data:10.00},
+					{ label:'Banana', data:15.00 },
+					{ label:'Melon', data:3.50 },
+					{ label:'Kiwi', data:7.65},
+					{ label:'Strawberry',data:12.35 },
+					{ label:'Other', data:00.00}
+				];
+			
+			private var listArr :ArrayList = new ArrayList(arr);
+			
+			protected function application1_creationCompleteHandler(event:FlexEvent):void
+			{
+				appList.dataProvider = listArr;
+				myStyleManager = StyleManager.getStyleManager(null);
+			}
+			
+			private var myStyleManager: IStyleManager2;
+			
+			public function iniit():void
+			{
+				mod_loader.url = "assets/CSSDeclarationModule.swf";
+			}
+			
+			private function readyHandler(event:ModuleEvent):void
+			{
+				mod_loader2.url = 'assets/CSSDeclarationModule2.swf';
+			}
+
+			public function unload():void
+			{
+				mod_loader.unloadModule();
+				mod_loader.url = "";
+				
+				mod_loader2.unloadModule();
+				mod_loader2.url = "";
+			}
+			
+			public function modifyStyleValue(  ):void
+			{
+				var cssDecl:CSSStyleDeclaration = myStyleManager.getStyleDeclaration(selector.text);
+				style.text =  cssDecl.getStyle(styleNameField.text);
+				cssDecl.setStyle(styleNameField.text, newStyle.text);
+			}
+			
+			public function modifyMergedStyleValue( ):void
+			{
+				var cssDecl:CSSStyleDeclaration = myStyleManager.getMergedStyleDeclaration(selector.text);
+				style.text =  cssDecl.getStyle(styleNameField.text);
+				cssDecl.setStyle(styleNameField.text, newStyle.text);
+			}
+		]]>
+	</fx:Script>
+	<s:layout>
+		<s:VerticalLayout paddingLeft="5"/>
+	</s:layout>
+	<s:HGroup id="hgroupContainer"  >
+		<s:List id="appList"  />
+		<mx:ModuleLoader id="mod_loader" ready="readyHandler(event)"/>
+		<mx:ModuleLoader id="mod_loader2"/>
+	</s:HGroup>
+			  
+	<s:Button label="Load Module" click="iniit()" />
+	<s:Button label="UnLoad Module" click="unload()" />
+	
+	<s:Label text="selector" />
+	<s:TextInput id="selector" />
+	<s:Label text="style name" />
+	<s:TextInput id="styleNameField" />
+	<s:Label text="New style Value" />	
+	<s:TextInput id="newStyle" />
+	
+	<s:Label text="current style Value" />	
+	<s:TextInput id="style" editable="false"/>
+	
+	<s:Button id="localButton" label="Modify Local Style" click="modifyStyleValue( )" />
+	<s:Button id="mergedButton"  label="Modify Merged Style" click="modifyMergedStyleValue( )" />
+	
+</s:Application>

Added: incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/CSS_SelectorApp2006.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/CSS_SelectorApp2006.mxml?rev=1369978&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/CSS_SelectorApp2006.mxml (added)
+++ incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/CSS_SelectorApp2006.mxml Mon Aug  6 20:22:48 2012
@@ -0,0 +1,151 @@
+<?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 xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical" height="700" width="700"
+			    creationComplete="application1_creationCompleteHandler(event)">
+	<mx:Style>
+		@namespace mx "http://www.adobe.com/2006/mxml";
+	
+		@font-face{
+			src: url("../../../Assets/Fonts/Open_Sans/OpenSans-Regular.ttf");
+			fontFamily: HaloVera;
+			embedAsCFF: false;
+		}
+		
+		@font-face{
+			src: url("../../../Assets/Fonts/Open_Sans/OpenSans-Bold.ttf");
+			fontWeight: bold;
+			fontFamily: HaloVera;
+			embedAsCFF: false;
+		}
+		
+		@font-face{
+			src: url("../../../Assets/Fonts/Open_Sans/OpenSans-Italic.ttf");
+			fontStyle: italic;
+			fontFamily: HaloVera;
+			embedAsCFF: false;
+		}
+
+		@font-face{
+			src: url("../../../Assets/Fonts/Open_Sans/OpenSans-BoldItalic.ttf");
+			fontWeight: bold;
+			fontStyle: italic;
+			fontFamily: SparkVera;
+
+			embedAsCFF: true;
+		}
+		
+		
+		global {
+			chromeColor: #DDAA66;	
+			fontAntiAliasType: "normal";
+			fontFamily: HaloVera;
+		}
+		
+		mx|ComboBox
+		{
+			fontSize: 16;
+		}
+		
+		mx|Button#gumboButton
+		{
+			chromeColor: #AAFFAA;
+			fontSize: 16;
+		}
+		
+		mx|Panel mx|Label
+		{
+			fontSize: 16;
+		}
+		
+		mx|Button.myStyle
+		{
+			chromeColor: #FFFFAA;
+			fontSize: 14;
+		}
+		
+		mx|HBox mx|Label
+		{
+			chromeColor: #BBAAAA;
+			fontSize: 14;
+		}
+		
+		.classOfStyle
+		{
+			color: #0FFFFA;	
+			fontSize: 20;
+		}
+	</mx:Style>
+	
+	<mx:Script>
+		<![CDATA[
+			import mx.events.FlexEvent;
+			import mx.collections.ArrayList;
+			import mx.events.ModuleEvent;
+			
+			private var arr:Array =
+				[
+					{ label:'Apple', data:10.00},
+					{ label:'Banana', data:15.00 },
+					{ label:'Melon', data:3.50 },
+					{ label:'Kiwi', data:7.65},
+					{ label:'Strawberry',data:12.35 },
+					{ label:'Other', data:00.00}
+				];
+			
+			private var listArr :ArrayList = new ArrayList(arr);
+			
+			protected function application1_creationCompleteHandler(event:FlexEvent):void
+			{
+				appList.dataProvider = listArr;
+			}
+			
+			
+			public function iniit():void
+			{
+				mod_loader.url = "assets/CSS_SelectorModule2006.swf";
+			}
+			
+		]]>
+	</mx:Script>
+	
+	<mx:VBox id="groupId" >
+		<mx:VBox >
+			<mx:CheckBox id="checkBox" label="Check Box" />
+			<mx:Label text="Label Outside Panel"  />
+		</mx:VBox>
+		<mx:HBox rotation="-5">
+			<mx:NumericStepper id="numericStepper" stepSize="1" minimum="1" maximum="10" />
+			<mx:Label text="This Text is Rich !!" />
+		</mx:HBox>
+		<mx:Label text="This Text is also Rich !!" />
+		<mx:Panel title="Gumbo Panel" id="appPanel" rotation="-5">
+			
+			
+			<mx:Button id="gumboButton" label="Gumbo Button"  />
+			<mx:Button id="gumboButton2" label="Second Gumbo Button" styleName="myStyle"  />
+			<mx:Label text="Spark Label"  />
+			<mx:Label text="Spark Label class selector" styleName="classOfStyle"  />
+			<mx:ComboBox id="appList"  />
+		</mx:Panel>
+		
+	</mx:VBox>
+	<mx:ModuleLoader id="mod_loader"/>
+	<mx:Button label="Load Module" click="iniit()" />
+</mx:Application>

Added: incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/CSS_Selectors.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/CSS_Selectors.mxml?rev=1369978&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/CSS_Selectors.mxml (added)
+++ incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/CSS_Selectors.mxml Mon Aug  6 20:22:48 2012
@@ -0,0 +1,199 @@
+<?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.
+
+-->
+<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" 
+			   xmlns:s="library://ns.adobe.com/flex/spark" 
+			   xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="1024" minHeight="768" creationComplete="application1_creationCompleteHandler(event)">
+	<fx:Style>
+		@namespace s "library://ns.adobe.com/flex/spark";
+		@namespace mx "library://ns.adobe.com/flex/mx";
+		
+		@font-face{
+			src: url("../../../Assets/Fonts/Open_Sans/OpenSans-Regular.ttf");
+			fontFamily: SparkVera;
+			embedAsCFF: true;
+		}
+		
+		@font-face{
+			src: url("../../../Assets/Fonts/Open_Sans/OpenSans-Bold.ttf");
+			fontWeight: bold;
+			fontFamily: SparkVera;
+			embedAsCFF: true;
+		}
+		
+		@font-face{
+			src: url("../../../Assets/Fonts/Open_Sans/OpenSans-Italic.ttf");
+			fontStyle: italic;
+			fontFamily: SparkVera;
+			embedAsCFF: true;
+		}
+
+		@font-face{
+			src: url("../../../Assets/Fonts/Open_Sans/OpenSans-BoldItalic.ttf");
+			fontWeight: bold;
+			fontStyle: italic;
+			fontFamily: SparkVera;
+
+			embedAsCFF: true;
+		}
+
+
+		@font-face{
+			src: url("../../../Assets/Fonts/Open_Sans/OpenSans-BoldItalic.ttf");
+			fontWeight: bold;
+			fontStyle: italic;
+			fontFamily: HaloVera;
+
+			embedAsCFF: false;
+		}
+		
+		@font-face{
+			src: url("../../../Assets/Fonts/Open_Sans/OpenSans-Regular.ttf");
+			fontFamily: HaloVera;
+			embedAsCFF: false;
+		}
+		
+		@font-face{
+			src: url("../../../Assets/Fonts/Open_Sans/OpenSans-Bold.ttf");
+			fontWeight: bold;
+			fontFamily: HaloVera;
+			embedAsCFF: false;
+		}
+		
+		@font-face{
+			src: url("../../../Assets/Fonts/Open_Sans/OpenSans-Italic.ttf");
+			fontStyle: italic;
+			fontFamily: HaloVera;
+			embedAsCFF: false;
+		}
+		
+		global {
+			chromeColor: #DDAA66;	
+			fontAntiAliasType: "normal";
+			fontFamily: SparkVera;
+			fontLookup: "embeddedCFF";
+		}
+		
+		s|DropDownList
+		{
+			borderColor: #FF0000;
+			fontSize: 16;
+		}
+		
+		s|Button#gumboButton
+		{
+			chromeColor: #AAFFAA;
+			fontSize: 16;
+		}
+		
+		s|Panel s|Label
+		{
+			fontSize: 16;
+		}
+		
+		s|Button.myStyle
+		{
+			chromeColor: #FFFFAA;
+			fontSize: 14;
+		}
+		
+		s|HGroup s|RichText
+		{
+			chromeColor: #BBAAAA;
+			fontSize: 14;
+		}
+		
+		.classOfStyle
+		{
+			color: #0FFFFA;	
+			fontSize: 20;
+		}
+	</fx:Style>
+	
+	<fx:Script>
+		<![CDATA[
+			import mx.events.FlexEvent;
+			import mx.collections.ArrayList;
+			import mx.events.ModuleEvent;
+			
+			private var arr:Array =
+				[
+					{ label:'Apple', data:10.00},
+					{ label:'Banana', data:15.00 },
+					{ label:'Melon', data:3.50 },
+					{ label:'Kiwi', data:7.65},
+					{ label:'Strawberry',data:12.35 },
+					{ label:'Other', data:00.00}
+				];
+			
+			private var listArr :ArrayList = new ArrayList(arr);
+			
+			protected function application1_creationCompleteHandler(event:FlexEvent):void
+			{
+				appList.dataProvider = listArr;
+			}
+			
+
+			public function iniit():void
+			{
+				mod_loader.url = "assets/CSS_SelectorModule.swf";
+			}
+
+			public function unload():void
+			{
+				mod_loader.unloadModule();
+				mod_loader.url = "";
+			}
+
+			public function iniit2():void
+			{
+				mod_loader.url = "assets/IsolateStylesModule.swf";
+			}
+
+		]]>
+	</fx:Script>
+	<s:layout>
+		<s:VerticalLayout />
+	</s:layout>
+	<s:VGroup id="groupId">
+		<s:VGroup >
+			<s:CheckBox id="checkBox" label="Check Box" />
+			<s:Label text="Label Outside Panel"  />
+		</s:VGroup>
+		<s:HGroup rotation="10">
+				<s:NumericStepper id="numericStepper" stepSize="1" minimum="1" maximum="10" />
+				<s:RichText text="This Text is Rich !!" />
+		</s:HGroup>
+		<s:RichText text="This Text is also Rich !!" />
+		<s:Panel title="Gumbo Panel" id="appPanel" rotation="-5">
+			<s:layout>
+				<s:VerticalLayout />
+			</s:layout>
+
+			<s:Button id="gumboButton" label="Gumbo Button"  />
+			<s:Button id="gumboButton2" label="Second Gumbo Button" styleName="myStyle"  />
+			<s:Label text="Spark Label"  />
+			<s:Label text="Spark Label class selector" styleName="classOfStyle"  />
+			<s:DropDownList id="appList"  />
+		</s:Panel>
+		
+	</s:VGroup>
+	<mx:ModuleLoader id="mod_loader"/>
+	<s:Button label="Load Module" click="iniit()" />
+</s:Application>

Added: incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/CSS_SelectorsCompat.compile
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/CSS_SelectorsCompat.compile?rev=1369978&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/CSS_SelectorsCompat.compile (added)
+++ incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/CSS_SelectorsCompat.compile Mon Aug  6 20:22:48 2012
@@ -0,0 +1 @@
+-compatibility-version=3.0.0
\ No newline at end of file

Added: incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/CSS_SelectorsCompat.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/CSS_SelectorsCompat.mxml?rev=1369978&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/CSS_SelectorsCompat.mxml (added)
+++ incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/CSS_SelectorsCompat.mxml Mon Aug  6 20:22:48 2012
@@ -0,0 +1,137 @@
+<?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 xmlns:mx="http://www.adobe.com/2006/mxml"  minWidth="1024" minHeight="768" width="700" height="700" creationComplete="application1_creationCompleteHandler(event)">
+	<mx:Style>
+		@namespace mx "http://www.adobe.com/2006/mxml" ;
+
+		@font-face{
+			src: url("../../../Assets/Fonts/Open_Sans/OpenSans-BoldItalic.ttf");
+			fontWeight: bold;
+			fontStyle: italic;
+			fontFamily: HaloVera;
+
+			embedAsCFF: false;
+		}
+		
+		@font-face{
+			src: url("../../../Assets/Fonts/Open_Sans/OpenSans-Regular.ttf");
+			fontFamily: HaloVera;
+			embedAsCFF: false;
+		}
+		
+		@font-face{
+			src: url("../../../Assets/Fonts/Open_Sans/OpenSans-Bold.ttf");
+			fontWeight: bold;
+			fontFamily: HaloVera;
+			embedAsCFF: false;
+		}
+		
+		@font-face{
+			src: url("../../../Assets/Fonts/Open_Sans/OpenSans-Italic.ttf");
+			fontStyle: italic;
+			fontFamily: HaloVera;
+			embedAsCFF: false;
+		}
+		
+		
+		global {
+			borderColor: #FF0000;	
+			fontAntiAliasType: "normal";
+			fontFamily: HaloVera;
+			
+		}
+		
+		mx|ComboBox
+		{
+			borderColor: #00FF00;
+			fontSize: 16;
+		}
+		
+		mx|Button
+		{
+			fontSize: 16;
+		}
+		
+		
+		mx|Button.myStyle
+		{
+			borderColor: #0000FF;
+			fontSize: 14;
+		}
+		
+		.classOfStyle
+		{
+			color: #0FFFFA;	
+			fontSize: 20;
+		}
+	</mx:Style>
+	
+	<mx:Script>
+		<![CDATA[
+			import mx.events.FlexEvent;
+			import mx.collections.ArrayList;
+			import mx.events.ModuleEvent;
+			
+			private var arr:Array =
+				[
+					{ label:'Apple', data:10.00},
+					{ label:'Banana', data:15.00 },
+					{ label:'Melon', data:3.50 },
+					{ label:'Kiwi', data:7.65},
+					{ label:'Strawberry',data:12.35 },
+					{ label:'Other', data:00.00}
+				];
+			
+			private var listArr :ArrayList = new ArrayList(arr);
+			
+			protected function application1_creationCompleteHandler(event:FlexEvent):void
+			{
+				appList.dataProvider = listArr;
+			}
+			
+
+			public function iniit():void
+			{
+				mod_loader.url = "assets/CSS_SelectorModuleCompat.swf";
+			}
+
+		]]>
+	</mx:Script>
+
+	<mx:VBox id="groupId">
+		<mx:CheckBox id="checkBox" label="Check Box" />
+		<mx:Label text="Label Outside Panel"  />
+		<mx:HBox rotation="-10">
+			<mx:NumericStepper id="numericStepper" stepSize="1" minimum="1" maximum="10" />
+			
+		</mx:HBox>
+		<mx:Panel title="Mx Panel" id="appPanel" rotation="-5">
+						
+			<mx:Button id="MXButton" label="MX Button"  />
+			<mx:Button id="MXButton2" label="Second MX Button" styleName="myStyle"  />
+			<mx:Label text="MX Label"  />
+			<mx:Label text="MX Label class selector" styleName="classOfStyle"  />
+			<mx:ComboBox id="appList"  />
+		</mx:Panel>
+	</mx:VBox>	
+	
+	<mx:ModuleLoader id="mod_loader"/>
+	<mx:Button label="Load Module" click="iniit()" />
+</mx:Application>

Added: incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/CurrentStyleManagerApp.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/CurrentStyleManagerApp.mxml?rev=1369978&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/CurrentStyleManagerApp.mxml (added)
+++ incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/CurrentStyleManagerApp.mxml Mon Aug  6 20:22:48 2012
@@ -0,0 +1,86 @@
+<?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.
+
+-->
+<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" 
+			   xmlns:s="library://ns.adobe.com/flex/spark" 
+			   xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="1024" minHeight="768" creationComplete="application1_creationCompleteHandler(event)">
+	<fx:Script>
+		<![CDATA[
+			import mx.collections.ArrayList;
+			import mx.core.UIComponent;
+			import mx.events.FlexEvent;
+			
+			private var arr:Array =
+				[
+					{ label:'Apple', data:10.00},
+					{ label:'Banana', data:15.00 },
+					{ label:'Melon', data:3.50 },
+					{ label:'Kiwi', data:7.65},
+					{ label:'Strawberry',data:12.35 },
+					{ label:'Other', data:00.00}
+				];
+			
+			private var listArr :ArrayList = new ArrayList(arr);
+			
+			protected function application1_creationCompleteHandler(event:FlexEvent):void
+			{
+				appList.dataProvider = listArr;
+				myStyleManager = StyleManager.getStyleManager(systemManager);
+			}
+			
+			public var myStyleManager: IStyleManager2;
+			
+			
+			
+			public function iniit():void
+			{
+				mod_loader.url = "assets/StyleMgrModule.swf";
+			}
+			
+			public function unload():void
+			{
+				mod_loader.unloadModule();
+				mod_loader.url = "";
+			}
+			
+			public function findModuleStyleManager(): IStyleManager2
+			{
+				return StyleManager.getStyleManager((mod_loader.child as UIComponent).moduleFactory);
+				 
+			}
+
+			public function findParentForModuleStyleManager(): IStyleManager2
+			{
+				return  StyleManager.getStyleManager((mod_loader.child as UIComponent).moduleFactory).parent;
+				
+			}
+		]]>
+	</fx:Script>
+	<s:layout>
+		<s:VerticalLayout paddingLeft="5"/>
+	</s:layout>
+	<s:HGroup id="hgroupContainer"  >
+		<s:List id="appList"  />
+		<mx:ModuleLoader id="mod_loader" />
+	</s:HGroup>
+	
+	<s:Button label="Load Module" click="iniit()" />
+	<s:Button label="UnLoad Module" click="unload()" />
+	
+</s:Application>

Added: incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/CurrentStyleManagerApp2.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/CurrentStyleManagerApp2.mxml?rev=1369978&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/CurrentStyleManagerApp2.mxml (added)
+++ incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/CurrentStyleManagerApp2.mxml Mon Aug  6 20:22:48 2012
@@ -0,0 +1,70 @@
+<?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.
+
+-->
+<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" 
+			   xmlns:s="library://ns.adobe.com/flex/spark" 
+			   xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="1024" minHeight="768" creationComplete="application1_creationCompleteHandler(event)">
+	<fx:Script>
+		<![CDATA[
+			import mx.collections.ArrayList;
+			import mx.core.UIComponent;
+			import mx.events.FlexEvent;
+			
+			private var arr:Array =
+				[
+					{ label:'Apple', data:10.00},
+					{ label:'Banana', data:15.00 },
+					{ label:'Melon', data:3.50 },
+					{ label:'Kiwi', data:7.65},
+					{ label:'Strawberry',data:12.35 },
+					{ label:'Other', data:00.00}
+				];
+			
+			private var listArr :ArrayList = new ArrayList(arr);
+			
+			protected function application1_creationCompleteHandler(event:FlexEvent):void
+			{
+				appList.dataProvider = listArr;
+				
+			}
+			
+			public function iniit():void
+			{
+				mod_loader.url = "assets/StyleMgrModule2.swf";
+			}
+			
+			public function unload():void
+			{
+				mod_loader.unloadModule();
+				mod_loader.url = "";
+			}
+		]]>
+	</fx:Script>
+	<s:layout>
+		<s:VerticalLayout paddingLeft="5"/>
+	</s:layout>
+	<s:HGroup id="hgroupContainer"  >
+		<s:List id="appList"  />
+		<mx:ModuleLoader id="mod_loader" />
+	</s:HGroup>
+	
+	<s:Button label="Load Module" click="iniit()" />
+	<s:Button label="UnLoad Module" click="unload()" />
+	
+</s:Application>

Added: incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/CurrentStyleManagerApp3.compile
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/CurrentStyleManagerApp3.compile?rev=1369978&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/CurrentStyleManagerApp3.compile (added)
+++ incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/CurrentStyleManagerApp3.compile Mon Aug  6 20:22:48 2012
@@ -0,0 +1 @@
+-compatibility-version=3.0.0
\ No newline at end of file

Added: incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/CurrentStyleManagerApp3.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/CurrentStyleManagerApp3.mxml?rev=1369978&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/CurrentStyleManagerApp3.mxml (added)
+++ incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/CurrentStyleManagerApp3.mxml Mon Aug  6 20:22:48 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.
+
+-->
+<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical"
+			    minWidth="1024" minHeight="768" creationComplete="application1_creationCompleteHandler(event)">
+	<mx:Script>
+		<![CDATA[
+			import mx.collections.ArrayList;
+			import mx.core.UIComponent;
+			import mx.events.FlexEvent;
+			
+			private var arr:Array =
+				[
+					{ label:'Apple', data:10.00},
+					{ label:'Banana', data:15.00 },
+					{ label:'Melon', data:3.50 },
+					{ label:'Kiwi', data:7.65},
+					{ label:'Strawberry',data:12.35 },
+					{ label:'Other', data:00.00}
+				];
+			
+			private var listArr :ArrayList = new ArrayList(arr);
+			
+			protected function application1_creationCompleteHandler(event:FlexEvent):void
+			{
+				appList.dataProvider = listArr;
+				myStyleManager = StyleManager.getStyleManager(systemManager);
+			}
+			
+			public var myStyleManager: IStyleManager2;
+			
+			
+			
+			public function iniit():void
+			{
+				mod_loader.url = "assets/StyleMgrModule3.swf";
+			}
+			
+			public function unload():void
+			{
+				mod_loader.unloadModule();
+				mod_loader.url = "";
+			}
+			
+			public function findModuleStyleManager(): IStyleManager2
+			{
+				return StyleManager.getStyleManager((mod_loader.child as UIComponent).moduleFactory);
+				 
+			}
+
+			public function findParentForModuleStyleManager(): IStyleManager2
+			{
+				return  StyleManager.getStyleManager((mod_loader.child as UIComponent).moduleFactory).parent;
+				
+			}
+		]]>
+	</mx:Script>
+	
+	<mx:HBox id="hgroupContainer"  >
+		<mx:List id="appList"  />
+		<mx:ModuleLoader id="mod_loader" />
+	</mx:HBox>
+	
+	<mx:Button label="Load Module" click="iniit()" />
+	<mx:Button label="UnLoad Module" click="unload()" />
+	
+</mx:Application>

Added: incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/FontsTest.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/FontsTest.mxml?rev=1369978&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/FontsTest.mxml (added)
+++ incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/FontsTest.mxml Mon Aug  6 20:22:48 2012
@@ -0,0 +1,100 @@
+<?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.
+
+-->
+<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" 
+			   xmlns:s="library://ns.adobe.com/flex/spark" creationComplete="application1_creationCompleteHandler(event)"
+			   xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600">
+	<fx:Script>
+		<![CDATA[
+			import mx.collections.ArrayList;
+			import mx.controls.Alert;
+			import mx.events.FlexEvent;
+            import mx.core.EmbeddedFontRegistry; EmbeddedFontRegistry;
+			
+			public var eventDispatcher:IEventDispatcher = null;
+			
+			private var arr:Array =
+				[
+					{ label:'Newyork', data:10.00},
+					{ label:'Boston', data:15.00 },
+					{ label:'Chicago', data:3.50 },
+					{ label:'San Francisco', data:7.65},
+					{ label:'Las Vegas',data:12.35 },
+					{ label:'Orlando', data:00.00}
+				];
+			
+			private var listArr :ArrayList = new ArrayList(arr);
+			
+			protected function application1_creationCompleteHandler(event:FlexEvent):void
+			{
+				sparkList.dataProvider = listArr;
+				mxList.dataProvider = listArr;
+			}
+			
+			public function loadFonts():void
+			{
+				eventDispatcher  = styleManager.loadStyleDeclarations("assets/fontsSheet.swf");
+			}
+			
+			public function unloadFonts():void
+			{
+				styleManager.unloadStyleDeclarations("assets/fontsSheet.swf");
+			}
+			
+			public function loadModule():void
+			{
+				mod_loader.url="assets/FontsModule.swf";
+			}
+			
+			public function unloadModule():void
+			{
+				mod_loader.url="";
+				mod_loader.unloadModule();
+			}
+			
+		]]>
+	</fx:Script>
+	<s:layout>
+		<s:HorizontalLayout/>
+	</s:layout>
+	<s:Panel id="sparkPanel" title="Sparky Panel" >
+		<s:layout>
+			<s:VerticalLayout paddingLeft="5" paddingTop="5"/>
+		</s:layout>
+		<s:Button label="Spark Button" />
+		<s:RichText id="rt" text="Spark Rich TExt" />
+		<s:Label   text="Spark Label" />
+		<s:List id="sparkList" />
+		
+	</s:Panel>
+	<mx:Panel title="MX Panel" >
+		<mx:Button label="MX Button" />
+		<mx:Label   text="Spark Label" />
+		<mx:List id="mxList" />
+	</mx:Panel>
+	<mx:ModuleLoader id="mod_loader" />
+	<s:VGroup>
+		<s:Button click="loadFonts()" label="load fonts using css"/>
+		<s:Button click="unloadFonts()" label="unload css fonts"/>
+		
+		<s:Button click="loadModule()" label="load module"/>
+		<s:Button click="unloadModule()" label="unload module"/>
+	</s:VGroup>
+	
+</s:Application>

Added: incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/InheritingStyles.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/InheritingStyles.mxml?rev=1369978&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/InheritingStyles.mxml (added)
+++ incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/InheritingStyles.mxml Mon Aug  6 20:22:48 2012
@@ -0,0 +1,52 @@
+<?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.
+
+-->
+<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" 
+			   xmlns:s="library://ns.adobe.com/flex/spark" 
+			   xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="1024" minHeight="768">
+	<fx:Script>
+		<![CDATA[
+			import mx.events.FlexEvent;
+			import mx.collections.ArrayList;
+			import mx.events.ModuleEvent;
+			import mx.events.StyleEvent;
+			import mx.controls.Alert;
+
+			protected function loadModuleBtn1_clickHandler(event:MouseEvent):void
+			{
+				mod_loader.url = "assets/SparkModule.swf";
+			}
+			
+			protected function registerBtn_clickHandler():void
+			{
+				styleManager.registerInheritingStyle("someStyle");
+			}
+			
+		]]>
+	</fx:Script>
+	<s:layout>
+		<s:VerticalLayout />
+	</s:layout>
+	<s:Button label="Register Style" id="registerBtn" click="registerBtn_clickHandler()" />
+	<s:Button label="Load Module 1" id="loadModuleBtn1" click="loadModuleBtn1_clickHandler(event)" />
+	
+	
+		<mx:ModuleLoader id="mod_loader"/>
+	
+</s:Application>

Added: incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/LoadStylesApp.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/LoadStylesApp.mxml?rev=1369978&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/LoadStylesApp.mxml (added)
+++ incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/LoadStylesApp.mxml Mon Aug  6 20:22:48 2012
@@ -0,0 +1,181 @@
+<?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.
+
+-->
+<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" 
+			   xmlns:s="library://ns.adobe.com/flex/spark" 
+			   xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="1024" minHeight="768" creationComplete="application1_creationCompleteHandler(event)">
+	<fx:Style>
+		@namespace s "library://ns.adobe.com/flex/spark";
+		@namespace mx "library://ns.adobe.com/flex/mx";
+		
+		@font-face{
+			src: url("../../../Assets/Fonts/Open_Sans/OpenSans-Regular.ttf");
+			fontFamily: SparkVera;
+			embedAsCFF: true;
+		}
+		
+		@font-face{
+			src: url("../../../Assets/Fonts/Open_Sans/OpenSans-Bold.ttf");
+			fontWeight: bold;
+			fontFamily: SparkVera;
+			embedAsCFF: true;
+		}
+		
+		@font-face{
+			src: url("../../../Assets/Fonts/Open_Sans/OpenSans-Italic.ttf");
+			fontStyle: italic;
+			fontFamily: SparkVera;
+			embedAsCFF: true;
+		}
+		
+		@font-face{
+			src: url("../../../Assets/Fonts/Open_Sans/OpenSans-BoldItalic.ttf");
+			fontWeight: bold;
+			fontStyle: italic;
+			fontFamily: SparkVera;
+
+			embedAsCFF: true;
+		}
+
+
+		@font-face{
+			src: url("../../../Assets/Fonts/Open_Sans/OpenSans-BoldItalic.ttf");
+			fontWeight: bold;
+			fontStyle: italic;
+			fontFamily: HaloVera;
+
+			embedAsCFF: false;
+		}
+		
+		
+		@font-face{
+			src: url("../../../Assets/Fonts/Open_Sans/OpenSans-Regular.ttf");
+			fontFamily: HaloVera;
+			embedAsCFF: false;
+		}
+		
+		@font-face{
+			src: url("../../../Assets/Fonts/Open_Sans/OpenSans-Bold.ttf");
+			fontWeight: bold;
+			fontFamily: HaloVera;
+			embedAsCFF: false;
+		}
+		
+		@font-face{
+			src: url("../../../Assets/Fonts/Open_Sans/OpenSans-Italic.ttf");
+			fontStyle: italic;
+			fontFamily: HaloVera;
+			embedAsCFF: false;
+		}
+		
+		global {
+			chromeColor: #DDAA66;	
+			fontAntiAliasType: "normal";
+			fontFamily: SparkVera;
+			fontLookup: "embeddedCFF";
+		}
+	
+		s|Panel{
+			dropShadowVisible:false;
+		}
+		
+		mx|Button  {
+			fontAntiAliasType: "normal";
+			fontFamily: HaloVera;
+		}
+		
+	</fx:Style>
+	
+	<fx:Script>
+		<![CDATA[
+			import mx.events.FlexEvent;
+			import mx.collections.ArrayList;
+			import mx.events.ModuleEvent;
+			import mx.events.StyleEvent;
+			import mx.controls.Alert;
+			
+			private var arr:Array =
+				[
+					{ label:'Apple', data:10.00},
+					{ label:'Banana', data:15.00 },
+					{ label:'Melon', data:3.50 },
+					{ label:'Kiwi', data:7.65},
+					{ label:'Strawberry',data:12.35 },
+					{ label:'Other', data:00.00}
+				];
+			
+			private var listArr :ArrayList = new ArrayList(arr);
+			
+			protected function application1_creationCompleteHandler(event:FlexEvent):void
+			{
+				appList.dataProvider = listArr;
+				localStyleManager  = StyleManager.getStyleManager(null);
+			}
+			
+			
+			public function iniit():void
+			{
+				mod_loader.url = "assets/StylesModule.swf";
+			}
+			private var localStyleManager:IStyleManager2 = null;
+			
+			public var eventDispatcher:IEventDispatcher = null;
+			protected function loadStylesButton_clickHandler(event:MouseEvent):void
+			{
+				
+				eventDispatcher = localStyleManager.loadStyleDeclarations("assets/testStyles.swf");
+			}
+			
+			protected function unloadStylesButton_clickHandler(event:MouseEvent):void
+			{
+				localStyleManager.unloadStyleDeclarations("assets/testStyles.swf");
+			}
+		]]>
+	</fx:Script>
+	<s:layout>
+		<s:VerticalLayout />
+	</s:layout>
+	<s:VGroup id="groupId">
+		<s:VGroup >
+			<s:CheckBox id="checkBox" label="Check Box" />
+			<s:Label text="Label Outside Panel"  />
+		</s:VGroup>
+		<s:HGroup rotation="10">
+			<s:NumericStepper id="numericStepper" stepSize="1" minimum="1" maximum="10" />
+			<s:RichText text="This Text is Rich !!" />
+		</s:HGroup>
+		<s:RichText text="This Text is also Rich !!" />
+		<s:Panel id="appPanel" rotation="-5">
+			<s:layout>
+				<s:VerticalLayout />
+			</s:layout>
+			
+			<s:Button id="gumboButton" label="Gumbo Button"  />
+			<s:Button id="gumboButton2" label="Second Gumbo Button" styleName="myStyle"  />
+			<s:Label text="Spark Label"  />
+			<s:Label text="Spark Label class selector" styleName="classOfStyle"  />
+			<s:DropDownList id="appList"  />
+		</s:Panel>
+		<mx:ModuleLoader id="mod_loader"/>
+	</s:VGroup>
+	
+	<s:Button label="Load Module" click="iniit()" />
+	<mx:Button label="Load styles" id="loadStylesButton" click="loadStylesButton_clickHandler(event)" />
+	<mx:Button label="Unload styles" id="unloadStylesButton" click="unloadStylesButton_clickHandler(event)" />
+</s:Application>

Added: incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/LoadStylesApp2.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/LoadStylesApp2.mxml?rev=1369978&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/LoadStylesApp2.mxml (added)
+++ incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/LoadStylesApp2.mxml Mon Aug  6 20:22:48 2012
@@ -0,0 +1,179 @@
+<?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.
+
+-->
+<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" 
+			   xmlns:s="library://ns.adobe.com/flex/spark" 
+			   xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="1024" minHeight="768" creationComplete="application1_creationCompleteHandler(event)">
+	<fx:Style>
+		@namespace s "library://ns.adobe.com/flex/spark";
+		@namespace mx "library://ns.adobe.com/flex/mx";
+		
+		@font-face{
+			src: url("../../../Assets/Fonts/Open_Sans/OpenSans-Regular.ttf");
+			fontFamily: SparkVera;
+			embedAsCFF: true;
+		}
+		
+		@font-face{
+			src: url("../../../Assets/Fonts/Open_Sans/OpenSans-Bold.ttf");
+			fontWeight: bold;
+			fontFamily: SparkVera;
+			embedAsCFF: true;
+		}
+		
+		@font-face{
+			src: url("../../../Assets/Fonts/Open_Sans/OpenSans-Italic.ttf");
+			fontStyle: italic;
+			fontFamily: SparkVera;
+			embedAsCFF: true;
+		}
+		
+		@font-face{
+			src: url("../../../Assets/Fonts/Open_Sans/OpenSans-BoldItalic.ttf");
+			fontWeight: bold;
+			fontStyle: italic;
+			fontFamily: SparkVera;
+
+			embedAsCFF: true;
+		}
+
+
+		@font-face{
+			src: url("../../../Assets/Fonts/Open_Sans/OpenSans-BoldItalic.ttf");
+			fontWeight: bold;
+			fontStyle: italic;
+			fontFamily: HaloVera;
+
+			embedAsCFF: false;
+		}
+
+		
+		@font-face{
+			src: url("../../../Assets/Fonts/Open_Sans/OpenSans-Regular.ttf");
+			fontFamily: HaloVera;
+			embedAsCFF: false;
+		}
+		
+		@font-face{
+			src: url("../../../Assets/Fonts/Open_Sans/OpenSans-Bold.ttf");
+			fontWeight: bold;
+			fontFamily: HaloVera;
+			embedAsCFF: false;
+		}
+		
+		@font-face{
+			src: url("../../../Assets/Fonts/Open_Sans/OpenSans-Italic.ttf");
+			fontStyle: italic;
+			fontFamily: HaloVera;
+			embedAsCFF: false;
+		}
+		
+		global {
+			chromeColor: #DDAA66;	
+			fontAntiAliasType: "normal";
+			fontFamily: SparkVera;
+			fontLookup: "embeddedCFF";
+		}
+		
+		mx|Button  {
+			fontAntiAliasType: "normal";
+			fontFamily: HaloVera;
+		}
+		
+	</fx:Style>
+	
+	<fx:Script>
+		<![CDATA[
+			import mx.events.FlexEvent;
+			import mx.collections.ArrayList;
+			import mx.events.ModuleEvent;
+			import mx.events.StyleEvent;
+			import mx.controls.Alert;
+			
+			private var arr:Array =
+				[
+					{ label:'Apple', data:10.00},
+					{ label:'Banana', data:15.00 },
+					{ label:'Melon', data:3.50 },
+					{ label:'Kiwi', data:7.65},
+					{ label:'Strawberry',data:12.35 },
+					{ label:'Other', data:00.00}
+				];
+			
+			private var listArr :ArrayList = new ArrayList(arr);
+			
+			protected function application1_creationCompleteHandler(event:FlexEvent):void
+			{
+				appList.dataProvider = listArr;
+				localStyleManager  = StyleManager.getStyleManager(null);
+			}
+			
+			private var localStyleManager:IStyleManager2 = null;
+			
+			public var eventDispatcher:IEventDispatcher = null;
+			
+			public function iniit():void
+			{
+				swf_loader.load("assets/StylesSubApp.swf");
+			}
+			
+			protected function loadStylesButton_clickHandler(event:MouseEvent):void
+			{
+				
+				eventDispatcher = localStyleManager.loadStyleDeclarations("assets/testStyles.swf");
+			}
+			
+			
+			protected function unloadStylesButton_clickHandler(event:MouseEvent):void
+			{
+				localStyleManager.unloadStyleDeclarations("assets/testStyles.swf");
+			}
+			
+		]]>
+	</fx:Script>
+	<s:layout>
+		<s:VerticalLayout />
+	</s:layout>
+	<s:Button label="Load Swf" click="iniit()" />
+	<mx:Button label="Load styles" id="loadStylesButton" click="loadStylesButton_clickHandler(event)" />
+	<mx:Button label="Unload styles" id="unloadStylesButton" click="unloadStylesButton_clickHandler(event)" />
+	<s:VGroup id="groupId">
+		<s:VGroup >
+			<s:CheckBox id="checkBox" label="Check Box" />
+			<s:Label text="Label Outside Panel"  />
+		</s:VGroup>
+		<s:HGroup rotation="10">
+			<s:NumericStepper id="numericStepper" stepSize="1" minimum="1" maximum="10" />
+			<s:RichText text="This Text is Rich !!" />
+		</s:HGroup>
+		<s:RichText text="This Text is also Rich !!" />
+		<s:Panel title="" id="appPanel" rotation="-5">
+			<s:layout>
+				<s:VerticalLayout />
+			</s:layout>
+			
+			<s:Button id="gumboButton" label="Gumbo Button"  />
+			<s:Button id="gumboButton2" label="Second Gumbo Button" styleName="myStyle"  />
+			<s:Label text="Spark Label"  />
+			<s:Label text="Spark Label class selector" styleName="classOfStyle"  />
+			<s:DropDownList id="appList"  />
+		</s:Panel>
+		<mx:SWFLoader id="swf_loader"/>
+	</s:VGroup>
+</s:Application>

Added: incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/LoadStylesApp3.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/LoadStylesApp3.mxml?rev=1369978&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/LoadStylesApp3.mxml (added)
+++ incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/LoadStylesApp3.mxml Mon Aug  6 20:22:48 2012
@@ -0,0 +1,174 @@
+<?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.
+
+-->
+<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" 
+			   xmlns:s="library://ns.adobe.com/flex/spark" 
+			   xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="1024" minHeight="768" width="500" height="700" creationComplete="application1_creationCompleteHandler(event)">
+	<fx:Style>
+		@namespace s "library://ns.adobe.com/flex/spark";
+		@namespace mx "library://ns.adobe.com/flex/mx";
+		
+		@font-face{
+			src: url("../../../Assets/Fonts/Open_Sans/OpenSans-Regular.ttf");
+			fontFamily: SparkVera;
+			embedAsCFF: true;
+		}
+		
+		@font-face{
+			src: url("../../../Assets/Fonts/Open_Sans/OpenSans-Bold.ttf");
+			fontWeight: bold;
+			fontFamily: SparkVera;
+			embedAsCFF: true;
+		}
+		
+		@font-face{
+			src: url("../../../Assets/Fonts/Open_Sans/OpenSans-Italic.ttf");
+			fontStyle: italic;
+			fontFamily: SparkVera;
+			embedAsCFF: true;
+		}
+		
+		@font-face{
+			src: url("../../../Assets/Fonts/Open_Sans/OpenSans-BoldItalic.ttf");
+			fontWeight: bold;
+			fontStyle: italic;
+			fontFamily: SparkVera;
+
+			embedAsCFF: true;
+		}
+
+
+		@font-face{
+			src: url("../../../Assets/Fonts/Open_Sans/OpenSans-BoldItalic.ttf");
+			fontWeight: bold;
+			fontStyle: italic;
+			fontFamily: HaloVera;
+
+			embedAsCFF: false;
+		}
+
+		
+		@font-face{
+			src: url("../../../Assets/Fonts/Open_Sans/OpenSans-Regular.ttf");
+			fontFamily: HaloVera;
+			embedAsCFF: false;
+		}
+		
+		@font-face{
+			src: url("../../../Assets/Fonts/Open_Sans/OpenSans-Bold.ttf");
+			fontWeight: bold;
+			fontFamily: HaloVera;
+			embedAsCFF: false;
+		}
+		
+		@font-face{
+			src: url("../../../Assets/Fonts/Open_Sans/OpenSans-Italic.ttf");
+			fontStyle: italic;
+			fontFamily: HaloVera;
+			embedAsCFF: false;
+		}
+		
+		global {
+			chromeColor: #DDAA66;	
+			fontAntiAliasType: "normal";
+			fontFamily: SparkVera;
+			fontLookup: "embeddedCFF";
+		}
+		
+		mx|Button  {
+			fontAntiAliasType: "normal";
+			fontFamily: HaloVera;
+		}
+		
+	</fx:Style>
+	
+	<fx:Script>
+		<![CDATA[
+			import mx.events.FlexEvent;
+			import mx.collections.ArrayList;
+			import mx.events.ModuleEvent;
+			import mx.events.StyleEvent;
+			import mx.controls.Alert;
+			
+			private var arr:Array =
+				[
+					{ label:'Apple', data:10.00},
+					{ label:'Banana', data:15.00 },
+					{ label:'Melon', data:3.50 },
+					{ label:'Kiwi', data:7.65},
+					{ label:'Strawberry',data:12.35 },
+					{ label:'Other', data:00.00}
+				];
+			
+			private var listArr :ArrayList = new ArrayList(arr);
+			
+			protected function application1_creationCompleteHandler(event:FlexEvent):void
+			{
+				appList.dataProvider = listArr;
+				localStyleManager  = StyleManager.getStyleManager(null);
+			}
+			
+			private var localStyleManager:IStyleManager2 = null;
+			
+			public var eventDispatcher:IEventDispatcher = null;
+			
+			protected function loadStylesButton_clickHandler(event:MouseEvent):void
+			{
+				
+				eventDispatcher = localStyleManager.loadStyleDeclarations("assets/testStyles.swf");
+			}
+			
+			
+			protected function unloadStylesButton_clickHandler(event:MouseEvent):void
+			{
+				localStyleManager.unloadStyleDeclarations("assets/testStyles.swf");
+			}
+			
+		]]>
+	</fx:Script>
+	<s:layout>
+		<s:VerticalLayout />
+	</s:layout>
+	
+	<mx:Button label="Load styles" id="loadStylesButton" click="loadStylesButton_clickHandler(event)" />
+	<mx:Button label="Unload styles" id="unloadStylesButton" click="unloadStylesButton_clickHandler(event)" />
+	<s:VGroup id="groupId">
+		<s:VGroup >
+			<s:CheckBox id="checkBox" label="Check Box" />
+			<s:Label text="Label Outside Panel"  />
+		</s:VGroup>
+		<s:HGroup rotation="10">
+			<s:NumericStepper id="numericStepper" stepSize="1" minimum="1" maximum="10" />
+			<s:RichText text="This Text is Rich !!" />
+		</s:HGroup>
+		<s:RichText text="This Text is also Rich !!" />
+		<s:Panel title="" id="appPanel" rotation="-5">
+			<s:layout>
+				<s:VerticalLayout />
+			</s:layout>
+			
+			<s:Button id="gumboButton" label="Gumbo Button"  />
+			<s:Button id="gumboButton2" label="Second Gumbo Button" styleName="myStyle"  />
+			<s:Label text="Spark Label"  />
+			<s:Label text="Spark Label class selector" styleName="classOfStyle"  />
+			<s:DropDownList id="appList"  />
+		</s:Panel>
+		<mx:SWFLoader id="swf_loader" source="@Embed(source='assets/StylesSubApp.swf')" width="100%" height="100%" />
+	</s:VGroup>
+</s:Application>

Added: incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/MP_App.compile
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/MP_App.compile?rev=1369978&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/MP_App.compile (added)
+++ incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/MP_App.compile Mon Aug  6 20:22:48 2012
@@ -0,0 +1 @@
+-includes=mx.managers.systemClasses.MarshallingSupport
\ No newline at end of file

Added: incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/MP_App.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/MP_App.mxml?rev=1369978&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/MP_App.mxml (added)
+++ incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/MP_App.mxml Mon Aug  6 20:22:48 2012
@@ -0,0 +1,170 @@
+<?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.
+
+-->
+<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" 
+			   xmlns:s="library://ns.adobe.com/flex/spark" 
+			   xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="1024" minHeight="768" creationComplete="application1_creationCompleteHandler(event)">
+	<fx:Style>
+		@namespace s "library://ns.adobe.com/flex/spark";
+		@namespace mx "library://ns.adobe.com/flex/mx";
+		
+		@font-face{
+			src: url("../../../Assets/Fonts/Open_Sans/OpenSans-Regular.ttf");
+			fontFamily: SparkVera;
+			embedAsCFF: true;
+		}
+		
+		@font-face{
+			src: url("../../../Assets/Fonts/Open_Sans/OpenSans-Bold.ttf");
+			fontWeight: bold;
+			fontFamily: SparkVera;
+			embedAsCFF: true;
+		}
+		
+		@font-face{
+			src: url("../../../Assets/Fonts/Open_Sans/OpenSans-Italic.ttf");
+			fontStyle: italic;
+			fontFamily: SparkVera;
+			embedAsCFF: true;
+		}
+
+		@font-face{
+			src: url("../../../Assets/Fonts/Open_Sans/OpenSans-BoldItalic.ttf");
+			fontWeight: bold;
+			fontStyle: italic;
+			fontFamily: SparkVera;
+
+			embedAsCFF: true;
+		}
+
+
+		
+		global {
+			chromeColor: #DDAA66;	
+			fontAntiAliasType: "normal";
+			fontFamily: SparkVera;
+			fontLookup: "embeddedCFF";
+		}
+		
+		
+		s|DropDownList
+		{
+			borderColor: #FF0000;
+			fontSize: 16;
+		}
+		
+		s|Button#gumboButton
+		{
+			chromeColor: #AAFFAA;
+			fontSize: 16;
+		}
+		
+		s|Panel s|Label
+		{
+			fontSize: 16;
+		}
+		
+		s|Button.myStyle
+		{
+			chromeColor: #FFFFAA;
+			fontSize: 14;
+		}
+		
+		s|HGroup s|RichText
+		{
+			chromeColor: #BBAAAA;
+			fontSize: 14;
+		}
+		
+		.classOfStyle
+		{
+			color: #0FFFFA;	
+			fontSize: 20;
+		}
+	</fx:Style>
+	
+	<fx:Script>
+		<![CDATA[
+			import mx.events.FlexEvent;
+			import mx.collections.ArrayList;
+			import mx.events.ModuleEvent;
+			import mx.events.StyleEvent;
+			import mx.controls.Alert;
+			
+			private var arr:Array =
+				[
+					{ label:'Apple', data:10.00},
+					{ label:'Banana', data:15.00 },
+					{ label:'Melon', data:3.50 },
+					{ label:'Kiwi', data:7.65},
+					{ label:'Strawberry',data:12.35 },
+					{ label:'Other', data:00.00}
+				];
+			
+			private var listArr :ArrayList = new ArrayList(arr);
+			
+			protected function application1_creationCompleteHandler(event:FlexEvent):void
+			{
+				appList.dataProvider = listArr;
+			}
+			
+			
+			public function iniit():void
+			{
+				swf_loader.load("assets/MP_SubApp.swf");
+			}
+			
+			public function unload():void
+			{
+				swf_loader.unloadAndStop();
+			}
+		]]>
+	</fx:Script>
+	<s:layout>
+		<s:VerticalLayout />
+	</s:layout>
+	<s:Button label="Load Swf" click="iniit()" />
+	<s:Button label="UnLoad Swf" click="unload()" />
+	
+	<s:VGroup id="groupId">
+		<s:VGroup >
+			<s:CheckBox id="checkBox" label="Check Box" />
+			<s:Label text="Label Outside Panel"  />
+		</s:VGroup>
+		<s:HGroup rotation="10">
+			<s:NumericStepper id="numericStepper" stepSize="1" minimum="1" maximum="10" />
+			<s:RichText text="This Text is Rich !!" />
+		</s:HGroup>
+		<s:RichText text="This Text is also Rich !!" />
+		<s:Panel title="Gumbo Panel" id="appPanel" rotation="-5">
+			<s:layout>
+				<s:VerticalLayout />
+			</s:layout>
+			
+			<s:Button id="gumboButton" label="Gumbo Button"  />
+			<s:Button id="gumboButton2" label="Second Gumbo Button" styleName="myStyle"  />
+			<s:Label text="Spark Label"  />
+			<s:Label text="Spark Label class selector" styleName="classOfStyle"  />
+			<s:DropDownList id="appList"  />
+		</s:Panel>
+		<mx:SWFLoader id="swf_loader" />
+	</s:VGroup>
+	
+	
+</s:Application>

Added: incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/MP_App2.compile
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/MP_App2.compile?rev=1369978&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/MP_App2.compile (added)
+++ incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/MP_App2.compile Mon Aug  6 20:22:48 2012
@@ -0,0 +1 @@
+-includes=mx.managers.systemClasses.MarshallingSupport
\ No newline at end of file



Mime
View raw message