flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From p...@apache.org
Subject svn commit: r1369978 [5/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/assets/ModuleAppSeven.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/assets/ModuleAppSeven.mxml?rev=1369978&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/assets/ModuleAppSeven.mxml (added)
+++ incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/assets/ModuleAppSeven.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.
+
+-->
+<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";
+		
+		@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
+		{
+			color: #FFAAAA;
+			fontSize: 12;
+		}
+		
+		s|Button#gumboButton
+		{
+			cornerRadius: 10;
+		}
+		
+		mx|Label
+		{
+			fontAntiAliasType: "normal";
+			fontFamily: HaloVera;
+			color: #0000FF;
+		}
+	</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 module1_creationCompleteHandler(event:FlexEvent):void
+			{
+				moduleList.dataProvider = listArr;
+			}
+		]]>
+	</fx:Script>
+	
+	<s:Panel title="Gumbo Panel" id="modulePanel">
+		<s:layout>
+			<s:VerticalLayout />
+		</s:layout>
+		
+		<s:List id="moduleList"  />
+		<s:Button id="gumboButton" label="Gumbo Button"  />
+		<mx:Label text="MX Label"  />
+	</s:Panel>
+</mx:Module>
\ No newline at end of file

Added: incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/assets/ModuleAppSix.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/assets/ModuleAppSix.mxml?rev=1369978&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/assets/ModuleAppSix.mxml (added)
+++ incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/assets/ModuleAppSix.mxml Mon Aug  6 20:22:48 2012
@@ -0,0 +1,25 @@
+<?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" layout="vertical">
+	
+	<s:Button label="Hello World from Sub Module !!" />
+</mx:Module>

Added: incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/assets/ModuleAppThree.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/assets/ModuleAppThree.mxml?rev=1369978&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/assets/ModuleAppThree.mxml (added)
+++ incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/assets/ModuleAppThree.mxml Mon Aug  6 20:22:48 2012
@@ -0,0 +1,71 @@
+<?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" layout="absolute" width="400" height="300">
+	<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";
+		}
+
+		s|Button
+		{
+			skinClass: ClassReference("LeftButtonSkin");
+		}
+	</fx:Style>
+	<s:Button id="buttonId" label="Hello World !!" />
+</mx:Module>

Added: incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/assets/ModuleAppTwo.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/assets/ModuleAppTwo.mxml?rev=1369978&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/assets/ModuleAppTwo.mxml (added)
+++ incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/assets/ModuleAppTwo.mxml Mon Aug  6 20:22:48 2012
@@ -0,0 +1,98 @@
+<?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="iniit()">
+	<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.collections.*;
+
+	    public function iniit():void
+	    {
+		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}
+		 ];
+
+		 cb.dataProvider = arr;
+		 cbOne.dataProvider = arr;
+	    }
+	]]>
+	</fx:Script>
+	<mx:ComboBox id="cb" />
+	<mx:ComboBox id="cbOne" styleName="myComboBox"/>
+</mx:Module>
\ No newline at end of file

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

Added: incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/assets/MyWindow.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/assets/MyWindow.mxml?rev=1369978&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/assets/MyWindow.mxml (added)
+++ incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/assets/MyWindow.mxml Mon Aug  6 20:22:48 2012
@@ -0,0 +1,34 @@
+<?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:Group xmlns:fx="http://ns.adobe.com/mxml/2009" 
+         xmlns:s="library://ns.adobe.com/flex/spark" 
+         xmlns:mx="library://ns.adobe.com/flex/mx" width="200" height="150" >
+
+    <s:Rect width="100%" height="100%" >
+        <s:fill>
+            <s:SolidColor color="yellow" />
+        </s:fill>
+    </s:Rect>
+    <s:Scroller width ="100" height="100" >
+        <s:Group>
+            <s:Label text="My Window" />
+        </s:Group>
+    </s:Scroller>
+</s:Group>

Added: incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/assets/PopUpModule.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/assets/PopUpModule.mxml?rev=1369978&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/assets/PopUpModule.mxml (added)
+++ incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/assets/PopUpModule.mxml Mon Aug  6 20:22:48 2012
@@ -0,0 +1,73 @@
+<?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";
+		
+		s|TitleWindow
+		{
+			fontSize: 32;
+			borderColor: #0000FF;
+		}
+		
+	</fx:Style>
+	<fx:Script>
+		<![CDATA[
+			import mx.events.CloseEvent;
+			import mx.managers.PopUpManager;
+			import spark.components.TitleWindow;
+			
+			public var titleWindow: TitleWindow;
+			
+			protected function btn1_clickHandler(event:MouseEvent):void
+			{
+				titleWindow = new TitleWindow();
+				titleWindow.title ="Title Window";
+				titleWindow.width = 136;
+				titleWindow.addEventListener(CloseEvent.CLOSE, closeMe, false, 0, true); 
+				PopUpManager.addPopUp(titleWindow,this , true, null, systemManager);
+			}
+			
+			protected function btn2_clickHandler(event:MouseEvent):void
+			{
+				titleWindow = new TitleWindow();
+				titleWindow.title ="Module Title Window";
+				titleWindow.width = 426;
+				titleWindow.addEventListener(CloseEvent.CLOSE, closeMe, false, 0, true); 
+				PopUpManager.addPopUp(titleWindow, this, true, null, this.moduleFactory);
+			}
+			
+			private function closeMe(e:CloseEvent):void{
+				
+				PopUpManager.removePopUp(titleWindow);
+				
+				titleWindow.removeEventListener(CloseEvent.CLOSE, closeMe);
+			}
+			
+		]]>
+	</fx:Script>
+	
+	<s:Button label="show title window 1" id="btn1" click="btn1_clickHandler(event)" />
+	<s:Button label="show title window 2" id="btn2" click="btn2_clickHandler(event)" />
+	
+</mx:Module>
\ No newline at end of file

Added: incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/assets/RichEditableTextModule1.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/assets/RichEditableTextModule1.mxml?rev=1369978&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/assets/RichEditableTextModule1.mxml (added)
+++ incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/assets/RichEditableTextModule1.mxml Mon Aug  6 20:22:48 2012
@@ -0,0 +1,37 @@
+<?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" 
+	layout="vertical"
+	>
+	
+	<mx:Form>
+		
+		<mx:FormHeading label="Module 1" />
+		
+		<mx:FormItem label="textField">
+			<s:TextInput id="ti" text="loaded" />
+		</mx:FormItem>
+		
+	</mx:Form>
+	
+</mx:Module>

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

Added: incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/assets/RichEditableTextModule2.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/assets/RichEditableTextModule2.mxml?rev=1369978&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/assets/RichEditableTextModule2.mxml (added)
+++ incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/assets/RichEditableTextModule2.mxml Mon Aug  6 20:22:48 2012
@@ -0,0 +1,37 @@
+<?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" 
+	layout="vertical"
+	>
+	
+	<mx:Form>
+		
+		<mx:FormHeading label="Module 2" />
+		
+		<mx:FormItem label="textField">
+			<s:TextInput id="ti" text="loaded" />
+		</mx:FormItem>
+		
+	</mx:Form>
+	
+</mx:Module>

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

Added: incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/assets/RightButtonSkin.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/assets/RightButtonSkin.mxml?rev=1369978&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/assets/RightButtonSkin.mxml (added)
+++ incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/assets/RightButtonSkin.mxml Mon Aug  6 20:22:48 2012
@@ -0,0 +1,180 @@
+<?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:SparkSkin xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" 
+			 xmlns:fb="http://ns.adobe.com/flashbuilder/2009" minWidth="21" minHeight="21" alpha.disabled="0.5">
+	
+	<!-- host component -->
+	<fx:Metadata>
+		<![CDATA[ 
+		[HostComponent("spark.components.Button")]
+		]]>
+	</fx:Metadata>
+	
+	<fx:Script fb:purpose="styling">
+		<![CDATA[         
+			static private const exclusions:Array = ["labelDisplay"];
+			
+			override public function get colorizeExclusions():Array {return exclusions;}
+			
+			override protected function initializationComplete():void
+			{
+				useChromeColor = true;
+				super.initializationComplete();
+			}  
+			
+			override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number) : void
+			{
+				var cr:Number = getStyle("cornerRadius");
+				
+				if (cornerRadius != cr)
+				{
+					cornerRadius = cr;
+					shadow.radiusX = cornerRadius;
+					fill.radiusX = cornerRadius;
+					lowlight.radiusX = cornerRadius;
+					highlight.radiusX = cornerRadius;
+					border.radiusX = cornerRadius;
+				}
+				
+				if (highlightStroke) highlightStroke.radiusX = cornerRadius;
+				
+				super.updateDisplayList(unscaledWidth, unscaledHeight);
+			}
+			
+			private var cornerRadius:Number = 2;
+		]]>        
+	</fx:Script>
+	
+	<!-- states -->
+	<s:states>
+		<s:State name="up" />
+		<s:State name="over" />
+		<s:State name="down" />
+		<s:State name="disabled" />
+	</s:states>
+	
+	<!-- layer 1: shadow -->
+	<s:Rect id="shadow" left="-1" right="-1" top="-1" bottom="-1" radiusX="2">
+		<s:fill>
+			<s:LinearGradient rotation="90">
+				<s:GradientEntry color="0x000000" 
+								 color.down="0xFFFFFF"
+								 alpha="0.01"
+								 alpha.down="0" />
+				<s:GradientEntry color="0x000000" 
+								 color.down="0xFFFFFF" 
+								 alpha="0.07"
+								 alpha.down="0.5" />
+			</s:LinearGradient>
+		</s:fill>
+	</s:Rect>
+	
+	<!-- layer 2: fill -->
+	<s:Rect id="fill" left="1" right="1" top="1" bottom="1" radiusX="2">
+		<s:fill>
+			<s:LinearGradient rotation="90">
+				<s:GradientEntry color="0xFFFFAA" 
+								 color.over="0xBBBDBD" 
+								 color.down="0xAAAAAA" 
+								 alpha="0.85" />
+				<s:GradientEntry color="0xD8D8D8" 
+								 color.over="0x9FA0A1" 
+								 color.down="0x929496" 
+								 alpha="0.85" />
+			</s:LinearGradient>
+		</s:fill>
+	</s:Rect>
+	
+	<!-- layer 3: fill lowlight -->
+	<s:Rect id="lowlight" left="1" right="1" bottom="1" height="9" radiusX="2">
+		<s:fill>
+			<s:LinearGradient rotation="90">
+				<s:GradientEntry color="0x000000" alpha="0.0099" />
+				<s:GradientEntry color="0x000000" alpha="0.0627" />
+			</s:LinearGradient>
+		</s:fill>
+	</s:Rect>
+	
+	<!-- layer 4: fill highlight -->
+	<s:Rect id="highlight" left="1" right="1" top="1" height="9" radiusX="2">
+		<s:fill>
+			<s:SolidColor color="0xFFFFFF" 
+						  alpha="0.33" 
+						  alpha.over="0.22" 
+						  alpha.down="0.12" />
+		</s:fill>
+	</s:Rect>
+	
+	<!-- layer 5: highlight stroke (all states except down) -->
+	<s:Rect id="highlightStroke" left="1" right="1" top="1" bottom="1" radiusX="2" excludeFrom="down">
+		<s:stroke>
+			<s:LinearGradientStroke rotation="90" weight="1">
+				<s:GradientEntry color="0xFFFFFF" alpha.over="0.22" />
+				<s:GradientEntry color="0xD8D8D8" alpha.over="0.22" />
+			</s:LinearGradientStroke>
+		</s:stroke>
+	</s:Rect>
+	
+	<!-- layer 6: highlight stroke (down state only) -->
+	<s:Rect left="1" top="1" bottom="1" width="1" includeIn="down">
+		<s:fill>
+			<s:SolidColor color="0x000000" alpha="0.07" />
+		</s:fill>
+	</s:Rect>
+	<s:Rect right="1" top="1" bottom="1" width="1" includeIn="down">
+		<s:fill>
+			<s:SolidColor color="0x000000" alpha="0.07" />
+		</s:fill>
+	</s:Rect>
+	<s:Rect left="2" top="1" right="2" height="1" includeIn="down">
+		<s:fill>
+			<s:SolidColor color="0x000000" alpha="0.25" />
+		</s:fill>
+	</s:Rect>
+	<s:Rect left="1" top="2" right="1" height="1" includeIn="down">
+		<s:fill>
+			<s:SolidColor color="0x000000" alpha="0.09" />
+		</s:fill>
+	</s:Rect>
+	
+	<!-- layer 7: border - put on top of the fill so it doesn't disappear when scale is less than 1 -->
+	<s:Rect id="border" left="0" right="0" top="0" bottom="0" width="69" height="20" radiusX="2">
+		<s:stroke>
+			<s:LinearGradientStroke rotation="90" weight="1">
+				<s:GradientEntry color="0x000000" 
+								 alpha="0.5625"
+								 alpha.down="0.6375" />
+				<s:GradientEntry color="0x000000" 
+								 alpha="0.75" 
+								 alpha.down="0.85" />
+			</s:LinearGradientStroke>
+		</s:stroke>
+	</s:Rect>
+	
+	<!-- layer 8: text -->
+	<s:Label id="labelDisplay"
+			 textAlign="right"
+			 verticalAlign="middle"
+			 maxDisplayedLines="1"
+			 horizontalCenter="0" verticalCenter="1"
+			 left="10" right="10" top="2" bottom="2">
+	</s:Label>
+	
+</s:SparkSkin>
\ No newline at end of file

Added: incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/assets/SetStyleProblemSubApp.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/assets/SetStyleProblemSubApp.mxml?rev=1369978&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/assets/SetStyleProblemSubApp.mxml (added)
+++ incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/assets/SetStyleProblemSubApp.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/assets/SkinModule.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/assets/SkinModule.mxml?rev=1369978&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/assets/SkinModule.mxml (added)
+++ incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/assets/SkinModule.mxml Mon Aug  6 20:22:48 2012
@@ -0,0 +1,53 @@
+<?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" creationComplete="module1_creationCompleteHandler(event)"
+		   xmlns:s="library://ns.adobe.com/flex/spark" 
+		   xmlns:mx="library://ns.adobe.com/flex/mx" layout="horizontal" >
+	<fx:Script>
+		<![CDATA[
+			import mx.events.FlexEvent;
+			import mx.collections.ArrayList;
+			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 module1_creationCompleteHandler(event:FlexEvent):void
+			{
+				sparkList.dataProvider = listArr;
+			}
+
+		]]>
+	</fx:Script>
+	<s:Panel title=" Sparky Panel (Module)" >
+		<s:layout>
+			<s:VerticalLayout paddingLeft="5" paddingTop="5"/>
+		</s:layout>
+		<s:List id="sparkList" />
+		
+	</s:Panel>
+</mx:Module>

Added: incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/assets/SkinModule2.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/assets/SkinModule2.mxml?rev=1369978&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/assets/SkinModule2.mxml (added)
+++ incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/assets/SkinModule2.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.
+
+-->
+<mx:Module xmlns:fx="http://ns.adobe.com/mxml/2009" creationComplete="module1_creationCompleteHandler(event)"
+		   xmlns:s="library://ns.adobe.com/flex/spark" 
+		   xmlns:mx="library://ns.adobe.com/flex/mx" layout="horizontal" >
+	<fx:Script>
+		<![CDATA[
+			import mx.events.FlexEvent;
+			import mx.collections.ArrayList;
+			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 module1_creationCompleteHandler(event:FlexEvent):void
+			{
+				sparkList.dataProvider = listArr;
+			}
+			
+		]]>
+	</fx:Script>
+	<s:Panel title=" Sparky Panel (Module)" >
+		<s:layout>
+			<s:VerticalLayout paddingLeft="5" paddingTop="5"/>
+		</s:layout>
+	</s:Panel>
+	<s:List id="sparkList" />
+</mx:Module>

Added: incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/assets/SparkAlphaMain.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/assets/SparkAlphaMain.mxml?rev=1369978&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/assets/SparkAlphaMain.mxml (added)
+++ incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/assets/SparkAlphaMain.mxml Mon Aug  6 20:22:48 2012
@@ -0,0 +1,7 @@
+<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark"
+    width="300" height="250" >
+    <s:layout>
+        <s:VerticalLayout />
+    </s:layout>
+    <s:Button id="buttonId" label="Test1"/>
+</s:Application>
\ No newline at end of file

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

Added: incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/assets/SparkImageMain.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/assets/SparkImageMain.mxml?rev=1369978&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/assets/SparkImageMain.mxml (added)
+++ incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/assets/SparkImageMain.mxml Mon Aug  6 20:22:48 2012
@@ -0,0 +1,15 @@
+<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" width="300" height="250" >
+    <s:layout>
+        <s:VerticalLayout />
+    </s:layout>
+    <s:Button id="buttonId" label="Test"/>
+    <s:Button label="Test"/>
+
+    <s:Button label="Test"/>
+    <s:Button label="Test"/>
+    <s:Button label="Test"/>
+    <s:Button label="Test"/>
+    <s:Button label="Test"/>
+    <s:Button label="Test"/>
+    <s:Button label="Test"/>
+</s:Application>
\ No newline at end of file

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

Added: incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/assets/SparkModule.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/assets/SparkModule.mxml?rev=1369978&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/assets/SparkModule.mxml (added)
+++ incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/assets/SparkModule.mxml Mon Aug  6 20:22:48 2012
@@ -0,0 +1,104 @@
+<?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|ComboBox
+		{
+			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.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;
+				moduleCB.dataProvider = listArr;
+			}
+		]]>
+	</fx:Script>
+	<s:VGroup>
+		<s:CheckBox id="checkBox" label="Check Box Module" />
+		<s:Label text="Label Outside Panel"  />
+		<s:HGroup rotation="-10">
+			<s:NumericStepper id="numericStepper" stepSize="1" minimum="1" maximum="10" />
+			<s:RichText text="This Text is Rich Module !!" />
+		</s:HGroup>
+		<s:RichText text="This Text is also Rich !!" />
+		<s:Panel title="Gumbo Module Panel" id="appPanel" rotation="-5">
+			<s:layout>
+				<s:VerticalLayout />
+			</s:layout>
+			
+			<s:Button id="gumboButton" label="Gumbo Module Button"  />
+			<s:Button id="gumboButton2" label="Second Gumbo Module Button" styleName="myStyle"  />
+			<s:Label text="Spark Module Label"  />
+			<s:Label text="Spark Label Module class selector" styleName="classOfStyle"  />
+			<s:ComboBox id="moduleCB"  />
+			<s:List id="moduleList"  />
+		</s:Panel>
+	</s:VGroup>	
+</mx:Module>
\ No newline at end of file

Added: incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/assets/SparkSubApp.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/assets/SparkSubApp.mxml?rev=1369978&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/assets/SparkSubApp.mxml (added)
+++ incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/assets/SparkSubApp.mxml Mon Aug  6 20:22:48 2012
@@ -0,0 +1,112 @@
+<?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="1024" minHeight="768">
+	<fx:Style>
+		@namespace s "library://ns.adobe.com/flex/spark";
+		@namespace mx "library://ns.adobe.com/flex/mx";
+		
+		s|ComboBox
+		{
+			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.collections.ArrayList;
+			import mx.controls.Alert;
+			import mx.events.FlexEvent;
+			import mx.events.StyleEvent;
+			import flash.system.ApplicationDomain;
+			
+			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;
+				appCB.dataProvider = listArr;
+				
+			}
+			
+		]]>
+	</fx:Script>
+	<s:layout>
+		<s:VerticalLayout />
+	</s:layout>
+	<s:VGroup>
+		<s:CheckBox id="checkBox" label="Check Box Module" />
+		<s:Label text="Label Outside Panel"  />
+		<s:HGroup rotation="-10">
+			<s:NumericStepper id="numericStepper" stepSize="1" minimum="1" maximum="10" />
+			<s:RichText text="This Text is Rich Module !!" />
+		</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 Module Button"  />
+			<s:Button id="gumboButton2" label="Second Gumbo Module Button" styleName="myStyle"  />
+			<s:Label text="Spark Module Label"  />
+			<s:Label text="Spark Label Module class selector" styleName="classOfStyle"  />
+			<s:ComboBox id="appCB"  />
+			<s:List id="appList"  />
+		</s:Panel>
+	</s:VGroup>	
+</s:Application>

Added: incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/assets/StyleDeclarationTestModule.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/assets/StyleDeclarationTestModule.mxml?rev=1369978&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/assets/StyleDeclarationTestModule.mxml (added)
+++ incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/assets/StyleDeclarationTestModule.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.
+
+-->
+<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);
+			private var myStyleManager: IStyleManager2;
+			
+			
+			protected function module1_creationCompleteHandler(event:FlexEvent):void
+			{
+				moduleList.dataProvider = listArr;
+				myStyleManager = StyleManager.getStyleManager(this.moduleFactory);	
+			}
+
+			public function findStyleValue(  ):void
+			{
+				var cssDecl:CSSStyleDeclaration = myStyleManager.getStyleDeclaration(selector.text);
+				localStyle.text =  cssDecl.getStyle(styleName.text);
+			}
+
+
+			public function findMergedStyleValue( ):void
+			{
+				var cssDecl:CSSStyleDeclaration = myStyleManager.getMergedStyleDeclaration(selector.text);
+				mergedStyle.text =  cssDecl.getStyle(styleName.text);
+			}
+		]]>
+	</fx:Script>
+	<s:Label text="selector" />
+	<s:TextInput id="selector" />
+	<s:Label text="style name" />
+	<s:TextInput id="styleName" />
+	<s:Label text="local style" />	
+	<s:TextInput id="localStyle" />
+	<s:Label text="merged style" />
+	<s:TextInput id="mergedStyle" />
+	
+	<s:List id="moduleList"  />
+	<s:Button id="localButton" label="Check Local Style" click="findStyleValue( )" />
+	<s:Button id="mergedButton"  label="Check Merged Style" click="findMergedStyleValue( )" />
+</mx:Module>
\ No newline at end of file

Added: incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/assets/StyleMgrModule.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/assets/StyleMgrModule.mxml?rev=1369978&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/assets/StyleMgrModule.mxml (added)
+++ incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/assets/StyleMgrModule.mxml Mon Aug  6 20:22:48 2012
@@ -0,0 +1,50 @@
+<?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: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

Added: incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/assets/StyleMgrModule2.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/assets/StyleMgrModule2.mxml?rev=1369978&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/assets/StyleMgrModule2.mxml (added)
+++ incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/assets/StyleMgrModule2.mxml Mon Aug  6 20:22:48 2012
@@ -0,0 +1,99 @@
+<?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: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);
+			public var toplevelStyleManager: IStyleManager2;
+			public var moduleStyleManager: IStyleManager2;	
+			
+			protected function module1_creationCompleteHandler(event:FlexEvent):void
+			{
+				moduleList.dataProvider = listArr;
+				toplevelStyleManager = StyleManager.getStyleManager(null);
+			}
+			
+			public function findModuleStyleManager():void
+			{
+				moduleStyleManager =  StyleManager.getStyleManager(this.moduleFactory);
+			}
+
+			protected function checkTopLevelManager_clickHandler(event:MouseEvent):void
+			{
+				if(toplevelStyleManager.parent == null)
+				{
+					result.text = "pass";
+				}
+				else 
+				{
+					result.text = "fail, parent style manager for top level style manager should be null";
+				}
+			}
+
+
+			protected function checkModuleStyleManager_clickHandler(event:MouseEvent):void
+			{
+				findModuleStyleManager();
+				
+				if(moduleStyleManager.parent != null && moduleStyleManager.parent == toplevelStyleManager)
+				{
+					result.text = "pass";
+				}
+				else 
+				{
+					result.text = "fail, parent style manager for module level style manager should be the top level style manager";
+				}
+				
+				if(moduleStyleManager == moduleList.styleManager)
+				{
+					result.text = "pass";
+				}
+				else 
+				{
+					result.text = "fail, module level style manager should be same as the style manager for UIComponent in the module";
+				}
+			}
+
+		]]>
+	</fx:Script>
+	
+	<s:List id="moduleList"  />
+	
+	<s:TextInput id="result" />
+	
+	<s:Button id="checkTopLevelStyleManager" label="check TopLevel StyleManager " click="checkTopLevelManager_clickHandler(event)" />
+	<s:Button id="checkModuleStyleManager" label="check Module StyleManager " click="checkModuleStyleManager_clickHandler(event)" />
+</mx:Module>
\ No newline at end of file

Added: incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/assets/StyleMgrModule3.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/assets/StyleMgrModule3.mxml?rev=1369978&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/assets/StyleMgrModule3.mxml (added)
+++ incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/assets/StyleMgrModule3.mxml Mon Aug  6 20:22:48 2012
@@ -0,0 +1,50 @@
+<?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: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>
+	
+	<mx:List id="moduleList"  />
+</mx:Module>
\ No newline at end of file

Added: incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/assets/StylesModule.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/assets/StylesModule.mxml?rev=1369978&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/assets/StylesModule.mxml (added)
+++ incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/assets/StylesModule.mxml Mon Aug  6 20:22:48 2012
@@ -0,0 +1,102 @@
+<?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|ComboBox
+		{
+			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.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:VGroup>
+		<s:CheckBox id="checkBox" label="Check Box Module" />
+		<s:Label text="Label Outside Panel"  />
+		<s:HGroup rotation="-10">
+			<s:NumericStepper id="numericStepper" stepSize="1" minimum="1" maximum="10" />
+		</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 Module Button"  />
+			<s:Button id="gumboButton2" label="Second Gumbo Module Button" styleName="myStyle"  />
+			<s:Label text="Spark Module Label"  />
+			<s:Label text="Spark Label Module class selector" styleName="classOfStyle"  />
+			<s:ComboBox id="moduleList" height="24" width="147"/>
+		</s:Panel>
+	</s:VGroup>	
+</mx:Module>
\ No newline at end of file

Added: incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/assets/StylesSubApp.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/assets/StylesSubApp.mxml?rev=1369978&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/assets/StylesSubApp.mxml (added)
+++ incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/assets/StylesSubApp.mxml Mon Aug  6 20:22:48 2012
@@ -0,0 +1,110 @@
+<?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="1024" minHeight="768">
+	<fx:Style>
+		@namespace s "library://ns.adobe.com/flex/spark";
+		@namespace mx "library://ns.adobe.com/flex/mx";
+		
+		s|ComboBox
+		{
+			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.collections.ArrayList;
+			import mx.controls.Alert;
+			import mx.events.FlexEvent;
+			import mx.events.StyleEvent;
+			import flash.system.ApplicationDomain;
+			
+			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;
+				
+			}
+			
+		]]>
+	</fx:Script>
+	<s:layout>
+		<s:VerticalLayout />
+	</s:layout>
+	<s:VGroup>
+		<s:CheckBox id="checkBox" label="Check Box Module" />
+		<s:Label text="Label Outside Panel"  />
+		<s:HGroup rotation="-10">
+			<s:NumericStepper id="numericStepper" stepSize="1" minimum="1" maximum="10" />
+			<s:RichText text="This Text is Rich Module !!" />
+		</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 Module Button"  />
+			<s:Button id="gumboButton2" label="Second Gumbo Module Button" styleName="myStyle"  />
+			<s:Label text="Spark Module Label"  />
+			<s:Label text="Spark Label Module class selector" styleName="classOfStyle"  />
+			<s:ComboBox id="appList" height="24" width="147"/>
+		</s:Panel>
+	</s:VGroup>	
+</s:Application>

Added: incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/assets/SwfLoaderApp.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/assets/SwfLoaderApp.mxml?rev=1369978&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/assets/SwfLoaderApp.mxml (added)
+++ incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/assets/SwfLoaderApp.mxml Mon Aug  6 20:22:48 2012
@@ -0,0 +1,47 @@
+<?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:fx="http://ns.adobe.com/mxml/2009" 
+               xmlns:s="library://ns.adobe.com/flex/spark" 
+               xmlns:mx="library://ns.adobe.com/flex/mx" creationComplete="iniit()">
+	
+	<fx:Script>
+	<![CDATA[
+	    import mx.collections.*;
+
+	    public function iniit():void
+	    {
+		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}
+		 ];
+
+		 cb.dataProvider = arr;
+		 cbOne.dataProvider = arr;
+	    }
+	]]>
+	</fx:Script>
+	<mx:ComboBox id="cb" />
+	<mx:ComboBox id="cbOne" styleName="myComboBox"/>
+</mx:Application>
\ No newline at end of file

Added: incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/assets/SwfLoaderAppLoadsModule.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/assets/SwfLoaderAppLoadsModule.mxml?rev=1369978&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/assets/SwfLoaderAppLoadsModule.mxml (added)
+++ incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/assets/SwfLoaderAppLoadsModule.mxml Mon Aug  6 20:22:48 2012
@@ -0,0 +1,126 @@
+<?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" initialize="setListener()"
+		   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";
+		
+		@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";
+		}
+
+		s|List
+		{
+			color: #FFAAAA;
+			fontSize: 12;
+		}
+		
+		s|Button#gumboButton
+		{
+			cornerRadius: 10;
+		}
+		
+	</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);
+			public function setListener():void
+			{
+				mod_loader.addEventListener(ModuleEvent.READY,handleModuleLoaded);
+				
+			}
+			
+			public function handleModuleLoaded(e:ModuleEvent):void
+			{
+				e.currentTarget.removeEventListener(ModuleEvent.READY, handleModuleLoaded);
+				dispatchEvent(new FlexEvent("moduleLoaded"));
+			}
+			protected function module1_creationCompleteHandler(event:FlexEvent):void
+			{
+				mod_loader.url = "assets/ModuleAppNine.swf";
+				moduleList.dataProvider = listArr;
+			}
+			
+		]]>
+	</fx:Script>
+	<s:layout>
+		<s:VerticalLayout />
+	</s:layout>
+	<mx:ModuleLoader id="mod_loader" height="225" />
+	<s:Panel title="Gumbo Panel Swf Loader" id="appPanel">
+		<s:layout>
+			<s:VerticalLayout />
+		</s:layout>
+		
+		<s:List id="moduleList"  />
+		<s:Button id="gumboButton" label="Gumbo Button"  />
+		<mx:Label text="MX Label"  />
+		
+	</s:Panel>
+</s:Application>
\ No newline at end of file

Added: incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/assets/SwfLoaderAppOne.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/assets/SwfLoaderAppOne.mxml?rev=1369978&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/assets/SwfLoaderAppOne.mxml (added)
+++ incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/assets/SwfLoaderAppOne.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" creationComplete="module1_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
+		{
+			color: #FFAAAA;
+			fontSize: 12;
+		}
+		
+		s|Button#gumboButton
+		{
+			cornerRadius: 10;
+		}
+		
+		mx|Label
+		{
+			fontAntiAliasType: "normal";
+			fontFamily: HaloVera;
+			color: #0000FF;
+		}
+	</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 module1_creationCompleteHandler(event:FlexEvent):void
+			{
+				moduleList.dataProvider = listArr;
+			}
+		]]>
+	</fx:Script>
+	
+	<s:Panel title="Gumbo Panel One" id="modulePanel">
+		<s:layout>
+			<s:VerticalLayout />
+		</s:layout>
+		
+		<s:List id="moduleList"  />
+		<s:Button id="gumboButton" label="Gumbo Button"  />
+		<mx:Label text="MX Label"  />
+	</s:Panel>
+</s:Application>
\ No newline at end of file

Added: incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/assets/SwfLoaderAppThree.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/assets/SwfLoaderAppThree.mxml?rev=1369978&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/assets/SwfLoaderAppThree.mxml (added)
+++ incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/assets/SwfLoaderAppThree.mxml Mon Aug  6 20:22:48 2012
@@ -0,0 +1,142 @@
+<?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="module1_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
+		{
+			fontStyle: "italic";
+		}
+		
+		mx|Label
+		{
+			fontAntiAliasType: "normal";
+			fontFamily: HaloVera;
+			color: #0000FF;
+		}
+		
+		
+	</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 module1_creationCompleteHandler(event:FlexEvent):void
+			{
+				moduleList.dataProvider = listArr;
+			}
+			
+		]]>
+	</fx:Script>
+	
+	<s:Panel title="Gumbo Panel Three" id="appPanel">
+		<s:layout>
+			<s:VerticalLayout />
+		</s:layout>
+		
+		<s:List id="moduleList"  />
+		<s:Button id="gumboButton" label="Gumbo Button"  />
+		<mx:Label text="MX Label"  />
+	</s:Panel>
+</s:Application>
\ No newline at end of file

Added: incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/assets/SwfLoaderAppTwo.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/assets/SwfLoaderAppTwo.mxml?rev=1369978&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/assets/SwfLoaderAppTwo.mxml (added)
+++ incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/assets/SwfLoaderAppTwo.mxml Mon Aug  6 20:22:48 2012
@@ -0,0 +1,116 @@
+<?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="module1_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 {
+			fontAntiAliasType: "normal";
+			fontFamily: SparkVera;
+			fontLookup: "embeddedCFF";
+		}
+
+		s|List
+		{
+			color: #FFAAAA;
+			fontSize: 12;
+		}
+		
+		s|Button#gumboButton
+		{
+			cornerRadius: 10;
+		}
+		
+	</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 module1_creationCompleteHandler(event:FlexEvent):void
+			{
+				moduleList.dataProvider = listArr;
+				subSwf_loader.load("SwfLoaderAppThree.swf");
+			}
+			
+		]]>
+	</fx:Script>
+	<s:layout>
+		<s:VerticalLayout />
+	</s:layout>
+	<mx:SWFLoader id="subSwf_loader" height="225"/>
+	<s:Panel title="Gumbo Panel Two" id="appPanel">
+		<s:layout>
+			<s:VerticalLayout />
+		</s:layout>
+		
+		<s:List id="moduleList"  />
+		<s:Button id="gumboButton" label="Gumbo Button"  />
+		<mx:Label text="MX Label"  />
+		
+	</s:Panel>
+</s:Application>
\ No newline at end of file

Added: incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/assets/ToolTipSubApp.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/assets/ToolTipSubApp.mxml?rev=1369978&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/assets/ToolTipSubApp.mxml (added)
+++ incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/assets/ToolTipSubApp.mxml Mon Aug  6 20:22:48 2012
@@ -0,0 +1,126 @@
+<?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" height="400" width="500" 
+xmlns:s="library://ns.adobe.com/flex/spark">
+	<fx:Script>
+	<![CDATA[
+		import flash.events.MouseEvent;
+		import flash.events.EventDispatcher;
+		import mx.core.IToolTip;
+		import mx.managers.ToolTipManager;
+	
+		public var mytoolTip:IToolTip;
+		public var waitForEventsDispatcher:EventDispatcher = new EventDispatcher();
+		
+		public function mouseOver():void
+		{
+			mytoolTip = ToolTipManager.createToolTip("This is a custom tooltip in a sub App", 100, 100, null, this); 
+			waitForEventsDispatcher.dispatchEvent(new Event('toolTipShown'));
+		}
+	
+
+	]]>
+	</fx:Script>
+	<fx:Style>
+		@namespace ns "library://ns.adobe.com/flex/mx";
+		@namespace s "library://ns.adobe.com/flex/spark";
+	
+		
+		@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;
+		}
+		
+		ns|ToolTip
+		{
+			color: blue;
+			fontSize: 22;
+			fontAntiAliasType: "normal";
+			fontFamily: HaloVera;
+		}
+	</fx:Style>
+	<s:layout>
+		<s:VerticalLayout />
+	</s:layout>
+	<s:Label text="Sub App" />
+	</s:Application> 
\ No newline at end of file

Added: incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/assets/ViewStackModule.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/assets/ViewStackModule.mxml?rev=1369978&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/assets/ViewStackModule.mxml (added)
+++ incubator/flex/trunk/mustella/tests/PerModuleStyles/SWFs/assets/ViewStackModule.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.
+
+-->
+<mx:Module xmlns:fx="http://ns.adobe.com/mxml/2009" height="400"
+		   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";
+	
+		s|List
+		{
+			fontSize: 8;
+			chromeColor: #FFFF00;
+		}
+		
+		s|DropDownList
+		{
+			color: #00FF00;
+			fontSize: 14;
+			
+		}
+		
+		mx|ToggleButtonBar  {
+			fontAntiAliasType: "normal";
+			fontFamily: HaloVera;
+		}
+		
+	</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}
+				];
+			
+			[Bindable]
+			private var listArr :ArrayList = new ArrayList(arr);
+
+
+			protected function switchTab_clickHandler(event:MouseEvent):void
+			{
+				vs.selectedIndex = 1;
+			}
+
+		]]>
+	</fx:Script>
+	
+	<mx:ControlBar >
+		<mx:ToggleButtonBar dataProvider="{vs}" id="toggle" />
+	</mx:ControlBar>
+	<mx:ViewStack id="vs" width="100%" height="50%" creationPolicy="auto">
+		
+		<mx:HBox label="HBox" height="100%" >
+			<s:DropDownList id="moduleCB" dataProvider="{listArr}" />
+			<s:Label text="Label in HBox" />
+		</mx:HBox>
+		<mx:VBox label="VBox" height="100%" id="vBoxId" paddingTop="5" paddingLeft="5" >
+			<s:RichText text="RichText in VBox" />
+			<s:List id="moduleList" dataProvider="{listArr}" />
+			
+		</mx:VBox>	
+					
+	</mx:ViewStack>
+	<s:Button label="switch Tab" id="switchTab" click="switchTab_clickHandler(event)" />
+	
+</mx:Module>
\ No newline at end of file



Mime
View raw message