incubator-flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From p...@apache.org
Subject svn commit: r1370009 [10/34] - in /incubator/flex/trunk/mustella/tests/apollo: ./ DragManager/ DragManager/SWFs/ DragManager/SWFs/assets/ DragManager/SWFs/comps/ DragManager/Spark/ DragManager/Spark/baselines/ FileComboBox/ FileComboBox/SWFs/ FileCombo...
Date Mon, 06 Aug 2012 20:51:43 GMT
Added: incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/SWFs/assets/MyWindowStyle1.css
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/SWFs/assets/MyWindowStyle1.css?rev=1370009&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/SWFs/assets/MyWindowStyle1.css (added)
+++ incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/SWFs/assets/MyWindowStyle1.css Mon Aug  6 20:51:08 2012
@@ -0,0 +1,136 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+/* CSS file */
+@namespace s "library://ns.adobe.com/flex/spark";
+@namespace mx "library://ns.adobe.com/flex/mx";
+
+.testWindowStyle{
+    chromeColor: #FFCC99;
+    contentBackgroundColor: #CC6699;
+    symbolColor: #FF0066;
+    selectionColor: #00FF00;
+    rollOverColor: #FF9933;
+    focusColor: #B80000;
+    fontFamily: EmbeddedVerdana;
+    fontLookup: embeddedCFF;
+    fontAntiAliasType: normal;
+}
+
+s|Window{
+    chromeColor: #FFCC99;
+    contentBackgroundColor: #CC6699;
+    symbolColor: #FF0066;
+    selectionColor: #00FF00;
+    rollOverColor: #FF9933;
+    focusColor: #B80000;
+    fontFamily: EmbeddedVerdana;
+    fontLookup: embeddedCFF;
+    fontAntiAliasType: normal;
+}
+
+@font-face {
+    src: url("../../../../../../../Assets/Fonts/PT_Serif/PT_Serif-Web-Regular.ttf");
+    fontFamily: EmbeddedArial;
+    embedAsCFF: true;
+}
+
+@font-face {
+    src: url("../../../../../../../Assets/Fonts/PT_Serif/PT_Serif-Web-Bold.ttf");
+    fontWeight: bold;           
+    fontFamily: EmbeddedArial;
+    embedAsCFF: true;
+}
+
+@font-face {
+    src: url("../../../../../../../Assets/Fonts/PT_Serif/PT_Serif-Web-Italic.ttf");
+    fontStyle: italic;          
+    fontFamily: EmbeddedArial;
+    embedAsCFF: true;
+}
+
+@font-face {
+    src: url("../../../../../../../Assets/Fonts/Open_Sans/OpenSans-Regular.ttf");
+    fontFamily: EmbeddedVerdana;
+    embedAsCFF: true;
+}
+
+@font-face {
+    src: url("../../../../../../../Assets/Fonts/Open_Sans/OpenSans-Bold.ttf");
+    fontWeight: bold;
+    fontFamily: EmbeddedVerdana;
+    embedAsCFF: true;
+}
+
+@font-face {
+    src: url("../../../../../../../Assets/Fonts/Open_Sans/OpenSans-Italic.ttf");
+    fontStyle: italic;
+    fontFamily: EmbeddedVerdana;
+    embedAsCFF: true;
+}
+
+@font-face {
+    src: url("../../../../../../../Assets/Fonts/Open_Sans/OpenSans-Regular.ttf");
+    fontFamily: EmbeddedVerdanaHalo;
+    embedAsCFF: false;
+}
+
+@font-face {
+    src: url("../../../../../../../Assets/Fonts/Open_Sans/OpenSans-Bold.ttf");
+    fontWeight: bold;
+    fontFamily: EmbeddedVerdanaHalo;
+    embedAsCFF: false;
+}
+
+@font-face {
+    src: url("../../../../../../../Assets/Fonts/Open_Sans/OpenSans-Italic.ttf");
+    fontStyle: italic;
+    fontFamily: EmbeddedVerdanaHalo;
+    embedAsCFF: false;
+}
+s|Button{
+    fontFamily: EmbeddedVerdana;
+    fontLookup: embeddedCFF;
+    fontAntiAliasType: normal;
+}
+s|TextArea{
+    fontFamily: EmbeddedVerdana;
+    fontLookup: embeddedCFF;
+    fontAntiAliasType: normal;
+}
+s|Label{
+    fontFamily: EmbeddedVerdana;
+    fontLookup: embeddedCFF;
+    fontAntiAliasType: normal;
+}	
+
+mx|Label{
+    fontFamily: EmbeddedVerdanaHalo;
+    fontLookup: embeddedCFF;
+    fontAntiAliasType: normal;
+}
+mx|DataGrid{
+    fontFamily: EmbeddedVerdanaHalo;
+    fontLookup: embeddedCFF;
+    fontAntiAliasType: normal;
+}
+
+global{
+    fontFamily: EmbeddedVerdana;
+    fontAntiAliasType: normal;
+}

Added: incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/SWFs/assets/MyWindowStyle2.css
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/SWFs/assets/MyWindowStyle2.css?rev=1370009&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/SWFs/assets/MyWindowStyle2.css (added)
+++ incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/SWFs/assets/MyWindowStyle2.css Mon Aug  6 20:51:08 2012
@@ -0,0 +1,134 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+/* CSS file */
+@namespace s "library://ns.adobe.com/flex/spark";
+@namespace mx "library://ns.adobe.com/flex/mx";
+
+.testWindowStyle{
+    fontFamily: EmbeddedVerdana;
+    fontLookup: embeddedCFF;
+    fontAntiAliasType: normal;
+    layoutDirection:ltr;
+    direction:ltr;
+}
+
+s|Window{
+    chromeColor: #FFCC99;
+    contentBackgroundColor: #CC6699;
+    symbolColor: #FF0066;
+    selectionColor: #00FF00;
+    rollOverColor: #FF9933;
+    focusColor: #B80000;
+    fontFamily: EmbeddedVerdana;
+    fontLookup: embeddedCFF;
+    fontAntiAliasType: normal;
+    layoutDirection:rtl;
+    direction:rtl;
+}
+
+@font-face {
+    src: url("../../../../../../../Assets/Fonts/PT_Serif/PT_Serif-Web-Regular.ttf");
+    fontFamily: EmbeddedArial;
+    embedAsCFF: true;
+}
+
+@font-face {
+    src: url("../../../../../../../Assets/Fonts/PT_Serif/PT_Serif-Web-Bold.ttf");
+    fontWeight: bold;           
+    fontFamily: EmbeddedArial;
+    embedAsCFF: true;
+}
+
+@font-face {
+    src: url("../../../../../../../Assets/Fonts/PT_Serif/PT_Serif-Web-Italic.ttf");
+    fontStyle: italic;          
+    fontFamily: EmbeddedArial;
+    embedAsCFF: true;
+}
+
+@font-face {
+    src: url("../../../../../../../Assets/Fonts/Open_Sans/OpenSans-Regular.ttf");
+    fontFamily: EmbeddedVerdana;
+    embedAsCFF: true;
+}
+
+@font-face {
+    src: url("../../../../../../../Assets/Fonts/Open_Sans/OpenSans-Bold.ttf");
+    fontWeight: bold;
+    fontFamily: EmbeddedVerdana;
+    embedAsCFF: true;
+}
+
+@font-face {
+    src: url("../../../../../../../Assets/Fonts/Open_Sans/OpenSans-Italic.ttf");
+    fontStyle: italic;
+    fontFamily: EmbeddedVerdana;
+    embedAsCFF: true;
+}
+
+@font-face {
+    src: url("../../../../../../../Assets/Fonts/Open_Sans/OpenSans-Regular.ttf");
+    fontFamily: EmbeddedVerdanaHalo;
+    embedAsCFF: false;
+}
+
+@font-face {
+    src: url("../../../../../../../Assets/Fonts/Open_Sans/OpenSans-Bold.ttf");
+    fontWeight: bold;
+    fontFamily: EmbeddedVerdanaHalo;
+    embedAsCFF: false;
+}
+
+@font-face {
+    src: url("../../../../../../../Assets/Fonts/Open_Sans/OpenSans-Italic.ttf");
+    fontStyle: italic;
+    fontFamily: EmbeddedVerdanaHalo;
+    embedAsCFF: false;
+}
+s|Button{
+    fontFamily: EmbeddedVerdana;
+    fontLookup: embeddedCFF;
+    fontAntiAliasType: normal;
+}
+s|TextArea{
+    fontFamily: EmbeddedVerdana;
+    fontLookup: embeddedCFF;
+    fontAntiAliasType: normal;
+}
+s|Label{
+    fontFamily: EmbeddedVerdana;
+    fontLookup: embeddedCFF;
+    fontAntiAliasType: normal;
+}	
+
+mx|Label{
+    fontFamily: EmbeddedVerdanaHalo;
+    fontLookup: embeddedCFF;
+    fontAntiAliasType: normal;
+}
+mx|DataGrid{
+    fontFamily: EmbeddedVerdanaHalo;
+    fontLookup: embeddedCFF;
+    fontAntiAliasType: normal;
+}
+
+global{
+    fontFamily: EmbeddedVerdana;
+    fontAntiAliasType: normal;
+}

Added: incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/SWFs/assets/testmodule.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/SWFs/assets/testmodule.mxml?rev=1370009&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/SWFs/assets/testmodule.mxml (added)
+++ incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/SWFs/assets/testmodule.mxml Mon Aug  6 20:51:08 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.
+
+-->
+<mx:Module 
+	xmlns:fx="http://ns.adobe.com/mxml/2009"
+	xmlns="http://ns.adobe.com/mxml/2009" 
+	xmlns:s="library://ns.adobe.com/flex/spark" 
+	xmlns:mx="library://ns.adobe.com/flex/mx" 
+	layout="vertical" width="400" height="300"
+	backgroundColor="0x999999">
+    <fx:Style>
+	@namespace s "library://ns.adobe.com/flex/spark";
+	@namespace mx "library://ns.adobe.com/flex/mx";
+		@font-face {
+		    src: url("../../../../../../../Assets/Fonts/PT_Serif/PT_Serif-Web-Regular.ttf");
+		    fontFamily: EmbeddedArial;
+		    embedAsCFF: true;
+		}
+
+		@font-face {
+		    src: url("../../../../../../../Assets/Fonts/PT_Serif/PT_Serif-Web-Bold.ttf");
+		    fontWeight: bold;           
+		    fontFamily: EmbeddedArial;
+		    embedAsCFF: true;
+		}
+
+		@font-face {
+		    src: url("../../../../../../../Assets/Fonts/PT_Serif/PT_Serif-Web-Italic.ttf");
+		    fontStyle: italic;          
+		    fontFamily: EmbeddedArial;
+		    embedAsCFF: true;
+		}
+
+		@font-face {
+		    src: url("../../../../../../../Assets/Fonts/Open_Sans/OpenSans-Regular.ttf");
+		    fontFamily: EmbeddedVerdana;
+		    embedAsCFF: true;
+		}
+
+		@font-face {
+		    src: url("../../../../../../../Assets/Fonts/Open_Sans/OpenSans-Bold.ttf");
+		    fontWeight: bold;
+		    fontFamily: EmbeddedVerdana;
+		    embedAsCFF: true;
+		}
+
+		@font-face {
+		    src: url("../../../../../../../Assets/Fonts/Open_Sans/OpenSans-Italic.ttf");
+		    fontStyle: italic;
+		    fontFamily: EmbeddedVerdana;
+		    embedAsCFF: true;
+		}
+		@font-face {
+		    src: url("../../../../../../../Assets/Fonts/Open_Sans/OpenSans-Regular.ttf");
+		    fontFamily: EmbeddedVerdanaHalo;
+		    embedAsCFF: false;
+		}
+
+		@font-face {
+		    src: url("../../../../../../../Assets/Fonts/Open_Sans/OpenSans-Bold.ttf");
+		    fontWeight: bold;
+		    fontFamily: EmbeddedVerdanaHalo;
+		    embedAsCFF: false;
+		}
+
+		@font-face {
+		    src: url("../../../../../../../Assets/Fonts/Open_Sans/OpenSans-Italic.ttf");
+		    fontStyle: italic;
+		    fontFamily: EmbeddedVerdanaHalo;
+		    embedAsCFF: false;
+		}
+	        s|Button{
+		    fontFamily: EmbeddedVerdana;
+		    fontLookup: embeddedCFF;
+		    fontAntiAliasType: normal;
+		}
+	        mx|Panel{
+		    fontFamily: EmbeddedVerdanaHalo;
+		    fontLookup: embeddedCFF;
+		    fontAntiAliasType: normal;
+		}
+	        mx|Button{
+		    fontFamily: EmbeddedVerdanaHalo;
+		    fontLookup: embeddedCFF;
+		    fontAntiAliasType: normal;
+		}
+ 	        mx|Alert{
+ 		    fontFamily: EmbeddedVerdanaHalo;
+ 		    fontLookup: embeddedCFF;
+ 		    fontAntiAliasType: normal;
+		}
+		global{
+		    fontFamily: EmbeddedVerdana;
+		    fontAntiAliasType: normal;
+		}
+	</fx:Style>	
+	<mx:Button label="Click to open alert" click="mx.controls.Alert.show('alert text','alert popup title',0x4,this)"/>
+	<mx:Panel title="panel title" >
+	<s:Group>
+	<s:Button label="spark module button"/>
+	</s:Group>
+	<mx:Button label="mx module button" />
+	</mx:Panel>
+</mx:Module>

Added: incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/SWFs/comps/MyRTLInheritedSubWindow.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/SWFs/comps/MyRTLInheritedSubWindow.mxml?rev=1370009&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/SWFs/comps/MyRTLInheritedSubWindow.mxml (added)
+++ incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/SWFs/comps/MyRTLInheritedSubWindow.mxml Mon Aug  6 20:51:08 2012
@@ -0,0 +1,24 @@
+<?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.
+
+-->
+<comp:MyRTLWindow xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/mx" 
+	xmlns:local="*" xmlns:comp="comps.*" width="400" height="300" backgroundColor="0x888888">
+	<s:CheckBox y="200" label="Inherited RTL SubWindow"/>
+	
+</comp:MyRTLWindow>

Added: incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/SWFs/comps/MyRTLWindow.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/SWFs/comps/MyRTLWindow.mxml?rev=1370009&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/SWFs/comps/MyRTLWindow.mxml (added)
+++ incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/SWFs/comps/MyRTLWindow.mxml Mon Aug  6 20:51:08 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:Window 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="400" height="300" 
+	  direction="rtl" layoutDirection="rtl">
+	  
+	<fx:Script>
+		<![CDATA[
+			import mx.collections.ArrayCollection;
+			[Embed(source="../../../../../../../Assets/Images/smallorangerect.jpg")]
+			private var titleIcon1:Class;
+			[Bindable]
+			private var d:ArrayCollection=new ArrayCollection([{slno:"1",name:"Joseph",age:"23"},{slno:"2",name:"Jeena",age:"21"},{slno:"3",name:"Jerry",age:"4"}
+	   	 ,{slno:"4",name:"Tom",age:"1"},{slno:"5",name:"Rick",age:"12"},{slno:"6",name:"John",age:"52"}]);
+		]]>
+        </fx:Script>   	 	
+	<s:Button label="test button" />
+	<s:DropDownList y="30" labelField="test" id="slno"   dataProvider="{d}"/>
+</s:Window>

Added: incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/SWFs/comps/MySubWindow.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/SWFs/comps/MySubWindow.mxml?rev=1370009&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/SWFs/comps/MySubWindow.mxml (added)
+++ incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/SWFs/comps/MySubWindow.mxml Mon Aug  6 20:51:08 2012
@@ -0,0 +1,24 @@
+<?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.
+
+-->
+<comp:MyWindow xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/mx" 
+	xmlns:local="*" xmlns:comp="comps.*" width="400" height="300" backgroundColor="0x888888">
+	<mx:Label y="200" text="mySubWindow"/>
+	
+</comp:MyWindow>

Added: incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/SWFs/comps/MyWindow.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/SWFs/comps/MyWindow.mxml?rev=1370009&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/SWFs/comps/MyWindow.mxml (added)
+++ incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/SWFs/comps/MyWindow.mxml Mon Aug  6 20:51:08 2012
@@ -0,0 +1,35 @@
+<?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:Window 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="400" height="300"  >
+	  
+	<fx:Script>
+		<![CDATA[
+			import mx.collections.ArrayCollection;
+			[Embed(source="../../../../../../../Assets/Images/smallorangerect.jpg")]
+			private var titleIcon1:Class;
+			[Bindable]
+			private var d:ArrayCollection=new ArrayCollection([{slno:"1",name:"Joseph",age:"23"},{slno:"2",name:"Jeena",age:"21"},{slno:"3",name:"Jerry",age:"4"}
+	   	 ,{slno:"4",name:"Tom",age:"1"},{slno:"5",name:"Rick",age:"12"},{slno:"6",name:"John",age:"52"}]);
+		]]>
+        </fx:Script>   	 	
+	<s:Button label="test button" />
+	<s:DropDownList y="30" labelField="test" id="slno"   dataProvider="{d}"/>
+</s:Window>

Added: incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/SWFs/comps/MyWindowWithButton.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/SWFs/comps/MyWindowWithButton.mxml?rev=1370009&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/SWFs/comps/MyWindowWithButton.mxml (added)
+++ incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/SWFs/comps/MyWindowWithButton.mxml Mon Aug  6 20:51:08 2012
@@ -0,0 +1,22 @@
+<?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:Window 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="400" height="300">
+	<s:Button id="childButton" name="childButton" label="childButton" />
+</s:Window>

Added: incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/SWFs/comps/MyWindowWithContents.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/SWFs/comps/MyWindowWithContents.mxml?rev=1370009&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/SWFs/comps/MyWindowWithContents.mxml (added)
+++ incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/SWFs/comps/MyWindowWithContents.mxml Mon Aug  6 20:51:08 2012
@@ -0,0 +1,44 @@
+<?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:Window 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="400" height="300"
+	>
+<fx:Script>
+	<![CDATA[
+		import flash.events.Event;
+		import mx.collections.ArrayCollection;
+		[Bindable]
+		private var d:ArrayCollection=new ArrayCollection([{slno:"1",name:"Joseph",age:"23"},{slno:"2",name:"Jeena",age:"21"},{slno:"3",name:"Jerry",age:"4"}
+	   	 ,{slno:"4",name:"Tom",age:"1"},{slno:"5",name:"Rick",age:"12"},{slno:"6",name:"John",age:"52"}]);
+	   	
+		public function onBtnClick(event:Event):void
+		{
+			trace(event.currentTarget.label);
+			ta.text=event.currentTarget.label+" is clicked";
+		}
+	]]>
+</fx:Script>
+	<s:CheckBox id="checkBox1" label="available"  y="10" />
+	<s:Button id="button1" y="35" label="test Button" name="childButton" click="onBtnClick(event)" />
+	<mx:Label id="label1" y="60" name="childLabel" text="test labe in myWindow with content" fontSize="16" visible="false" />
+	<s:TextArea id="ta" width="150" height="40" y="75" />
+	<mx:DataGrid y="120" name="datagrid1" id="dg1"   dataProvider="{d}" />
+</s:Window>

Added: incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/SWFs/comps/MyWindowWithRTLContents.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/SWFs/comps/MyWindowWithRTLContents.mxml?rev=1370009&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/SWFs/comps/MyWindowWithRTLContents.mxml (added)
+++ incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/SWFs/comps/MyWindowWithRTLContents.mxml Mon Aug  6 20:51:08 2012
@@ -0,0 +1,42 @@
+<?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:Window 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="400" height="300"
+	>
+<fx:Script>
+	<![CDATA[
+		import flash.events.Event;
+		import mx.collections.ArrayCollection;
+		[Bindable]
+		private var d:ArrayCollection=new ArrayCollection([{slno:"1",name:"Joseph",age:"23"},{slno:"2",name:"Jeena",age:"21"},{slno:"3",name:"Jerry",age:"4"}
+	   	 ,{slno:"4",name:"Tom",age:"1"},{slno:"5",name:"Rick",age:"12"},{slno:"6",name:"John",age:"52"}]);
+	   	
+		 
+	]]>
+</fx:Script>
+	<s:CheckBox id="checkBox1" label="available"  y="10" direction="rtl" layoutDirection="rtl"/>
+	<s:Button id="button1" y="35" label="test Button" name="childButton" />
+	
+	<mx:Label id="label1" y="60" name="childLabel" text="test labe in myWindow with content" fontSize="16" visible="false" />
+	<s:TextArea id="ta" width="150" height="40" y="75" text="this is a test"/>
+	<mx:DataGrid y="120" name="datagrid1" id="dg1"   dataProvider="{d}" direction="rtl" layoutDirection="rtl"/>
+	
+</s:Window>

Added: incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/SWFs/comps/ParentWindow.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/SWFs/comps/ParentWindow.mxml?rev=1370009&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/SWFs/comps/ParentWindow.mxml (added)
+++ incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/SWFs/comps/ParentWindow.mxml Mon Aug  6 20:51:08 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.
+
+-->
+<s:Window 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="400" height="300"
+	 creationComplete="openAWindow()" close="subWinObj.close()">
+	<fx:Script>
+	<![CDATA[
+		import spark.components.windowClasses.TitleBar;
+		import spark.components.Window;
+		import comps.SubWindow;
+		
+		public var subWinObj:SubWindow;
+		public var b:Boolean=false;
+		public function openAWindow():void
+		{
+			subWinObj=new SubWindow();
+			subWinObj.systemChrome="standard";
+			subWinObj.alwaysInFront=false;
+			subWinObj.title="level2";
+			subWinObj.setStyle("backgroundColor",0x00ff00);
+
+			subWinObj.width=400;
+			subWinObj.height=400;
+
+			subWinObj.open(true);
+
+		}
+	]]>
+</fx:Script>
+<mx:Label text="I am the parent of SunWindow,level 2" />
+
+</s:Window>

Added: incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/SWFs/comps/PlainWindow.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/SWFs/comps/PlainWindow.mxml?rev=1370009&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/SWFs/comps/PlainWindow.mxml (added)
+++ incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/SWFs/comps/PlainWindow.mxml Mon Aug  6 20:51:08 2012
@@ -0,0 +1,24 @@
+<?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:Window 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="400" height="400" >
+</s:Window>
\ No newline at end of file

Added: incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/SWFs/comps/RTLWindowWithContents.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/SWFs/comps/RTLWindowWithContents.mxml?rev=1370009&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/SWFs/comps/RTLWindowWithContents.mxml (added)
+++ incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/SWFs/comps/RTLWindowWithContents.mxml Mon Aug  6 20:51:08 2012
@@ -0,0 +1,42 @@
+<?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:Window 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="400" height="300" direction="rtl" layoutDirection="rtl"
+	>
+<fx:Script>
+	<![CDATA[
+		import flash.events.Event;
+		import mx.collections.ArrayCollection;
+		[Bindable]
+		private var d:ArrayCollection=new ArrayCollection([{slno:"1",name:"Joseph",age:"23"},{slno:"2",name:"Jeena",age:"21"},{slno:"3",name:"Jerry",age:"4"}
+	   	 ,{slno:"4",name:"Tom",age:"1"},{slno:"5",name:"Rick",age:"12"},{slno:"6",name:"John",age:"52"}]);
+	   	
+		 
+	]]>
+</fx:Script>
+	<s:CheckBox id="checkBox1" label="available"  y="10" />
+	<s:Button id="button1" y="35" label="test Button" name="childButton" />
+	
+	<mx:Label id="label1" y="60" name="childLabel" text="test labe in myWindow with content" fontSize="16" visible="false" />
+	<s:TextArea id="ta" width="150" height="40" y="75" text="this is a test"/>
+	<mx:DataGrid y="120" name="datagrid1" id="dg1"   dataProvider="{d}" />
+	
+</s:Window>

Added: incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/SWFs/comps/SkinTest1.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/SWFs/comps/SkinTest1.mxml?rev=1370009&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/SWFs/comps/SkinTest1.mxml (added)
+++ incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/SWFs/comps/SkinTest1.mxml Mon Aug  6 20:51:08 2012
@@ -0,0 +1,129 @@
+<s:SparkSkin xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" alpha.disabledGroup="0.5" >
+
+    <fx:Metadata>
+      /**
+       *  The host component of this skin.
+       */
+      [HostComponent("Object")]
+    </fx:Metadata>
+
+    <fx:Script>
+        /*  Define the skin elements that should not be colorized. 
+         *  For WindowedApplication, border and status bar background are colorized,
+         *  but the content area and status text are not. 
+         *  Exclude the titleBar because it is a SparkSkin and we 
+         *  don't want to colorize it twice.
+         */
+        static private const exclusions:Array = ["backgroundRect", "contentGroup", "titleBar",
+                                                 "titleBarBackgroundRect", "statusText",
+                                                 "borderBgFill"];
+
+        /** 
+         * @inheritDoc
+         */
+        override public function get colorizeExclusions():Array {return exclusions;}
+        
+    </fx:Script>
+    
+    <s:states>
+        <s:State name="normal" />
+        <s:State name="disabled" stateGroups="disabledGroup" />
+        <s:State name="normalAndInactive" stateGroups="inactiveGroup" />
+        <s:State name="disabledAndInactive" stateGroups="disabledGroup, inactiveGroup" />
+    </s:states>
+
+    <!-- layer 1: background fill -->
+    <!--- Defines the background color of the skin. -->
+    <s:Rect id="backgroundRect" left="1" right="1" top="1" bottom="25">
+        <s:fill>
+            <s:SolidColor color="0xffff00" />
+        </s:fill>
+    </s:Rect>
+
+    <!-- title bar background fill for when the title bar is inactive -->
+    <!--- Defines the background color of the title bar. -->
+    <s:Rect id="titleBarBackgroundRect" left="0" right="0" top="0" height="24" visible="{titleBar.visible}" >
+        <s:fill>
+            <!--- @private -->
+            <s:SolidColor id="titleBarBgFill" color="0xFFFFFF" />
+        </s:fill>
+    </s:Rect>
+
+        
+    <!-- layer 2: titlebar + content + status bar -->
+    <s:Group left="1" right="1" top="1" bottom="1" minHeight="24" minWidth="0" >
+        <s:layout>
+            <s:VerticalLayout gap="0"/>
+        </s:layout>
+    
+        <!-- title bar to display when not using 'systemChrome' -->
+        <!--- Defines the TitleBar container for the title bar, button,s and icon. -->
+        <s:TitleBar id="titleBar" width="100%" height="24" alpha.inactiveGroup="0.5" />
+        
+        <!-- content -->
+        <!--- Defines the Group container where the content children get pushed into and laid out. -->
+        <s:Group id="contentGroup" width="100%" height="100%" minHeight="0" minWidth="0"/>
+        
+        <!-- status bar -->
+        <!--- Defines the Group container for the status bar. -->
+        <s:Group id="statusBar" width="100%" minHeight="24" >
+        
+            <!-- status bar fill -->
+            <s:Rect>
+               <s:fill>
+                    <s:LinearGradient rotation="90">
+                        <s:GradientEntry color="0xE2E2E2" />
+                        <s:GradientEntry color="0xD9D9D9" />
+                    </s:LinearGradient>
+               </s:fill>
+            </s:Rect>
+            
+            <!-- status bar highlight -->
+            <s:Rect left="1" right="1" top="1" bottom="0" >
+               <s:stroke>
+                    <s:LinearGradientStroke rotation="90" weight="1">
+                        <s:GradientEntry color="0xEAEAEA" />
+                        <s:GradientEntry color="0xBEBEBE" />
+                    </s:LinearGradientStroke>
+               </s:stroke>
+            </s:Rect>
+        
+            <!-- status text -->
+            <!--- Defines the Label control for the text in the status bar. -->
+            <s:Label id="statusText" top="2" bottom="2" left="10" right="10" verticalAlign="middle" 
+                fontSize="10" color="0x585858" width="100%" maxDisplayedLines="1" />
+                    
+        </s:Group> 
+
+    </s:Group>
+    
+    <!-- layer 3: gripper -->
+    <!--- 
+        Defines the Button control for the gripper button. 
+        By default, the button uses the spark.skins.spark.windowChrome.GripperSkin class
+        to define the skin for the gripper button.
+            
+        @see spark.skins.spark.windowChrome.GripperSkin 
+    -->
+    <s:Button id="gripper" right="3" bottom="3" skinClass="spark.skins.spark.windowChrome.GripperSkin" /> 
+
+    <!-- layer 4: border -->
+    
+    <!-- background of border for when it is alpha=0.5 -->
+    <!--- Defines the background color of the border. -->
+    <s:Group id="borderBgFill" left="0" right="0" top="0" bottom="0" >
+        <s:Rect left="0" right="0" top="0" bottom="0">
+            <s:stroke>
+                <s:SolidColorStroke weight="1" color="0xFFFFFF" />
+            </s:stroke>
+        </s:Rect>
+    </s:Group>
+
+    <!-- the border -->
+    <s:Rect left="0" right="0" top="0" bottom="0">
+        <s:stroke>
+            <s:SolidColorStroke alpha.inactiveGroup="0.5" weight="1" color="0xA6A6A6" />
+        </s:stroke>
+    </s:Rect>
+        
+</s:SparkSkin>

Added: incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/SWFs/comps/SkinWithScroller.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/SWFs/comps/SkinWithScroller.mxml?rev=1370009&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/SWFs/comps/SkinWithScroller.mxml (added)
+++ incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/SWFs/comps/SkinWithScroller.mxml Mon Aug  6 20:51:08 2012
@@ -0,0 +1,137 @@
+<!--- A skin class for the Spark WindowedApplication and Window containers. 
+      This class defines just a border and status bar, but no gripper button, 
+      title bar, or title bar buttons.
+      
+      <p>You can either use  system chrome, the FlexChromSkin class, or 
+      the WindowedApplicationSkin class to define the appearance of 
+      the WindowedApplication and Window containers. 
+      To use the WindowedApplicationSkin class with the WindowedApplication container, 
+      set <code>systemChrome</code> to "none" 
+      in the application's .xml file, and set the <code>skinClass</code> style to
+      spark.skins.spark.WindowedApplicationSkin. 
+      To use the WindowedApplicationSkin class with the Window container, 
+      set the <code>Window.systemChrome</code> property to "none", 
+      and set the <code>skinClass</code> style to
+      spark.skins.spark.WindowedApplicationSkin.</p>
+
+      @see spark.components.WindowedApplication
+       
+      @langversion 3.0
+      @playerversion Flash 10
+      @playerversion AIR 1.5
+      @productversion Flex 4 
+      
+-->
+<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" alpha.disabledGroup="0.5" >
+
+    <fx:Metadata>
+      /**
+       *  The host component of this skin.
+       * 
+       * @langversion 3.0
+       * @playerversion Flash 10
+       * @playerversion AIR 1.5
+       * @productversion Flex 4 
+       */
+      [HostComponent("Object")]
+    </fx:Metadata>
+
+    <fx:Script fb:purpose="styling">
+        /*  Define the skin elements that should not be colorized. 
+         *  For WindowedApplication, border and status bar background are colorized,
+         *  but the content area and status text are not. 
+         *  Exclude the titleBar and scroller because they are SparkSkins and we 
+         *  don't want to colorize them twice.
+         * 
+         * @langversion 3.0
+         * @playerversion Flash 10
+         * @playerversion AIR 1.5
+         * @productversion Flex 4 
+         */
+        static private const exclusions:Array = ["backgroundRect", "contentGroup", "statusText"];
+        
+        /**
+         * @private
+         */
+        override public function get colorizeExclusions():Array {return exclusions;}
+        
+        /**
+         * @private
+         */
+        override protected function initializationComplete():void
+        {
+            useChromeColor = true;
+            super.initializationComplete();
+        } 
+        
+        /**
+         *  @private
+         */
+        override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number) : void
+        {
+            backgroundFill.color = getStyle("backgroundColor");
+            backgroundFill.alpha = getStyle("backgroundAlpha");
+            super.updateDisplayList(unscaledWidth, unscaledHeight);
+        }
+    </fx:Script>
+    
+     <s:states>
+        <s:State name="normal" />
+        <s:State name="disabled" stateGroups="disabledGroup" />
+        <s:State name="normalAndInactive" stateGroups="inactiveGroup" />
+        <s:State name="disabledAndInactive" stateGroups="disabledGroup, inactiveGroup" />
+    </s:states>
+
+    <!-- layer 1: background fill -->
+    <!--- Defines the background color of the skin. -->
+    <s:Rect id="backgroundRect" left="0" right="0" top="0" bottom="0" >
+        <s:fill>
+            <!--- @private -->
+            <s:SolidColor id="backgroundFill" />
+        </s:fill>
+    </s:Rect>
+
+    <!-- layer 2: content + status bar -->
+    <s:Group left="0" right="0" top="0" bottom="0" minHeight="24" minWidth="0" >
+        <s:layout>
+            <s:VerticalLayout gap="0"/>
+        </s:layout>
+        <s:Scroller width="100%" height="100%" minHeight="0" minWidth="0" >
+        <!-- content -->
+        <!--- Defines the Group container where the content children get pushed into and laid out. -->
+        <s:Group id="contentGroup" width="100%" height="100%" minHeight="0" minWidth="0"/>
+        </s:Scroller>
+        <!-- status bar -->
+        <!--- Defines the Group container for the status bar. -->
+        <s:Group id="statusBar" width="100%" minHeight="24" >
+        
+            <!-- status bar fill -->
+            <s:Rect left="0" right="0" top="0" bottom="0">
+               <s:fill>
+                    <s:LinearGradient rotation="90">
+                        <s:GradientEntry color="0xE2E2E2" />
+                        <s:GradientEntry color="0xD9D9D9" />
+                    </s:LinearGradient>
+               </s:fill>
+            </s:Rect>
+            
+            <!-- status bar highlight -->
+            <s:Rect left="1" right="1" top="1" bottom="0" >
+               <s:stroke>
+                    <s:LinearGradientStroke rotation="90" weight="1">
+                        <s:GradientEntry color="0xEAEAEA" />
+                        <s:GradientEntry color="0xBEBEBE" />
+                    </s:LinearGradientStroke>
+               </s:stroke>
+            </s:Rect>
+        
+            <!-- status text -->
+            <!--- Defines the Label control for the text in the status bar. -->
+            <s:Label id="statusText" top="2" bottom="2" left="10" right="10" verticalAlign="middle" 
+                fontSize="10" color="0x585858" width="100%" maxDisplayedLines="1" />
+
+        </s:Group> 
+    </s:Group>
+
+</s:SparkSkin>

Added: incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/SWFs/comps/SkinWithStates.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/SWFs/comps/SkinWithStates.mxml?rev=1370009&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/SWFs/comps/SkinWithStates.mxml (added)
+++ incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/SWFs/comps/SkinWithStates.mxml Mon Aug  6 20:51:08 2012
@@ -0,0 +1,177 @@
+<!--- A skin class for the Spark WindowedApplication component. 
+      This class defines the Flex chrome which includes a border, status bar, 
+      gripper button, title bar, and title bar buttons.
+      
+      <p>You can either use  system chrome, the FlexChromSkin class, or 
+      the WindowedApplicationSkin class to define the appearance of 
+      the WindowedApplication and Window containers. 
+      To use the FlexChromSkin class with the WindowedApplication container, 
+      set <code>systemChrome</code> to "none" 
+      in the application's .xml file, and set the <code>skinClass</code> style to
+      spark.skins.spark.FlexChromSkin. 
+      To use the FlexChromSkin class with the Window container, 
+      set the <code>Window.systemChrome</code> property to "none", 
+      and set the <code>skinClass</code> style to
+      spark.skins.spark.FlexChromSkin.</p>
+
+      @see spark.components.WindowedApplication
+
+      @langversion 3.0
+      @playerversion Flash 10
+      @playerversion AIR 1.5
+      @productversion Flex 4      
+-->
+<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" alpha.disabledGroup="0.5" >
+
+    <fx:Metadata>
+      /**
+       *  The host component of this skin.
+       * 
+       * @langversion 3.0
+       * @playerversion Flash 10
+       * @playerversion AIR 1.5
+       * @productversion Flex 4 
+       */
+      [HostComponent("Object")]
+    </fx:Metadata>
+
+    <fx:Script fb:purpose="styling">
+        /*  Define the skin elements that should not be colorized. 
+         *  For WindowedApplication, border and status bar background are colorized,
+         *  but the content area and status text are not. 
+         *  Exclude the titleBar because it is a SparkSkin and we 
+         *  don't want to colorize it twice.
+         * 
+         * @langversion 3.0
+         * @playerversion Flash 10
+         * @playerversion AIR 1.5
+         * @productversion Flex 4 
+         */
+        static private const exclusions:Array = ["backgroundRect", "contentGroup", "titleBar",
+                                                 "titleBarBackgroundRect", "statusText",
+                                                 "borderBgFill"];
+
+        /**
+         * @private
+         */
+        override public function get colorizeExclusions():Array {return exclusions;}
+        
+        /**
+         * @private
+         */
+        override protected function initializationComplete():void
+        {
+            useChromeColor = true;
+            super.initializationComplete();
+        } 
+        
+    </fx:Script>
+    
+    <s:states>
+        <s:State name="normal" />
+        <s:State name="disabled" stateGroups="disabledGroup" />
+        <s:State name="normalAndInactive" stateGroups="inactiveGroup" />
+        <s:State name="disabledAndInactive" stateGroups="disabledGroup, inactiveGroup" />
+	<s:State name="sadState" />
+	<s:State name="happyState" />
+	<s:State name="sophisticatedState" />
+        <s:State name="blandState" />
+    </s:states>
+
+    <!-- layer 1: background fill -->
+  
+   <s:Rect id="backgroundRect" left="1" right="1" top="1" bottom="25">
+        <s:fill>
+            <s:SolidColor id="backgroundFill" color.sadState="0x0000ff" color.happyState="0xffff00" color.sophisticatedState="0x000000" color.blandState="0xffffff" />
+        </s:fill>
+    </s:Rect>
+
+    <!-- title bar background fill for when the title bar is inactive -->
+    <!--- Defines the background color of the title bar. -->
+    <s:Rect id="titleBarBackgroundRect" left="0" right="0" top="0" height="24" visible="{titleBar.visible}" >
+        <s:fill>
+            <!--- @private -->
+            <s:SolidColor id="titleBarBgFill" color="0xFFFFFF" />
+        </s:fill>
+    </s:Rect>
+
+        
+    <!-- layer 2: titlebar + content + status bar -->
+    <s:Group left="1" right="1" top="1" bottom="1" minHeight="24" minWidth="0" >
+        <s:layout>
+            <s:VerticalLayout gap="0"/>
+        </s:layout>
+    
+        <!-- title bar to display when not using 'systemChrome' -->
+        <!--- Defines the TitleBar container for the title bar, button,s and icon. -->
+        <s:TitleBar id="titleBar" width="100%" minHeight="24" alpha.inactiveGroup="0.5" />
+        
+        <!-- content -->
+        <!--- Defines the Group container where the content children get pushed into and laid out. -->
+        <s:Group id="contentGroup" width="100%" height="100%" minHeight="0" minWidth="0"/>
+        
+        <!-- status bar -->
+        <!--- Defines the Group container for the status bar. -->
+        <s:Group id="statusBar" width="100%" minHeight="24" >
+        
+            <!-- status bar fill -->
+            <s:Rect left="0" right="0" top="0" bottom="0">
+               <s:fill>
+                    <s:LinearGradient rotation="90">
+                        <s:GradientEntry color="0xE2E2E2" />
+                        <s:GradientEntry color="0xD9D9D9" />
+                    </s:LinearGradient>
+               </s:fill>
+            </s:Rect>
+            
+            <!-- status bar highlight -->
+            <s:Rect left="1" right="1" top="1" bottom="0" >
+               <s:stroke>
+                    <s:LinearGradientStroke rotation="90" weight="1">
+                        <s:GradientEntry color="0xEAEAEA" />
+                        <s:GradientEntry color="0xBEBEBE" />
+                    </s:LinearGradientStroke>
+               </s:stroke>
+            </s:Rect>
+        
+            <!-- status text -->
+            <!--- Defines the Label control for the text in the status bar. -->
+            <s:Label id="statusText" top="2" bottom="2" left="10" right="10" verticalAlign="middle" 
+                fontSize="10" color="0x585858" width="100%" maxDisplayedLines="1" />
+                    
+        </s:Group> 
+
+    </s:Group>
+    
+    <!-- layer 3: gripper -->
+    <!--- 
+        Defines the Button control for the gripper button. 
+        By default, the button uses the spark.skins.spark.windowChrome.GripperSkin class
+        to define the skin for the gripper button.
+            
+        @see spark.skins.spark.windowChrome.GripperSkin 
+    -->
+    <s:Button id="gripper" right="3" bottom="3" tabEnabled="false" 
+              skinClass="spark.skins.spark.windowChrome.GripperSkin" /> 
+
+    <!-- layer 4: border -->
+    
+    <!-- background of border for when it is alpha=0.5 -->
+    <!--- Defines the background color of the border. -->
+    <s:Group id="borderBgFill" left="0" right="0" top="0" bottom="0" >
+        <s:Rect left="0" right="0" top="0" bottom="0">
+            <s:stroke>
+                <s:SolidColorStroke weight="1" color="0xFFFFFF" />
+            </s:stroke>
+        </s:Rect>
+    </s:Group>
+
+    <!-- the border -->
+    <s:Rect left="0" right="0" top="0" bottom="0">
+        <s:stroke>
+            <s:SolidColorStroke alpha.inactiveGroup="0.5" weight="1" color="0xA6A6A6" />
+        </s:stroke>
+    </s:Rect>
+        
+</s:SparkSkin>

Added: incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/SWFs/comps/SubWindow.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/SWFs/comps/SubWindow.mxml?rev=1370009&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/SWFs/comps/SubWindow.mxml (added)
+++ incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/SWFs/comps/SubWindow.mxml Mon Aug  6 20:51:08 2012
@@ -0,0 +1,45 @@
+<?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:Window 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="400" height="300"
+	   creationComplete="openAWindow()" close="objInSubWin.close()">
+<fx:Script>
+	<![CDATA[
+		import spark.components.windowClasses.TitleBar;
+		import spark.components.Window;
+		public var  objInSubWin:Window;
+		public var b:Boolean=false;
+		public function openAWindow():void
+			{
+				objInSubWin=new Window()
+				objInSubWin.systemChrome="standard";
+				objInSubWin.alwaysInFront=false;
+				objInSubWin.title="level3";
+			 
+				objInSubWin.width=400;
+				objInSubWin.height=400;
+				 
+			 	objInSubWin.open(true);
+			 	 
+			}
+	]]>
+</fx:Script>	
+<mx:Label text="I am a subWindow, level 3 " />
+</s:Window>

Added: incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/SWFs/comps/WindowChildSizeDefault.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/SWFs/comps/WindowChildSizeDefault.mxml?rev=1370009&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/SWFs/comps/WindowChildSizeDefault.mxml (added)
+++ incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/SWFs/comps/WindowChildSizeDefault.mxml Mon Aug  6 20:51:08 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:Window 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:BasicLayout/>
+        </s:layout>
+	<s:Group>
+    <s:Button id="parentBtn" label="parent" />
+    
+    <s:Group id="childGroup">
+        <s:layout>
+            <s:BasicLayout/>
+        </s:layout>
+
+        <s:Button id="childBtn" label="child" />
+
+        <s:Rect id="childBorder" width="200" height="200">
+            <s:stroke>
+                <s:SolidColorStroke color="0x00FF00"/>
+            </s:stroke>
+        </s:Rect>  
+    </s:Group> 
+
+    <s:Rect id="border" left="0" right="0" top="0" bottom="0">
+        <s:stroke>
+            <s:SolidColorStroke color="0xFF0000"/>
+        </s:stroke>
+    </s:Rect>  
+</s:Group>
+</s:Window>

Added: incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/SWFs/comps/WindowChildSizeExplicitSet.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/SWFs/comps/WindowChildSizeExplicitSet.mxml?rev=1370009&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/SWFs/comps/WindowChildSizeExplicitSet.mxml (added)
+++ incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/SWFs/comps/WindowChildSizeExplicitSet.mxml Mon Aug  6 20:51:08 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:Window 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="400" height="300"  	>
+	  <s:layout>
+            <s:BasicLayout/>
+        </s:layout>
+	<s:Group>
+    <s:Button id="parentBtn" label="parent" />
+    
+    <s:Group id="childGroup" width="300" height="300">
+        <s:layout>
+            <s:BasicLayout/>
+        </s:layout>
+
+        <s:Button id="childBtn" label="child"  top="50" bottom="50" left="50" right="50"/>
+
+        <s:Rect id="childBorder" left="0" right="0" top="0" bottom="0">
+            <s:stroke>
+                <s:SolidColorStroke color="0x00FF00"/>
+            </s:stroke>
+        </s:Rect>  
+    </s:Group> 
+
+    <s:Rect id="border" left="0" right="0" top="0" bottom="0">
+        <s:stroke>
+            <s:SolidColorStroke color="0xFF0000"/>
+        </s:stroke>
+    </s:Rect>  
+</s:Group>
+</s:Window>

Added: incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/SWFs/comps/WindowSizeSet.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/SWFs/comps/WindowSizeSet.mxml?rev=1370009&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/SWFs/comps/WindowSizeSet.mxml (added)
+++ incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/SWFs/comps/WindowSizeSet.mxml Mon Aug  6 20:51:08 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:Window 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="300" height="300">
+	  <s:layout>
+            <s:BasicLayout/>
+        </s:layout>
+	<s:Group>
+    <s:Button id="parentBtn" label="parent" />
+    
+    <s:Group id="childGroup">
+        <s:layout>
+            <s:BasicLayout/>
+        </s:layout>
+
+        <s:Button id="childBtn" label="child"  top="50" bottom="50" left="50" right="50"/>
+
+        <s:Rect id="childBorder" left="0" right="0" top="0" bottom="0">
+            <s:stroke>
+                <s:SolidColorStroke color="0x00FF00"/>
+            </s:stroke>
+        </s:Rect>  
+    </s:Group> 
+
+    <s:Rect id="border" left="0" right="0" top="0" bottom="0">
+        <s:stroke>
+            <s:SolidColorStroke color="0xFF0000"/>
+        </s:stroke>
+    </s:Rect>  
+</s:Group>
+</s:Window>

Added: incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/SWFs/comps/WindowWithBindableSettings.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/SWFs/comps/WindowWithBindableSettings.mxml?rev=1370009&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/SWFs/comps/WindowWithBindableSettings.mxml (added)
+++ incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/SWFs/comps/WindowWithBindableSettings.mxml Mon Aug  6 20:51:08 2012
@@ -0,0 +1,60 @@
+<?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:Window 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="{widthVal}" height="{heightVal}" status="{statusStr}" 
+	 titleIcon="{titleIconRef}" title="{titleStr}" 
+	 maxHeight="{maxHeightVal}" maxWidth="{maxWidthVal}"
+	 minHeight="{minHeightVal}" minWidth="{minWidthVal}">
+    <fx:Script>
+        <![CDATA[
+        [Bindable]
+        public var statusStr:String;
+        
+        [Bindable]
+        public var widthVal:Number=400;
+        
+        [Bindable]
+        public var heightVal:Number=400;
+        
+        [Bindable]
+        public var maxHeightVal:Number=1800;
+        
+        [Bindable]
+        public var maxWidthVal:Number=1800;
+        
+                
+	[Bindable]
+	public var minHeightVal:Number=50;
+
+	[Bindable]
+        public var minWidthVal:Number=50;
+        
+ 	[Embed(source="../../../../../../../Assets/Images/yellowrect.jpg")]
+	[Bindable]
+	public var titleIconRef:Class;
+	
+	[Bindable]
+	public var titleStr:String="";
+	
+        ]]>
+    </fx:Script>
+</s:Window>
\ No newline at end of file

Added: incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/SWFs/comps/WindowWithClippedContent.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/SWFs/comps/WindowWithClippedContent.mxml?rev=1370009&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/SWFs/comps/WindowWithClippedContent.mxml (added)
+++ incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/SWFs/comps/WindowWithClippedContent.mxml Mon Aug  6 20:51:08 2012
@@ -0,0 +1,27 @@
+<?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:Window 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="400" height="300">
+	<s:CheckBox label="available"  y="10" />
+	<s:Button id="button1" x="600" y="500" label="test Button" name="childButton"   />
+	<mx:Label id="label1" x="600" y="60" name="childLabel" text="test label in myWindow with content" fontSize="16"  />
+	 <s:TextArea id="ta" width="150" height="40" y="140" />
+</s:Window>

Added: incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/SWFs/comps/WindowWithDeferredContent.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/SWFs/comps/WindowWithDeferredContent.mxml?rev=1370009&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/SWFs/comps/WindowWithDeferredContent.mxml (added)
+++ incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/SWFs/comps/WindowWithDeferredContent.mxml Mon Aug  6 20:51:08 2012
@@ -0,0 +1,60 @@
+<?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:Window 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="400" height="300"
+	creationPolicy="{policy}"  creationComplete="completeCreation()">
+	<fx:Script>
+		<![CDATA[
+			import spark.components.Button;
+			public var msg:String="";
+			[Bindable]
+			public var policy:String="none";//default value is none
+			[Bindable]
+			public var yValue:Number=100;//default y=100
+			override 	public  function createDeferredContent():void
+			{
+				super.createDeferredContent();
+				var b:spark.components.Button=new Button();
+				b.label="testButton";
+				b.name="testButton";
+				b.y= yValue;
+				this.addElement(b);
+				msg+=" testButton is created";
+			}
+		        //override  mouseDownHandler
+        		override protected function mouseDownHandler(e:MouseEvent):void
+        		{
+        			dispatchEvent(new MouseEvent("myMouseDown_handled", e.bubbles, e.cancelable, e.localX, 
+        					e.localY,e.relatedObject,
+        					e.ctrlKey, e.altKey,
+        					e.shiftKey, e.buttonDown, 
+        					e.delta, e.commandKey, 
+        					e.controlKey, e.clickCount));
+       			}
+	
+			public function completeCreation():void
+			{
+				msg=" creationComplete done";
+			}
+		]]>
+	</fx:Script>
+	
+</s:Window>

Added: incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/SWFs/comps/WindowWithModule.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/SWFs/comps/WindowWithModule.mxml?rev=1370009&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/SWFs/comps/WindowWithModule.mxml (added)
+++ incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/SWFs/comps/WindowWithModule.mxml Mon Aug  6 20:51:08 2012
@@ -0,0 +1,27 @@
+<?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:Window 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="400" height="300">
+	<s:Group>
+		
+	
+	<mx:Label text="loading module..." />
+	<mx:ModuleLoader url="./assets/testmodule.swf" />
+	</s:Group>
+</s:Window>

Added: incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/SWFs/comps/WindowWithPopup.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/SWFs/comps/WindowWithPopup.mxml?rev=1370009&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/SWFs/comps/WindowWithPopup.mxml (added)
+++ incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/SWFs/comps/WindowWithPopup.mxml Mon Aug  6 20:51:08 2012
@@ -0,0 +1,66 @@
+<?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:Window 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="400" height="400" 
+	creationComplete="initCollections();" close="closeAlert()" >
+    <fx:Script>
+        <![CDATA[
+            import mx.events.MenuEvent;
+            import mx.controls.Alert;
+            import spark.components.Button;
+            import mx.collections.*;
+            import mx.managers.PopUpManager;
+            public var curAlert:Alert;
+            [Bindable]
+            public var menuBarCollection:XMLListCollection;
+            private var menubarXML:XMLList =
+                <>
+                    <menuitem label="Menu1" data="top">
+                        <menuitem label="MenuItem 1-A" data="1A"/>
+                        <menuitem label="MenuItem 1-B" data="1B"/>
+                    </menuitem>
+                    <menuitem label="Menu2" data="top">
+                        <menuitem label="MenuItem 2-A" type="check"  data="2A"/>
+                        <menuitem type="separator"/>
+                        <menuitem label="MenuItem 2-B" >
+                            <menuitem label="SubMenuItem 3-A" type="radio"
+                                groupName="one" data="3A"/>
+                            <menuitem label="SubMenuItem 3-B" type="radio"
+                                groupName="one" data="3B"/>
+                        </menuitem>
+                    </menuitem>
+                </>;
+            private function initCollections():void {
+                menuBarCollection = new XMLListCollection(menubarXML);
+            }
+            
+            public function closeAlert():void
+            {
+            	if(curAlert != null){
+	                    PopUpManager.removePopUp(curAlert);
+            	}
+            }
+         ]]>
+    </fx:Script>
+        <mx:MenuBar labelField="@label" id="menuBar1" dataProvider="{menuBarCollection}" />
+        <s:Button y="100" id="btn1" label="Open Alert" click="curAlert=Alert.show('hello, world','alert '+this.title, 0x4);"/>
+</s:Window>
\ No newline at end of file

Added: incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/SWFs/comps/WindowWithScroller.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/SWFs/comps/WindowWithScroller.mxml?rev=1370009&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/SWFs/comps/WindowWithScroller.mxml (added)
+++ incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/SWFs/comps/WindowWithScroller.mxml Mon Aug  6 20:51:08 2012
@@ -0,0 +1,60 @@
+<?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:Window
+    xmlns:fx="http://ns.adobe.com/mxml/2009"
+    xmlns:mx="library://ns.adobe.com/flex/mx"
+    xmlns:s="library://ns.adobe.com/flex/spark"
+    width="400" height="400"
+    skinClass="comps.SkinWithScroller">
+
+<fx:Script>
+<![CDATA[
+
+]]>
+</fx:Script>
+
+<s:VGroup>
+    <s:TextInput id="ti1" />
+    <s:TextArea id="ta1" width="850" height="650" />
+</s:VGroup>
+
+</s:Window>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+

Added: incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/SWFs/comps/WindowWithSizeConstraints1.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/SWFs/comps/WindowWithSizeConstraints1.mxml?rev=1370009&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/SWFs/comps/WindowWithSizeConstraints1.mxml (added)
+++ incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/SWFs/comps/WindowWithSizeConstraints1.mxml Mon Aug  6 20:51:08 2012
@@ -0,0 +1,23 @@
+<s:Window
+    xmlns:fx="http://ns.adobe.com/mxml/2009"
+    xmlns:mx="library://ns.adobe.com/flex/mx"
+    xmlns:s="library://ns.adobe.com/flex/spark" width="400" height="400">
+
+    <fx:Script>
+    	<![CDATA[
+    	
+    	]]>
+    </fx:Script>
+
+<s:VGroup id="myGroup" paddingTop="10" paddingBottom="30" paddingLeft="10" paddingRight="30">
+	<s:Panel id="myOutterPanel" backgroundColor="0x00ff00" title="Outter Panel" top="5" bottom="5" left="5" right="5" width="200" height="200" >
+		<s:Panel id="myInnerPanel" title="Inner Panel" backgroundColor="0xff0000"/>
+	</s:Panel>
+	<s:Rect id="childBorder" left="10" right="30" top="10" bottom="30">
+	            <s:stroke>
+	                <s:SolidColorStroke color="0x0000FF" weight="3"/>
+	            </s:stroke>
+        </s:Rect> 
+</s:VGroup>   
+   	
+</s:Window>
\ No newline at end of file

Added: incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/SWFs/comps/WindowWithSizeConstraints2.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/SWFs/comps/WindowWithSizeConstraints2.mxml?rev=1370009&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/SWFs/comps/WindowWithSizeConstraints2.mxml (added)
+++ incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/SWFs/comps/WindowWithSizeConstraints2.mxml Mon Aug  6 20:51:08 2012
@@ -0,0 +1,21 @@
+<s:Window
+    xmlns:fx="http://ns.adobe.com/mxml/2009"
+    xmlns:mx="library://ns.adobe.com/flex/mx"
+    xmlns:s="library://ns.adobe.com/flex/spark" width="400" height="400"
+    left="30" right="60" >
+
+    <fx:Script>
+    	<![CDATA[
+    	
+    	]]>
+    </fx:Script>
+
+	<s:VGroup id="myGroup" paddingTop="10" paddingBottom="10" paddingLeft="10" paddingRight="10">
+		<s:Panel id="myOutterPanel" backgroundColor="0x00ff00" title="Outter Panel" top="5" bottom="5" left="5" right="5" width="200" height="200" layoutDirection="ltr" direction="ltr">
+			
+			<s:CheckBox id="chk1" x="100" y="50" label="inside test" />
+		</s:Panel>
+	</s:VGroup>   
+	<s:CheckBox id="chk2" x="100" y="300" label="outside test" />
+   	
+</s:Window>
\ No newline at end of file

Added: incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/SWFs/comps/WindowWithStates.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/SWFs/comps/WindowWithStates.mxml?rev=1370009&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/SWFs/comps/WindowWithStates.mxml (added)
+++ incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/SWFs/comps/WindowWithStates.mxml Mon Aug  6 20:51:08 2012
@@ -0,0 +1,70 @@
+<?xml version="1.0" encoding="utf-8"?>
+<s:Window 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="400" height="500"
+	 skinClass="spark.skins.spark.SparkChromeWindowedApplicationSkin"  systemChrome="none"
+	  currentState="showMenu" creationComplete="initCollections();">
+	
+<s:states>
+<s:State name="showStatus"
+	enterState="enterShowStatusState()"/>
+<s:State name="showMenu" enterState="enterShowMenuState()"/>
+</s:states>
+	
+<fx:Script>
+	<![CDATA[
+		import mx.core.windowClasses.StatusBar;
+		import flash.events.Event;
+	     import mx.events.MenuEvent;
+        import mx.controls.Alert;
+        import mx.collections.*;
+        [Bindable]
+        public var menuBarCollection:XMLListCollection;
+        private var menubarXML:XMLList =
+            <>
+                <menuitem label="Menu1" data="top">
+                    <menuitem label="MenuItem 1-A" data="1A"/>
+                    <menuitem label="MenuItem 1-B" data="1B"/>
+                </menuitem>
+                <menuitem label="Menu2" data="top">
+                    <menuitem label="MenuItem 2-A" type="check"  data="2A"/>
+                    <menuitem type="separator"/>
+                    <menuitem label="MenuItem 2-B" >
+                        <menuitem label="SubMenuItem 3-A" type="radio"
+                            groupName="one" data="3A"/>
+                        <menuitem label="SubMenuItem 3-B" type="radio"
+                            groupName="one" data="3B"/>
+                    </menuitem>
+                </menuitem>
+            </>;
+            private function initCollections():void {
+                menuBarCollection = new XMLListCollection(menubarXML);
+            }
+        [Bindable]
+		private var d:ArrayCollection=new ArrayCollection([{slno:"1",name:"Joseph",age:"23"},{slno:"2",name:"Jeena",age:"21"},{slno:"3",name:"Jerry",age:"4"}
+	   	 ,{slno:"4",name:"Tom",age:"1"},{slno:"5",name:"Rick",age:"12"},{slno:"6",name:"John",age:"52"}]);
+	   	
+		public function onBtnClick(event:Event):void
+		{
+			trace(event.currentTarget.label);
+			ta.text=event.currentTarget.label+" is clicked";
+		}
+		public function enterShowStatusState():void
+		{
+			this.title="show status state: this is a new status";
+			this.status="show status: new title";  
+			this.alwaysInFront=true;
+			this.label1.visible=true;
+		}
+		public function enterShowMenuState():void
+		{
+			this.alwaysInFront=false;
+		}
+	]]>
+</fx:Script>	
+    <mx:MenuBar y="0" labelField="@label" dataProvider="{menuBarCollection}" itemCreationPolicy="immediate" includeIn="showMenu"/>
+	<s:Button id="button1" y="35" label="test Button" name="childButton" click="onBtnClick(event)" includeIn="showStatus" />
+	<mx:Label id="label1" y="60" name="childLabel" text="test labe in myWindow with content" fontSize="16" visible="false"  includeIn="showStatus" />
+	<mx:DataGrid y="75" name="dropdownList" height="150" id="slno"   dataProvider="{d}"  includeIn="showMenu"/>
+	<s:CheckBox y="225" label="available"   />
+	<s:TextArea id="ta" width="150" y="240" />
+</s:Window>

Added: incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/SWFs/comps/WindowWithStates2.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/SWFs/comps/WindowWithStates2.mxml?rev=1370009&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/SWFs/comps/WindowWithStates2.mxml (added)
+++ incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/SWFs/comps/WindowWithStates2.mxml Mon Aug  6 20:51:08 2012
@@ -0,0 +1,58 @@
+<?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:Window
+    xmlns:fx="http://ns.adobe.com/mxml/2009" 
+    xmlns:mx="library://ns.adobe.com/flex/mx" 
+    xmlns:s="library://ns.adobe.com/flex/spark"
+    width="400" height="400"
+    skinClass="comps.SkinWithStates" >
+
+<fx:Script>
+<![CDATA[
+	public var skinState:String="blandState";
+        override protected function getCurrentSkinState():String{
+            switch(skinState){
+                case "sad":
+                    return "sadState";
+                case "happy":
+                    return "happyState";
+                case "sophisticated":
+                    return "sophisticatedState";
+                default:
+                    return "blandState";
+            }
+        }
+        
+        public function getSadSkinState():void
+        {
+        	skinState="sad";
+        	invalidateSkinState();
+        }
+       
+       public function getHappySkinState():void
+       {
+		skinState="happy";
+		invalidateSkinState();
+       }
+    
+]]>
+</fx:Script>
+
+</s:Window>

Added: incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/SWFs/pre_compile.sh
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/SWFs/pre_compile.sh?rev=1370009&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/SWFs/pre_compile.sh (added)
+++ incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/SWFs/pre_compile.sh Mon Aug  6 20:51:08 2012
@@ -0,0 +1,29 @@
+#!/bin/sh
+################################################################################
+##
+##  Licensed to the Apache Software Foundation (ASF) under one or more
+##  contributor license agreements.  See the NOTICE file distributed with
+##  this work for additional information regarding copyright ownership.
+##  The ASF licenses this file to You under the Apache License, Version 2.0
+##  (the "License"); you may not use this file except in compliance with
+##  the License.  You may obtain a copy of the License at
+##
+##      http://www.apache.org/licenses/LICENSE-2.0
+##
+##  Unless required by applicable law or agreed to in writing, software
+##  distributed under the License is distributed on an "AS IS" BASIS,
+##  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+##  See the License for the specific language governing permissions and
+##  limitations under the License.
+##
+################################################################################
+echo "Window/SWFs/pre_compile.sh: The SDK is $SDK_DIR"
+echo "Window/SWFs/pre_compile.sh: mxmlc version is " `$SDK_DIR/bin/mxmlc -version`
+
+cd assets
+
+echo "Removing previously compiled files..."
+rm -f `find . -name "*.swf"`
+
+$SDK_DIR/bin/amxmlc -static-rsls=true testmodule.mxml
+$SDK_DIR/bin/amxmlc -static-rsls=true MyWindowStyle1.css
\ No newline at end of file

Propchange: incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/SWFs/pre_compile.sh
------------------------------------------------------------------------------
    svn:executable = *



Mime
View raw message