incubator-flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From p...@apache.org
Subject svn commit: r1369978 [3/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/SWFs/MP_App2.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/MP_App2.mxml?rev=1369978&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/MP_App2.mxml (added)
+++ incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/MP_App2.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;
+		}
+
+
+		
+		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;
+				
+				if(parameters != null)
+				{
+					for (var i:String in parameters) {
+						if(i == "port") {
+							portNumber = Number(parameters[i]);	
+						}
+					}
+				}	
+			}
+			
+			public var portNumber :Number=80;
+			public function iniit():void
+			{
+				swf_loader.load("http://localhost:"+ portNumber + "/PerModuleStyles/SWFs/assets/MP_SubApp_Untrusted.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/MergedCSSDeclarationApp.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/MergedCSSDeclarationApp.mxml?rev=1369978&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/MergedCSSDeclarationApp.mxml (added)
+++ incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/MergedCSSDeclarationApp.mxml Mon Aug  6 20:22:48 2012
@@ -0,0 +1,188 @@
+<?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/ModifyCSSDeclarationApp.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/ModifyCSSDeclarationApp.mxml?rev=1369978&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/ModifyCSSDeclarationApp.mxml (added)
+++ incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/ModifyCSSDeclarationApp.mxml Mon Aug  6 20:22:48 2012
@@ -0,0 +1,148 @@
+<?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 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;
+			}
+			
+			
+			public function iniit():void
+			{
+				mod_loader.url = "assets/ModifyCSSDeclarationModule.swf";
+			}
+			
+			public function unload():void
+			{
+				mod_loader.unloadModule();
+				mod_loader.url = "";
+			}
+		]]>
+	</fx:Script>
+	<s:layout>
+		<s:VerticalLayout />
+	</s:layout>
+	<s:HGroup id="hgroupContainer" paddingLeft="5">
+			<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/ModifyCSSDeclarationApp2.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/ModifyCSSDeclarationApp2.mxml?rev=1369978&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/ModifyCSSDeclarationApp2.mxml (added)
+++ incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/ModifyCSSDeclarationApp2.mxml Mon Aug  6 20:22:48 2012
@@ -0,0 +1,149 @@
+<?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 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;
+			}
+			
+			
+			public function iniit():void
+			{
+				mod_loader.url = "assets/ModifyCSSDeclarationModule.swf";
+			}
+			
+			public function unload():void
+			{
+				mod_loader.unloadModule();
+				mod_loader.url = "";
+			}
+		]]>
+	</fx:Script>
+	<s:layout>
+		<s:VerticalLayout />
+	</s:layout>
+	<s:HGroup id="hgroupContainer" paddingLeft="5">
+			<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/ModuleManagerApp.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/ModuleManagerApp.mxml?rev=1369978&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/ModuleManagerApp.mxml (added)
+++ incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/ModuleManagerApp.mxml Mon Aug  6 20:22:48 2012
@@ -0,0 +1,120 @@
+<?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-Italic.ttf");
+			fontStyle: italic;
+			fontFamily: HaloVera;
+			embedAsCFF: false;
+		}
+
+
+		@font-face{
+			src: url("../../../Assets/Fonts/Open_Sans/OpenSans-BoldItalic.ttf");
+			fontWeight: bold;
+			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 mx.events.ModuleEvent;
+			
+			
+			import mx.modules.ModuleManager;
+			import mx.modules.IModuleInfo;
+			import mx.core.UIComponent;
+			import flash.events.EventDispatcher;
+			
+			private var moduleInfo: IModuleInfo;
+			
+			private var obj:Object;
+			
+			public function iniit():void 
+			{		
+				moduleInfo = ModuleManager.getModule('assets/ModuleApp.swf');
+				moduleInfo.addEventListener(ModuleEvent.READY,onReady, false, 0, true) 
+				
+				moduleInfo.load(null,null,null,moduleContainer.moduleFactory);
+			}
+			
+			private function onReady(event:ModuleEvent):void  {
+			    obj = moduleInfo.factory.create() as UIComponent;
+			    moduleContainer.addElement(obj as UIComponent);
+				var temp:UIComponent = moduleContainer.getElementAt(0) as UIComponent;
+				cb = temp.getChildByName('cb') as UIComponent;
+				cbOne = temp.getChildByName('cbOne') as UIComponent;
+				waitForEventsDispatcher.dispatchEvent(new Event('waitForEventsFinished'));
+			} 
+			
+			public var waitForEventsDispatcher:EventDispatcher = new EventDispatcher();
+
+			public var cb:UIComponent;
+			public var cbOne:UIComponent;
+			
+			
+		]]>
+	</fx:Script>
+	<s:layout>
+		<s:VerticalLayout/>
+	</s:layout>
+	<s:VGroup id="moduleContainer" />
+<s:Button label="Load Module" click="iniit()" />
+</s:Application>
\ No newline at end of file

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

Added: incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/ModuleManagerApp_NoParentFactory.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/ModuleManagerApp_NoParentFactory.mxml?rev=1369978&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/ModuleManagerApp_NoParentFactory.mxml (added)
+++ incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/ModuleManagerApp_NoParentFactory.mxml Mon Aug  6 20:22:48 2012
@@ -0,0 +1,120 @@
+<?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-Italic.ttf");
+			fontStyle: italic;
+			fontFamily: HaloVera;
+			embedAsCFF: false;
+		}
+
+
+
+		@font-face{
+			src: url("../../../Assets/Fonts/Open_Sans/OpenSans-BoldItalic.ttf");
+			fontWeight: bold;
+			fontStyle: italic;
+			fontFamily: HaloVera;
+
+			embedAsCFF: false;
+		}
+
+		mx|ComboBox {
+			fontAntiAliasType: "normal";
+			fontFamily: HaloVera;
+			color: red;
+			fontSize: 15;
+			openDuration: 3000;
+		}
+		
+		.myComboBox {
+			fontAntiAliasType: "normal";
+			fontFamily: HaloVera;
+			color: #00FF00;
+			fontSize: 10;
+			openDuration: 1500;
+		}
+	</fx:Style>
+	
+	<fx:Script>
+		<![CDATA[
+			
+			import mx.events.ModuleEvent;
+			
+			
+			import mx.modules.ModuleManager;
+			import mx.modules.IModuleInfo;
+			import mx.core.UIComponent;
+			import flash.events.EventDispatcher;
+			
+			private var moduleInfo: IModuleInfo;
+			
+			private var obj:Object;
+			
+			public function iniit():void 
+			{		
+				moduleInfo = ModuleManager.getModule('assets/ModuleApp.swf');
+				moduleInfo.addEventListener(ModuleEvent.READY,onReady, false, 0, true) 
+				
+				moduleInfo.load();
+			}
+			
+			private function onReady(event:ModuleEvent):void  {
+			    obj = moduleInfo.factory.create() as UIComponent;
+			    moduleContainer.addElement(obj as UIComponent);
+				var temp:UIComponent = moduleContainer.getElementAt(0) as UIComponent;
+				cb = temp.getChildByName('cb') as UIComponent;
+				cbOne = temp.getChildByName('cbOne') as UIComponent;
+				waitForEventsDispatcher.dispatchEvent(new Event('waitForEventsFinished'));
+			} 
+			
+			public var waitForEventsDispatcher:EventDispatcher = new EventDispatcher();
+
+			public var cb:UIComponent;
+			public	var cbOne:UIComponent;
+			
+			
+		]]>
+	</fx:Script>
+	<s:layout>
+		<s:VerticalLayout/>
+	</s:layout>
+	<s:VGroup id="moduleContainer" />
+<s:Button label="Load Module" click="iniit()" />
+</s:Application>
\ No newline at end of file

Added: incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/PerModuleStyleTest_basic1.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/PerModuleStyleTest_basic1.mxml?rev=1369978&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/PerModuleStyleTest_basic1.mxml (added)
+++ incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/PerModuleStyleTest_basic1.mxml Mon Aug  6 20:22:48 2012
@@ -0,0 +1,214 @@
+<?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.
+
+-->
+<!-- basic swf for subModule tests, module is loaded by ModuleLoader -->
+<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="initApp()"
+	>
+ <!-- 
+ <fx:Style source="../../../Assets/Fonts/myStyles.css" />
+ <fx:Style>
+ 	@namespace mx "library://ns.adobe.com/flex/mx/";
+	@namespace s "library://ns.adobe.com/flex/spark/";
+
+ 		
+ 
+		global {
+			fontAntiAliasType: "normal";
+			fontFamily: MyVeraSpark;
+			fontLookup: "embeddedCFF";
+		} 
+	
+</fx:Style>
+-->
+	<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-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;
+		}
+		mx|Label,
+		mx|DataGrid
+		{
+			fontAntiAliasType: "normal";
+			fontFamily: HaloVera;
+		}
+		mx|ComboBox  {
+			fontAntiAliasType: "normal";
+			fontFamily: HaloVera;
+		}
+		
+		.myComboBox {
+			fontAntiAliasType: "normal";
+			fontFamily: HaloVera;
+			color: #00FF00;
+			fontSize: 10;
+			openDuration: 1500;
+		}
+		global {
+			fontAntiAliasType: "normal";
+			fontFamily: SparkVera;
+			fontLookup: "embeddedCFF";
+		}
+		
+	</fx:Style>
+
+	<s:layout> <s:VerticalLayout/> </s:layout>
+	
+	<fx:Script>
+		<![CDATA[
+			import mx.events.ModuleEvent;	
+			import mx.events.FlexEvent;	
+			import mx.controls.Alert;	
+			import mx.events.ModuleEvent;
+			import mx.modules.Module;
+			import mx.collections.ArrayList;
+			import mx.managers.PopUpManager;
+			PopUpManager;
+			private var moduleErrorMsg:String="";
+			private function errorModuleHandler(e:ModuleEvent):void
+			{
+				e.currentTarget.removeEventListener(ModuleEvent.ERROR,errorModuleHandler);
+				moduleErrorMsg=e.errorText;
+				trace("###error:"+e.errorText);
+				Alert.show(e.errorText);
+				
+				
+				
+			}
+					
+			private var arr:Array = [ { moduleName: "assets/AlertModule.swf"},
+				{ moduleName: "assets/ModuleAppOne.swf"},
+				{ moduleName: "assets/ModuleAppTwo.swf"},
+				{ moduleName: "assets/ModuleAppThree.swf"},
+				{ moduleName: "assets/ModuleAppFour.swf"},
+				{ moduleName: "assets/ModuleAppFive.swf"},
+				{ moduleName: "assets/CreatePopUpModule.swf"}
+			];
+
+			private function initApp():void
+			{
+				dg.dataProvider = new ArrayList(arr);
+				setModuleLoaderListeners();
+
+			}
+			public function setModuleLoaderListeners():void
+			{
+				mod_loader.addEventListener(ModuleEvent.READY,handleModuleLoaded);
+				mod_loader.addEventListener(ModuleEvent.ERROR,errorModuleHandler);
+				mod_loader.addEventListener(ModuleEvent.UNLOAD,removeModuleLoaded);
+
+			}
+			public function setModuleLoaderListeners2(ml:ModuleLoader):void
+			{
+				ml.addEventListener(ModuleEvent.READY,handleModuleLoaded);
+				ml.addEventListener(ModuleEvent.ERROR,errorModuleHandler);
+				ml.addEventListener(ModuleEvent.UNLOAD,removeModuleLoaded);
+			
+			}
+			public function handleModuleLoaded(e:ModuleEvent):void
+			{
+		    		e.currentTarget.removeEventListener(e.type, handleModuleLoaded);
+		    		dispatchEvent(new FlexEvent("moduleLoaded"));
+		    		trace("handleModuleLoaded is called ");
+			}
+			
+			public function removeModuleLoaded(e:ModuleEvent):void
+			{
+				e.currentTarget.removeEventListener(ModuleEvent.UNLOAD, removeModuleLoaded);
+				dispatchEvent(new FlexEvent("moduleRemoved"));
+			}
+			private function loadModule(ml:ModuleLoader, moduleURL:String):void
+			{
+				if (ml.url==null)
+					ml.url = moduleURL;
+				else ml.loadModule();
+			}
+
+			public function loadAModule():void
+			{
+				if (mod_loader.url==null)
+					mod_loader.url =dg.selectedItem.moduleName ;
+				else mod_loader.loadModule();
+			}
+			public function unloadModule(ml:ModuleLoader):void
+			{	
+				ml.unloadModule();
+				ml.url=null;
+
+			}
+			public function resetModuleLoader():void
+			{
+				
+				setModuleLoaderListeners();
+			}
+		
+			
+			
+		]]>
+	</fx:Script>	
+		
+	<mx:DataGrid id="dg" />
+	<mx:ModuleLoader id="mod_loader"/>
+	<mx:ModuleLoader id="mod_loader2"    />
+	<s:Button label="Load Module" click="loadAModule()" />
+	<s:Button id="btn1" label="load Module1" click="loadModule(mod_loader,dg.selectedItem.moduleName)" />
+	<s:Button id="btn2" label="unload Module1" click="unloadModule(mod_loader);unloadModule(mod_loader2);" />
+
+</s:Application>

Added: incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/PerModuleStyleTest_basic2.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/PerModuleStyleTest_basic2.mxml?rev=1369978&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/PerModuleStyleTest_basic2.mxml (added)
+++ incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/PerModuleStyleTest_basic2.mxml Mon Aug  6 20:22:48 2012
@@ -0,0 +1,204 @@
+<?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.
+
+-->
+<!-- basic swf for subModule tests, module is loaded by ModuleLoader -->
+<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="initApp()"
+	>
+ <!-- 
+ <fx:Style source="../../../Assets/Fonts/myStyles.css" />
+ <fx:Style>
+ 	@namespace mx "library://ns.adobe.com/flex/mx/";
+	@namespace s "library://ns.adobe.com/flex/spark/";
+
+ 		
+ 
+		global {
+			fontAntiAliasType: "normal";
+			fontFamily: MyVeraSpark;
+			fontLookup: "embeddedCFF";
+		} 
+	
+</fx:Style>
+-->
+	<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-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;
+		}
+		
+		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>
+
+	<s:layout> <s:VerticalLayout/> </s:layout>
+	
+	<fx:Script>
+		<![CDATA[
+			import mx.events.ModuleEvent;	
+			import mx.events.FlexEvent;	
+			import mx.controls.Alert;	
+			import mx.events.ModuleEvent;
+			import mx.modules.Module;
+			import mx.collections.ArrayList;
+			import mx.managers.PopUpManager;
+			PopUpManager;
+			private var moduleErrorMsg:String="";
+			private function errorModuleHandler(e:ModuleEvent):void
+			{
+				e.currentTarget.removeEventListener(ModuleEvent.ERROR,errorModuleHandler);
+				moduleErrorMsg=e.errorText;
+				Alert.show(e.errorText);
+				
+				
+			}
+					
+			private var arr:Array = [ 
+				{ moduleName: "assets/ModuleApp.swf"},
+				{ moduleName: "assets/SwfLoaderApp.swf"}
+			];
+
+			private function initApp():void
+			{
+				dg.dataProvider = new ArrayList(arr);
+				setModuleLoaderListeners();
+
+			}
+			public function setModuleLoaderListeners():void
+			{
+				mod_loader.addEventListener(ModuleEvent.READY,handleModuleLoaded);
+				mod_loader.addEventListener(ModuleEvent.ERROR,errorModuleHandler);
+				mod_loader.addEventListener(ModuleEvent.UNLOAD,removeModuleLoaded);
+
+			}
+			public function setModuleLoaderListeners2(ml:ModuleLoader):void
+			{
+				ml.addEventListener(ModuleEvent.READY,handleModuleLoaded);
+				ml.addEventListener(ModuleEvent.ERROR,errorModuleHandler);
+				ml.addEventListener(ModuleEvent.UNLOAD,removeModuleLoaded);
+			
+			}
+			public function handleModuleLoaded(e:ModuleEvent):void
+			{
+		    		e.currentTarget.removeEventListener(e.type, handleModuleLoaded);
+		    		dispatchEvent(new FlexEvent("moduleLoaded"));
+		    		trace("handleModuleLoaded is called ");
+			}
+			
+			public function removeModuleLoaded(e:ModuleEvent):void
+			{
+				e.currentTarget.removeEventListener(ModuleEvent.UNLOAD, removeModuleLoaded);
+				dispatchEvent(new FlexEvent("moduleRemoved"));
+			}
+			private function loadModule(ml:ModuleLoader, moduleURL:String):void
+			{
+				if (ml.url==null)
+					ml.url = moduleURL;
+				else ml.loadModule();
+			}
+
+			public function loadAModule():void
+			{
+				if (mod_loader.url==null)
+					mod_loader.url =dg.selectedItem.moduleName ;
+				else mod_loader.loadModule();
+			}
+			public function unloadModule(ml:ModuleLoader):void
+			{	
+				ml.unloadModule();
+				ml.url=null;
+
+			}
+			
+			public function resetModuleLoader():void
+			{
+				
+				setModuleLoaderListeners();
+			}
+		
+			
+			
+		]]>
+	</fx:Script>	
+		
+	<mx:DataGrid id="dg" />
+	<mx:ModuleLoader id="mod_loader"/>
+	<mx:SWFLoader id="swf_loader"   />
+	<s:Button label="Load Module" click="loadAModule()" />
+	<s:Button id="btn1" label="load Module1" click="loadModule(mod_loader,dg.selectedItem.moduleName)" />
+	<s:Button id="btn2" label="unload Module1" click="unloadModule(mod_loader);" />
+
+</s:Application>

Added: incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/PopUpManagerApp.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/PopUpManagerApp.mxml?rev=1369978&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/PopUpManagerApp.mxml (added)
+++ incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/PopUpManagerApp.mxml Mon Aug  6 20:22:48 2012
@@ -0,0 +1,91 @@
+<?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: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;
+		}
+		
+		
+		global {
+			fontAntiAliasType: "normal";
+			fontFamily: SparkVera;
+			fontLookup: "embeddedCFF";
+		}
+		
+		s|TitleWindow
+		{
+			chromeColor: #FF0000;
+		}
+		
+	</fx:Style>
+	
+	<fx:Script>
+		<![CDATA[
+			import mx.managers.PopUpManager;
+			
+			private var placeHolder: PopUpManager;
+			
+			
+			import spark.components.TitleWindow;
+			
+			private var placeHolder2: TitleWindow;
+			
+			public function iniit():void
+			{
+				mod_loader.url = "";
+				mod_loader.url = "assets/PopUpModule.swf";
+			}
+			
+			public function unload():void
+			{
+				mod_loader.unloadModule();
+			}
+		]]>
+	</fx:Script>
+	<s:layout>
+		<s:VerticalLayout />
+	</s:layout>
+	
+	<mx:ModuleLoader id="mod_loader"/>
+	<s:Button label="Load Module" click="iniit()" />
+	<s:Button label="UnLoad Module" click="unload()" />
+</s:Application>

Added: incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/RTETest.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/RTETest.mxml?rev=1369978&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/RTETest.mxml (added)
+++ incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/RTETest.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" 
+			   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 unloadModuleBtn1_clickHandler(event:MouseEvent):void
+			{
+				mod_loader.unloadModule();
+				mod_loader.url = "";
+			}
+			
+			protected function loadModuleBtn2_clickHandler(event:MouseEvent):void
+			{
+				mod_loader2.url = "assets/StylesModule.swf";
+			}
+			
+			protected function unloadModuleBtn2_clickHandler(event:MouseEvent):void
+			{
+				mod_loader2.unloadModule();
+				mod_loader2.url = "";
+			}
+
+
+			protected function loadSwfBtn1_clickHandler(event:MouseEvent):void
+			{
+				swf_loader.load("assets/SparkSubApp.swf");
+			}
+
+
+			protected function unloadSwfBtn1_clickHandler(event:MouseEvent):void
+			{
+				swf_loader.unloadAndStop();
+			}
+			
+			protected function loadSwfBtn2_clickHandler(event:MouseEvent):void
+			{
+				swf_loader2.load("assets/StylesSubApp.swf");
+			}
+			
+			
+			protected function unloadSwfBtn2_clickHandler(event:MouseEvent):void
+			{
+				swf_loader2.unloadAndStop();
+			}
+
+		]]>
+	</fx:Script>
+	<s:layout>
+		<s:VerticalLayout />
+	</s:layout>
+	
+	<s:Button label="Load Module 1" id="loadModuleBtn1" click="loadModuleBtn1_clickHandler(event)" />
+	<s:Button label="UnLoad Module 1" id="unloadModuleBtn1" click="unloadModuleBtn1_clickHandler(event)" />
+	
+	<s:Button label="Load Swf 1" id="loadSwfBtn1" click="loadSwfBtn1_clickHandler(event)" />
+	<s:Button label="UnLoad Swf 1" id="unloadSwfBtn1" click="unloadSwfBtn1_clickHandler(event)" />
+	
+	<s:Button label="Load Module 2" id="loadModuleBtn2" click="loadModuleBtn2_clickHandler(event)" />
+	<s:Button label="UnLoad Module 2" id="unloadModuleBtn2" click="unloadModuleBtn2_clickHandler(event)" />
+	
+	<s:Button label="Load Swf 2" id="loadSwfBtn2" click="loadSwfBtn2_clickHandler(event)" />
+	<s:Button label="UnLoad Swf 2" id="unloadSwfBtn2" click="unloadSwfBtn2_clickHandler(event)" />
+	<s:VGroup id="groupId">
+		<mx:ModuleLoader id="mod_loader"/>
+		<mx:SWFLoader id="swf_loader"/>
+		<mx:ModuleLoader id="mod_loader2"/>		
+		<mx:SWFLoader id="swf_loader2"/>
+	</s:VGroup>
+	
+</s:Application>

Added: incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/RichEditableTextApp.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/RichEditableTextApp.mxml?rev=1369978&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/RichEditableTextApp.mxml (added)
+++ incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/RichEditableTextApp.mxml Mon Aug  6 20:22:48 2012
@@ -0,0 +1,38 @@
+<?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">
+	
+	<s:layout>
+		<s:VerticalLayout />
+	</s:layout>
+	
+	<s:Button label="Load Module 1" id="btn1" click=" module1Loader.loadModule( 'assets/RichEditableTextModule1.swf' ) " />
+	
+	<mx:ModuleLoader id="module1Loader" />
+	
+	<s:Button label="Load Module 2" id="btn2" click=" module2Loader.loadModule( 'assets/RichEditableTextModule2.swf' ) " />
+	
+	<mx:ModuleLoader id="module2Loader" />
+	
+</s:Application>

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

Added: incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/SetStyleProblem.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/SetStyleProblem.mxml?rev=1369978&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/SetStyleProblem.mxml (added)
+++ incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/SetStyleProblem.mxml Mon Aug  6 20:22:48 2012
@@ -0,0 +1,48 @@
+<?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="955" minHeight="600" creationComplete="application1_initializeHandler(event)">
+	<fx:Script>
+		<![CDATA[
+			import mx.containers.Canvas;
+			import mx.events.FlexEvent;
+			
+			import spark.components.Group;
+			
+			import test.SkinnableTest;
+			import test.SkinnableTestSkin;
+
+			protected function application1_initializeHandler(event:FlexEvent):void
+			{
+				var container:Group = new Group();
+				var skinnableTest:SkinnableTest = new SkinnableTest();
+				skinnableTest.setStyle("skinClass", SkinnableTestSkin);
+				container.addElement(skinnableTest);
+				addElement(container);
+			}
+		]]>
+	</fx:Script>
+	<s:layout>
+		<s:VerticalLayout/>
+	</s:layout>		
+	<s:Button id="buttonId" label="Test1" />
+</s:Application>

Added: incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/SetStyleProblemInSubApp.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/SetStyleProblemInSubApp.mxml?rev=1369978&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/SetStyleProblemInSubApp.mxml (added)
+++ incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/SetStyleProblemInSubApp.mxml Mon Aug  6 20:22:48 2012
@@ -0,0 +1,36 @@
+<?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[
+			public function iniit():void
+			{
+				swf_loader.load("assets/SetStyleProblemSubApp.swf");
+			}
+		]]>
+	</fx:Script>
+	<s:layout>
+		<s:VerticalLayout />
+	</s:layout>
+	<s:Button label="Load Swf" click="iniit()" />
+	<mx:SWFLoader id="swf_loader"/>
+</s:Application>

Added: incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/SkinTest.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/SkinTest.mxml?rev=1369978&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/SkinTest.mxml (added)
+++ incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/SkinTest.mxml Mon Aug  6 20:22:48 2012
@@ -0,0 +1,149 @@
+<?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" creationComplete="application1_creationCompleteHandler(event)"
+			   xmlns:s="library://ns.adobe.com/flex/spark" width="700" height="600"
+			   xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600">
+	
+	<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 {
+			fontAntiAliasType: "normal";
+			fontFamily: SparkVera;
+			fontLookup: "embeddedCFF";
+		}
+
+	</fx:Style>
+	<fx:Script>
+		<![CDATA[
+			import mx.collections.ArrayList;
+			import mx.controls.Alert;
+			import mx.events.FlexEvent;
+			
+			public var eventDispatcher:IEventDispatcher = null;
+			
+			
+			public function loadStyles():void
+			{
+				eventDispatcher  = styleManager.loadStyleDeclarations("assets/testSheet.swf");
+			}
+			
+			public function unloadStyles():void
+			{
+				styleManager.unloadStyleDeclarations("assets/testSheet.swf");
+			}
+			
+			public function loadModule():void
+			{
+				mod_loader.url="assets/SkinModule.swf";
+			}
+			
+			public function unloadModule():void
+			{
+				mod_loader.url="";
+				mod_loader.unloadModule();
+			}
+			
+			public function loadModule2():void
+			{
+				mod_loader2.url="assets/SkinModule2.swf";
+			}
+			
+			public function unloadModule2():void
+			{
+				mod_loader2.url="";
+				mod_loader2.unloadModule();
+			}
+			
+
+			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;
+			}
+
+		]]>
+	</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:List id="sparkList" />
+		
+	</s:Panel>
+	<mx:ModuleLoader id="mod_loader" />
+	<mx:ModuleLoader id="mod_loader2" />
+	<s:VGroup>
+		<s:Button click="loadStyles()" id="btn1" label="load fonts using css"/>
+		<s:Button click="unloadStyles()" id="btn2"  label="unload css fonts"/>
+		
+		<s:Button click="loadModule()" id="btn3" label="load module"/>
+		<s:Button click="unloadModule()" id="btn4" label="unload module"/>
+		<s:Button click="loadModule2()" id="btn5" label="load module2"/>
+		<s:Button click="unloadModule2()" id="btn6" label="unload module2"/>
+	</s:VGroup>
+	
+</s:Application>

Added: incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/SparkApp.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/SparkApp.mxml?rev=1369978&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/SparkApp.mxml (added)
+++ incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/SparkApp.mxml Mon Aug  6 20:22:48 2012
@@ -0,0 +1,122 @@
+<?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: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;
+			focusColor: #FFFF00;
+			
+		}
+	</fx:Style>
+	
+	<fx:Script>
+		<![CDATA[
+			import mx.events.FlexEvent;
+			import mx.events.ModuleEvent;
+			
+			public function iniit():void
+			{
+				mod_loader.url = "assets/HaloModule.swf";
+			}
+			
+		]]>
+	</fx:Script>
+	<s:layout>
+		<s:VerticalLayout />
+	</s:layout>
+	<s:VGroup id="groupId">
+		<mx:Button label="MX Button in spark theme app" id="mxBtn" />
+	</s:VGroup>
+	<mx:ModuleLoader id="mod_loader"/>
+	<s:Button label="Load Module" click="iniit()" />
+</s:Application>

Added: incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/StyleDeclarationTestApp.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/StyleDeclarationTestApp.mxml?rev=1369978&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/StyleDeclarationTestApp.mxml (added)
+++ incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/StyleDeclarationTestApp.mxml Mon Aug  6 20:22:48 2012
@@ -0,0 +1,140 @@
+<?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 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;
+			}
+			
+			
+			public function iniit():void
+			{
+				mod_loader.url = "assets/StyleDeclarationTestModule.swf";
+			}
+		]]>
+	</fx:Script>
+	<s:layout>
+		<s:VerticalLayout />
+	</s:layout>
+
+			<s:List id="appList"  />
+		
+	<mx:ModuleLoader id="mod_loader"/>
+	<s:Button label="Load Module" click="iniit()" />
+</s:Application>

Added: incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/StylesApp.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/StylesApp.mxml?rev=1369978&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/StylesApp.mxml (added)
+++ incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/StylesApp.mxml Mon Aug  6 20:22:48 2012
@@ -0,0 +1,193 @@
+<?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
+		{
+			fontStyle: italic;
+		}
+		
+		s|Button#gumboButton
+		{
+			fontStyle: italic;
+		}
+		
+		s|Label
+		{
+			fontStyle: italic;
+		}
+		s|Panel{
+			fontStyle: italic;
+			dropShadowVisible:false;
+		}
+		
+		s|Button.myStyle
+		{
+			fontStyle: italic;
+		}
+		
+		s|HGroup s|RichText
+		{
+			fontStyle: italic;
+		}
+		
+		.classOfStyle
+		{
+			fontStyle: italic;
+		}
+		
+	</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
+			{
+				mod_loader.url = "assets/LoadStylesModule.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="" 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()" />
+	
+</s:Application>

Added: incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/StylesApp2.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/StylesApp2.mxml?rev=1369978&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/StylesApp2.mxml (added)
+++ incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/StylesApp2.mxml Mon Aug  6 20:22:48 2012
@@ -0,0 +1,187 @@
+<?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
+		{
+			fontStyle: italic;
+		}
+		
+		s|Button#gumboButton
+		{
+			fontStyle: italic;
+		}
+		
+		s|Panel s|Label
+		{
+			fontStyle: italic;
+		}
+		
+		s|Button.myStyle
+		{
+			fontStyle: italic;
+		}
+		
+		s|HGroup s|RichText
+		{
+			fontStyle: italic;
+		}
+		
+		.classOfStyle
+		{
+			fontStyle: italic;
+		}
+		
+	</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/LoadStylesSubApp.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="" 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:Button label="Load Swf" click="iniit()" />
+</s:Application>

Added: incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/SwfLoaderTest.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/SwfLoaderTest.mxml?rev=1369978&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/SwfLoaderTest.mxml (added)
+++ incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/SwfLoaderTest.mxml Mon Aug  6 20:22:48 2012
@@ -0,0 +1,11 @@
+<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">
+   <s:layout>
+       <s:VerticalLayout />
+   </s:layout>
+   
+   <mx:SWFLoader id="swfloader1" />
+    <mx:Button label="source 1" click="swfloader1.source='assets/SparkAlphaMain.swf'" id="btn1"/>
+    
+    <mx:Button label="source 2" click="swfloader1.source='assets/SparkImageMain.swf'" id="btn2"/>
+</s:Application>
\ No newline at end of file

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

Added: incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/ToolTipApp.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/ToolTipApp.mxml?rev=1369978&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/ToolTipApp.mxml (added)
+++ incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/ToolTipApp.mxml Mon Aug  6 20:22:48 2012
@@ -0,0 +1,40 @@
+<?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" creationComplete="loadApp()"
+xmlns:s="library://ns.adobe.com/flex/spark" height="400" width="500"
+xmlns:mx="library://ns.adobe.com/flex/mx">
+	<fx:Script>
+	<![CDATA[
+		
+		public function loadApp():void
+		{
+			swf_Loader.load("assets/ToolTipSubApp.swf");
+		}
+	
+	
+	]]>
+	</fx:Script>
+	<s:layout>
+		<s:VerticalLayout />
+	</s:layout>
+	
+	<mx:SWFLoader id="swf_Loader" /> 
+	
+</s:Application> 
\ No newline at end of file

Added: incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/ViewStackApp.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/ViewStackApp.mxml?rev=1369978&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/ViewStackApp.mxml (added)
+++ incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/ViewStackApp.mxml Mon Aug  6 20:22:48 2012
@@ -0,0 +1,122 @@
+<?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: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-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|DropDownList
+		{
+			chromeColor: #FFAA00;
+		}
+			
+		s|List
+		{
+			color: #0000FF;
+			fontSize: 20;
+		}
+		
+		s|RichText
+		{
+			color: #FF0000;
+		}
+			
+	</fx:Style>
+	
+	<fx:Script>
+		<![CDATA[
+			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}
+				];
+			
+			[Bindable]
+			private var listArr :ArrayList = new ArrayList(arr);
+			
+			
+			public function iniit():void
+			{
+				mod_loader.url = "assets/ViewStackModule.swf";
+			}
+			
+		]]>
+	</fx:Script>
+	<s:layout>
+		<s:VerticalLayout />
+	</s:layout>
+	<s:DropDownList id="appCB" dataProvider="{listArr}" />
+	<s:Button label="Load Module" click="iniit()" />
+	<mx:ModuleLoader id="mod_loader"/>
+	
+</s:Application>

Added: incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/assets/AlertModule.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/assets/AlertModule.mxml?rev=1369978&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/assets/AlertModule.mxml (added)
+++ incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/assets/AlertModule.mxml Mon Aug  6 20:22:48 2012
@@ -0,0 +1,55 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+<mx:Module xmlns:fx="http://ns.adobe.com/mxml/2009" 
+		   xmlns:s="library://ns.adobe.com/flex/spark" 
+		   xmlns:mx="library://ns.adobe.com/flex/mx" >
+	
+	<fx:Style>
+		@namespace s "library://ns.adobe.com/flex/spark";
+		@namespace mx "library://ns.adobe.com/flex/mx";
+		mx|Alert {
+			fontAntiAliasType: "normal";
+			fontFamily: HaloVera;
+		}
+	</fx:Style>
+	
+
+	<fx:Script>
+		<![CDATA[
+			import mx.controls.Alert;
+			
+			public var currentAlert: Alert;
+			protected function btn1_clickHandler(event:MouseEvent):void
+			{
+				currentAlert = Alert.show("clicked");
+			}
+
+			protected function btn2_clickHandler(event:MouseEvent):void
+			{
+				currentAlert = Alert.show("clicked","module",4,null,null,null,4 , this.moduleFactory);
+			}
+
+		]]>
+	</fx:Script>
+
+	<s:Button label="show alert 1" id="btn1" click="btn1_clickHandler(event)" />
+	<s:Button label="show alert 2" id="btn2" click="btn2_clickHandler(event)" />
+	
+</mx:Module>
\ No newline at end of file

Added: incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/assets/CSSDeclarationModule.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/assets/CSSDeclarationModule.mxml?rev=1369978&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/assets/CSSDeclarationModule.mxml (added)
+++ incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/assets/CSSDeclarationModule.mxml Mon Aug  6 20:22:48 2012
@@ -0,0 +1,61 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+<mx:Module xmlns:fx="http://ns.adobe.com/mxml/2009" 
+		   xmlns:s="library://ns.adobe.com/flex/spark" 
+		   xmlns:mx="library://ns.adobe.com/flex/mx" creationComplete="module1_creationCompleteHandler(event)">
+	
+	<fx:Style>
+		@namespace s "library://ns.adobe.com/flex/spark";
+		@namespace mx "library://ns.adobe.com/flex/mx";
+		
+		s|List
+		{
+			fontStyle: italic;
+			color: #FF0000;
+		}
+		
+	</fx:Style>
+	<fx:Script>
+		<![CDATA[
+			import mx.collections.ArrayList;
+			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 module1_creationCompleteHandler(event:FlexEvent):void
+			{
+				moduleList.dataProvider = listArr;
+			}
+		]]>
+	</fx:Script>
+	
+	<s:List id="moduleList"  />
+</mx:Module>
\ No newline at end of file



Mime
View raw message