You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by pe...@apache.org on 2012/08/06 22:51:43 UTC
svn commit: r1370009 [23/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...
Added: incubator/flex/trunk/mustella/tests/apollo/spark/components/WindowedApplication/SWFs/assets/SkinWithScroller.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/spark/components/WindowedApplication/SWFs/assets/SkinWithScroller.mxml?rev=1370009&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/apollo/spark/components/WindowedApplication/SWFs/assets/SkinWithScroller.mxml (added)
+++ incubator/flex/trunk/mustella/tests/apollo/spark/components/WindowedApplication/SWFs/assets/SkinWithScroller.mxml Mon Aug 6 20:51:08 2012
@@ -0,0 +1,133 @@
+<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="1" >
+ <s:fill>
+ <!--- @private -->
+ <s:SolidColor id="bgFill" color="{hostComponent.backgroundColor as uint}" />
+ </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:Scroller id="scroller1" width="100%" height="100%" hasFocusableChildren="true">
+ <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>
+
+ <!-- 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>
Propchange: incubator/flex/trunk/mustella/tests/apollo/spark/components/WindowedApplication/SWFs/assets/SkinWithScroller.mxml
------------------------------------------------------------------------------
svn:executable = *
Added: incubator/flex/trunk/mustella/tests/apollo/spark/components/WindowedApplication/SWFs/assets/SkinWithStates.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/spark/components/WindowedApplication/SWFs/assets/SkinWithStates.mxml?rev=1370009&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/apollo/spark/components/WindowedApplication/SWFs/assets/SkinWithStates.mxml (added)
+++ incubator/flex/trunk/mustella/tests/apollo/spark/components/WindowedApplication/SWFs/assets/SkinWithStates.mxml Mon Aug 6 20:51:08 2012
@@ -0,0 +1,163 @@
+<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:State name="sadState" />
+ <s:State name="happyState" />
+ <s:State name="sophisticatedState" />
+ <s:State name="blandState" />
+ </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.sadState="0x0000ff" color.happyState="0xffff00" color.sophisticatedState="0x000000" color.blandState="0xffffff" />
+ </s:fill>
+ </s:Rect>
+
+ <s:Rect id="backgroundRect2" left="20" right="20" top="20" bottom="44">
+ <s:fill>
+ <s:SolidColor color.sadState="0x0000ff" color.happyState="0xffff00" color.sophisticatedState="0x222222" color.blandState="0xffffff" />
+ </s:fill>
+ </s:Rect>
+
+ <s:Rect id="backgroundRect3" left="40" right="40" top="40" bottom="64">
+ <s:fill>
+ <s:SolidColor color.sadState="0x0000ff" color.happyState="0xffff00" color.sophisticatedState="0x444444" color.blandState="0xffffff" />
+ </s:fill>
+ </s:Rect>
+
+ <s:Rect id="backgroundRect4" left="60" right="60" top="60" bottom="84">
+ <s:fill>
+ <s:SolidColor color.sadState="0x0000ff" color.happyState="0xffff00" color.sophisticatedState="0x666666" color.blandState="0xffffff" />
+ </s:fill>
+ </s:Rect>
+
+ <s:Rect id="backgroundRect5" left="80" right="80" top="80" bottom="104">
+ <s:fill>
+ <s:SolidColor color.sadState="0x0000ff" color.happyState="0xffff00" color.sophisticatedState="0x888888" color.blandState="0xffffff" />
+ </s:fill>
+ </s:Rect>
+
+ <s:Rect id="backgroundRect6" left="100" right="100" top="100" bottom="124">
+ <s:fill>
+ <s:SolidColor color.sadState="0x0000ff" color.happyState="0xffff00" color.sophisticatedState="0xaaaaaa" 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%" 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>
Propchange: incubator/flex/trunk/mustella/tests/apollo/spark/components/WindowedApplication/SWFs/assets/SkinWithStates.mxml
------------------------------------------------------------------------------
svn:executable = *
Added: incubator/flex/trunk/mustella/tests/apollo/spark/components/WindowedApplication/SWFs/assets/SubclassedWA.as
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/spark/components/WindowedApplication/SWFs/assets/SubclassedWA.as?rev=1370009&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/apollo/spark/components/WindowedApplication/SWFs/assets/SubclassedWA.as (added)
+++ incubator/flex/trunk/mustella/tests/apollo/spark/components/WindowedApplication/SWFs/assets/SubclassedWA.as Mon Aug 6 20:51:08 2012
@@ -0,0 +1,61 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+// Licensed to the Apache Software Foundation (ASF) under one or more
+// contributor license agreements. See the NOTICE file distributed with
+// this work for additional information regarding copyright ownership.
+// The ASF licenses this file to You under the Apache License, Version 2.0
+// (the "License"); you may not use this file except in compliance with
+// the License. You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+////////////////////////////////////////////////////////////////////////////////
+package assets{
+
+ import flash.events.*;
+ import flash.geom.*;
+ import spark.components.WindowedApplication;
+
+ public class SubclassedWA extends WindowedApplication{
+
+ /**
+ * Constructor
+ **/
+ public function SubclassedWA():void{}
+
+ /**
+ * Test overriding mouseDownHandler.
+ **/
+ override protected function mouseDownHandler(e:MouseEvent):void{
+ dispatchEvent(new MouseEvent("wa_subclassed_mouseDown_handled"));
+ }
+
+ /**
+ * Test getting the skinParts property.
+ **/
+ public function getSkinParts():Object{
+ return this.skinParts;
+ }
+
+ /**
+ * Get the bounds property.
+ **/
+ public function getTheBounds():Rectangle{
+ return this.bounds;
+ }
+
+ /**
+ * Set the bounds property.
+ **/
+ public function setTheBounds(val:Rectangle):void{
+ this.bounds = val;
+ }
+
+ } // end class
+} // end package
\ No newline at end of file
Added: incubator/flex/trunk/mustella/tests/apollo/spark/components/WindowedApplication/SWFs/assets/TestWindowedApplication.as
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/spark/components/WindowedApplication/SWFs/assets/TestWindowedApplication.as?rev=1370009&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/apollo/spark/components/WindowedApplication/SWFs/assets/TestWindowedApplication.as (added)
+++ incubator/flex/trunk/mustella/tests/apollo/spark/components/WindowedApplication/SWFs/assets/TestWindowedApplication.as Mon Aug 6 20:51:08 2012
@@ -0,0 +1,45 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+// Licensed to the Apache Software Foundation (ASF) under one or more
+// contributor license agreements. See the NOTICE file distributed with
+// this work for additional information regarding copyright ownership.
+// The ASF licenses this file to You under the Apache License, Version 2.0
+// (the "License"); you may not use this file except in compliance with
+// the License. You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+////////////////////////////////////////////////////////////////////////////////
+package assets{
+
+ import spark.components.WindowedApplication;
+
+ public class TestWindowedApplication extends WindowedApplication{
+
+ public function TestWindowedApplication():void{
+ status = "bland";
+ }
+
+ override protected function getCurrentSkinState():String{
+ switch(status){
+ case "sad":
+ return "sadState";
+ case "happy":
+ return "happyState";
+ case "sophisticated":
+ return "sophisticatedState";
+ default:
+ return "blandState";
+ }
+ }
+
+
+
+ }
+}
\ No newline at end of file
Added: incubator/flex/trunk/mustella/tests/apollo/spark/components/WindowedApplication/SWFs/assets/WindowedApplicationModule.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/spark/components/WindowedApplication/SWFs/assets/WindowedApplicationModule.mxml?rev=1370009&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/apollo/spark/components/WindowedApplication/SWFs/assets/WindowedApplicationModule.mxml (added)
+++ incubator/flex/trunk/mustella/tests/apollo/spark/components/WindowedApplication/SWFs/assets/WindowedApplicationModule.mxml Mon Aug 6 20:51:08 2012
@@ -0,0 +1,64 @@
+<?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:WindowedApplication
+ 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="100"
+ height="100">
+
+<fx:Script>
+<![CDATA[
+
+]]>
+</fx:Script>
+
+<s:Rect id="rect1" width="100%" height="100%" >
+ <s:stroke>
+ <s:SolidColorStroke weight="1" />
+ </s:stroke>
+ <s:fill>
+ <s:SolidColor alpha="1" color="0x00ff00" />
+ </s:fill>
+</s:Rect>
+
+</s:WindowedApplication>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Added: incubator/flex/trunk/mustella/tests/apollo/spark/components/WindowedApplication/SWFs/assets/WindowedApplicationModule.xml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/spark/components/WindowedApplication/SWFs/assets/WindowedApplicationModule.xml?rev=1370009&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/apollo/spark/components/WindowedApplication/SWFs/assets/WindowedApplicationModule.xml (added)
+++ incubator/flex/trunk/mustella/tests/apollo/spark/components/WindowedApplication/SWFs/assets/WindowedApplicationModule.xml Mon Aug 6 20:51:08 2012
@@ -0,0 +1,153 @@
+<?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.
+
+-->
+<application xmlns="http://ns.adobe.com/air/application/1.5.1">
+
+<!-- Adobe AIR Application Descriptor File Template.
+
+ Specifies parameters for identifying, installing, and launching AIR applications.
+
+ xmlns - The Adobe AIR namespace: http://ns.adobe.com/air/application/1.5.1
+ The last segment of the namespace specifies the version
+ of the AIR runtime required for this application to run.
+
+ minimumPatchLevel - The minimum patch level of the AIR runtime required to run
+ the application. Optional.
+-->
+
+ <!-- The application identifier string, unique to this application. Required. -->
+ <id>WindowedApplicationModule</id>
+
+ <!-- Used as the filename for the application. Required. -->
+ <filename>WindowedApplicationModule</filename>
+
+ <!-- The name that is displayed in the AIR application installer.
+ May have multiple values for each language. See samples or xsd schema file. Optional. -->
+ <name>WindowedApplicationModule</name>
+
+ <!-- An application version designator (such as "v1", "2.5", or "Alpha 1"). Required. -->
+ <version>v1</version>
+
+ <!-- Description, displayed in the AIR application installer.
+ May have multiple values for each language. See samples or xsd schema file. Optional. -->
+ <!-- <description></description> -->
+
+ <!-- Copyright information. Optional -->
+ <!-- <copyright></copyright> -->
+
+ <!-- Settings for the application's initial window. Required. -->
+ <initialWindow>
+ <!-- The main SWF or HTML file of the application. Required. -->
+ <!-- Note: In Flex Builder, the SWF reference is set automatically. -->
+ <content>WindowedApplicationModule.swf</content>
+
+ <!-- The title of the main window. Optional. -->
+ <!-- <title></title> -->
+
+ <!-- The type of system chrome to use (either "standard" or "none"). Optional. Default standard. -->
+ <systemChrome>none</systemChrome>
+
+ <!-- Whether the window is transparent. Only applicable when systemChrome is none. Optional. Default false. -->
+ <!-- <transparent></transparent> -->
+
+ <!-- Whether the window is initially visible. Optional. Default false. -->
+ <!-- <visible></visible> -->
+
+ <!-- Whether the user can minimize the window. Optional. Default true. -->
+ <!-- <minimizable></minimizable> -->
+
+ <!-- Whether the user can maximize the window. Optional. Default true. -->
+ <!-- <maximizable></maximizable> -->
+
+ <!-- Whether the user can resize the window. Optional. Default true. -->
+ <!-- <resizable></resizable> -->
+
+ <!-- The window's initial width. Optional. -->
+ <!-- <width></width> -->
+
+ <!-- The window's initial height. Optional. -->
+ <!-- <height></height> -->
+
+ <!-- The window's initial x position. Optional. -->
+ <!-- <x></x> -->
+
+ <!-- The window's initial y position. Optional. -->
+ <!-- <y></y> -->
+
+ <!-- The window's minimum size, specified as a width/height pair, such as "400 200". Optional. -->
+ <!-- <minSize></minSize> -->
+
+ <!-- The window's initial maximum size, specified as a width/height pair, such as "1600 1200". Optional. -->
+ <!-- <maxSize></maxSize> -->
+ </initialWindow>
+
+ <!-- The subpath of the standard default installation location to use. Optional. -->
+ <!-- <installFolder></installFolder> -->
+
+ <!-- The subpath of the Programs menu to use. (Ignored on operating systems without a Programs menu.) Optional. -->
+ <!-- <programMenuFolder></programMenuFolder> -->
+
+ <!-- The icon the system uses for the application. For at least one resolution,
+ specify the path to a PNG file included in the AIR package. Optional. -->
+ <!-- <icon>
+ <image16x16></image16x16>
+ <image32x32></image32x32>
+ <image48x48></image48x48>
+ <image128x128></image128x128>
+ </icon> -->
+
+ <!-- Whether the application handles the update when a user double-clicks an update version
+ of the AIR file (true), or the default AIR application installer handles the update (false).
+ Optional. Default false. -->
+ <!-- <customUpdateUI></customUpdateUI> -->
+
+ <!-- Whether the application can be launched when the user clicks a link in a web browser.
+ Optional. Default false. -->
+ <!-- <allowBrowserInvocation></allowBrowserInvocation> -->
+
+ <!-- Listing of file types for which the application can register. Optional. -->
+ <!-- <fileTypes> -->
+
+ <!-- Defines one file type. Optional. -->
+ <!-- <fileType> -->
+
+ <!-- The name that the system displays for the registered file type. Required. -->
+ <!-- <name></name> -->
+
+ <!-- The extension to register. Required. -->
+ <!-- <extension></extension> -->
+
+ <!-- The description of the file type. Optional. -->
+ <!-- <description></description> -->
+
+ <!-- The MIME content type. -->
+ <!-- <contentType></contentType> -->
+
+ <!-- The icon to display for the file type. Optional. -->
+ <!-- <icon>
+ <image16x16></image16x16>
+ <image32x32></image32x32>
+ <image48x48></image48x48>
+ <image128x128></image128x128>
+ </icon> -->
+
+ <!-- </fileType> -->
+ <!-- </fileTypes> -->
+
+</application>
\ No newline at end of file
Added: incubator/flex/trunk/mustella/tests/apollo/spark/components/WindowedApplication/SWFs/assets/globalStyles.css
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/spark/components/WindowedApplication/SWFs/assets/globalStyles.css?rev=1370009&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/apollo/spark/components/WindowedApplication/SWFs/assets/globalStyles.css (added)
+++ incubator/flex/trunk/mustella/tests/apollo/spark/components/WindowedApplication/SWFs/assets/globalStyles.css Mon Aug 6 20:51:08 2012
@@ -0,0 +1,26 @@
+/*
+ *
+ * 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";
+
+global{
+ contentBackgroundColor: #00CC00;
+ contentBackgroundAlpha: 0.1;
+}
\ No newline at end of file
Added: incubator/flex/trunk/mustella/tests/apollo/spark/components/WindowedApplication/SWFs/assets/globalStyles2.css
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/spark/components/WindowedApplication/SWFs/assets/globalStyles2.css?rev=1370009&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/apollo/spark/components/WindowedApplication/SWFs/assets/globalStyles2.css (added)
+++ incubator/flex/trunk/mustella/tests/apollo/spark/components/WindowedApplication/SWFs/assets/globalStyles2.css Mon Aug 6 20:51:08 2012
@@ -0,0 +1,78 @@
+/*
+ *
+ * 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";
+
+ @font-face{
+ src: url("../../../../../../../Assets/Fonts/Open_Sans/OpenSans-Regular.ttf");
+ fontFamily: SparkVera;
+ embedAsCFF: true;
+ }
+
+
+ @font-face{
+ src: url("../../../../../../../Assets/Fonts/Open_Sans/OpenSans-Bold.ttf");
+ fontWeight: bold;
+ fontFamily: SparkVera;
+ embedAsCFF: true;
+ }
+
+ @font-face{
+ src: url("../../../../../../../Assets/Fonts/Open_Sans/OpenSans-Italic.ttf");
+ fontStyle: italic;
+ fontFamily: SparkVera;
+ embedAsCFF: true;
+
+ }
+
+ @font-face{
+ src: url("../../../../../../../Assets/Fonts/Open_Sans/OpenSans-Regular.ttf");
+ fontFamily: HaloVera;
+ embedAsCFF: false;
+ }
+
+
+ @font-face{
+ src: url("../../../../../../../Assets/Fonts/Open_Sans/OpenSans-Bold.ttf");
+ fontWeight: bold;
+ fontFamily: HaloVera;
+ embedAsCFF: false;
+ }
+
+ @font-face{
+ src: url("../../../../../../../Assets/Fonts/Open_Sans/OpenSans-Italic.ttf");
+ fontStyle: italic;
+ fontFamily: HaloVera;
+ embedAsCFF: false;
+
+ }
+
+ global {
+ contentBackgroundColor: #00CC00;
+ contentBackgroundAlpha: 0.1;
+ fontAntiAliasType: "normal";
+ fontFamily: SparkVera;
+ fontLookup: "embeddedCFF";
+ }
+
+ mx|Button, mx|CheckBox, mx|NumericStepper, mx|List, mx|TextArea, mx|TextInput {
+ fontAntiAliasType: "normal";
+ fontFamily: HaloVera;
+ }
\ No newline at end of file
Added: incubator/flex/trunk/mustella/tests/apollo/spark/components/WindowedApplication/SWFs/comps/contentItems.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/spark/components/WindowedApplication/SWFs/comps/contentItems.mxml?rev=1370009&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/apollo/spark/components/WindowedApplication/SWFs/comps/contentItems.mxml (added)
+++ incubator/flex/trunk/mustella/tests/apollo/spark/components/WindowedApplication/SWFs/comps/contentItems.mxml Mon Aug 6 20:51:08 2012
@@ -0,0 +1,77 @@
+<?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="600" height="600">
+ <fx:Declarations>
+ <!-- Place non-visual elements (e.g., services, value objects) here -->
+ </fx:Declarations>
+ <s:layout><s:HorizontalLayout/></s:layout>
+ <s:VGroup>
+ <s:Label text="Spark Components"/>
+ <s:Button id="sBtn"/>
+ <s:CheckBox label="CheckBox" id="sCB"/>
+ <s:ToggleButton label="ToggleButton" id="sTgBtn"/>
+ <s:NumericStepper id="sNS" height="20" />
+ <s:List id="sList">
+ <mx:ArrayCollection>
+ <fx:String>1. Alabama</fx:String>
+ <fx:String>2. Alaska</fx:String>
+ <fx:String>3. Arizona</fx:String>
+ <fx:String>4. Arkansas</fx:String>
+ <fx:String>5. California</fx:String>
+ </mx:ArrayCollection>
+ </s:List>
+ <s:TextArea id="sTA" height="150" />
+ <s:TextInput id="sTI" height="20"/>
+ </s:VGroup>
+ <s:VGroup>
+ <s:Label text="Halo Components"/>
+ <mx:Button id="hBtn"/>
+ <mx:CheckBox id="hCB"/>
+ <mx:Button id="hTgBtn" toggle="true" label="Toggle Button" />
+ <mx:NumericStepper id="hNS" height="20"/>
+ <mx:List id="hList">
+ <mx:ArrayCollection>
+ <fx:String>1. Alabama</fx:String>
+ <fx:String>2. Alaska</fx:String>
+ <fx:String>3. Arizona</fx:String>
+ <fx:String>4. Arkansas</fx:String>
+ <fx:String>5. California</fx:String>
+ </mx:ArrayCollection>
+ </mx:List>
+ <mx:TextArea id="hTA" height="150"/>
+ <mx:TextInput id="hTI" height="20"/>
+ </s:VGroup>
+ <s:VGroup>
+ <s:SkinnableContainer width="100" height="50">
+ <s:NumericStepper height="20" />
+ <mx:NumericStepper y="80" height="20"/>
+ </s:SkinnableContainer>
+ <s:Panel width="100" height="80">
+ <s:NumericStepper height="20" />
+ <mx:NumericStepper height="20" y="30"/>
+ </s:Panel>
+ <mx:Panel width="100" height="80" headerHeight="30">
+ <s:NumericStepper height="20" />
+ <mx:NumericStepper height="20" y="30"/>
+ </mx:Panel>
+ </s:VGroup>
+</s:Group>
Added: incubator/flex/trunk/mustella/tests/apollo/spark/components/WindowedApplication/SWFs/pre_compile.sh
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/spark/components/WindowedApplication/SWFs/pre_compile.sh?rev=1370009&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/apollo/spark/components/WindowedApplication/SWFs/pre_compile.sh (added)
+++ incubator/flex/trunk/mustella/tests/apollo/spark/components/WindowedApplication/SWFs/pre_compile.sh Mon Aug 6 20:51:08 2012
@@ -0,0 +1,35 @@
+#!/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 "WindowedApplication/SWFs/pre_compile.sh: The SDK is $SDK_DIR"
+echo "WindowedApplication/SWFs/pre_compile.sh: mxmlc version is " `$SDK_DIR/bin/mxmlc -version`
+
+echo "Hello, clueless egg"
+
+
+../../../../../../../../scripts/air_version_fixup.sh .
+
+
+$SDK_DIR/bin/amxmlc -static-rsls assets/WindowedApplicationModule.mxml
+$SDK_DIR/bin/mxmlc -static-rsls assets/ApplicationModule.mxml
+
+cd assets
+
+echo "Compiling css to swf..."
+$SDK_DIR/bin/mxmlc -static-link-runtime-shared-libraries=true globalStyles.css
Propchange: incubator/flex/trunk/mustella/tests/apollo/spark/components/WindowedApplication/SWFs/pre_compile.sh
------------------------------------------------------------------------------
svn:executable = *
Added: incubator/flex/trunk/mustella/tests/apollo/spark/components/WindowedApplication/SWFs/wa_app1_closed.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/spark/components/WindowedApplication/SWFs/wa_app1_closed.mxml?rev=1370009&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/apollo/spark/components/WindowedApplication/SWFs/wa_app1_closed.mxml (added)
+++ incubator/flex/trunk/mustella/tests/apollo/spark/components/WindowedApplication/SWFs/wa_app1_closed.mxml Mon Aug 6 20:51:08 2012
@@ -0,0 +1,57 @@
+<?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:WindowedApplication
+ xmlns:fx="http://ns.adobe.com/mxml/2009"
+ xmlns:mx="library://ns.adobe.com/flex/mx"
+ xmlns:s="library://ns.adobe.com/flex/spark"
+ xmlns:custom="assets.*"
+ width="800" height="600" >
+
+<fx:Script>
+<![CDATA[
+
+
+]]>
+</fx:Script>
+
+
+</s:WindowedApplication>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Added: incubator/flex/trunk/mustella/tests/apollo/spark/components/WindowedApplication/SWFs/wa_app1_closed.xml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/spark/components/WindowedApplication/SWFs/wa_app1_closed.xml?rev=1370009&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/apollo/spark/components/WindowedApplication/SWFs/wa_app1_closed.xml (added)
+++ incubator/flex/trunk/mustella/tests/apollo/spark/components/WindowedApplication/SWFs/wa_app1_closed.xml Mon Aug 6 20:51:08 2012
@@ -0,0 +1,153 @@
+<?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.
+
+-->
+<application xmlns="http://ns.adobe.com/air/application/3.1">
+
+<!-- Adobe AIR Application Descriptor File Template.
+
+ Specifies parameters for identifying, installing, and launching AIR applications.
+
+ xmlns - The Adobe AIR namespace: http://ns.adobe.com/air/application/2.0beta2
+ The last segment of the namespace specifies the version
+ of the AIR runtime required for this application to run.
+
+ minimumPatchLevel - The minimum patch level of the AIR runtime required to run
+ the application. Optional.
+-->
+<versionNumber>1</versionNumber>
+ <!-- The application identifier string, unique to this application. Required. -->
+ <id>wa-app1-closed</id>
+
+ <!-- Used as the filename for the application. Required. -->
+ <filename>wa_app1_closed</filename>
+
+ <!-- The name that is displayed in the AIR application installer.
+ May have multiple values for each language. See samples or xsd schema file. Optional. -->
+ <name>wa_app1_closed</name>
+
+ <!-- An application version designator (such as "v1", "2.5", or "Alpha 1"). Required. -->
+ <version>v1</version>
+
+ <!-- Description, displayed in the AIR application installer.
+ May have multiple values for each language. See samples or xsd schema file. Optional. -->
+ <!-- <description></description> -->
+
+ <!-- Copyright information. Optional -->
+ <!-- <copyright></copyright> -->
+
+ <!-- Settings for the application's initial window. Required. -->
+ <initialWindow>
+ <!-- The main SWF or HTML file of the application. Required. -->
+ <!-- Note: In Flex Builder, the SWF reference is set automatically. -->
+ <content>wa_app1_closed.swf</content>
+
+ <!-- The title of the main window. Optional. -->
+ <!-- <title></title> -->
+
+ <!-- The type of system chrome to use (either "standard" or "none"). Optional. Default standard. -->
+ <systemChrome>none</systemChrome>
+
+ <!-- Whether the window is transparent. Only applicable when systemChrome is none. Optional. Default false. -->
+ <!-- <transparent></transparent> -->
+
+ <!-- Whether the window is initially visible. Optional. Default false. -->
+ <!-- <visible></visible> -->
+
+ <!-- Whether the user can minimize the window. Optional. Default true. -->
+ <!--<minimizable></minimizable> -->
+
+ <!-- Whether the user can maximize the window. Optional. Default true. -->
+ <!-- <maximizable></maximizable> -->
+
+ <!-- Whether the user can resize the window. Optional. Default true. -->
+ <!-- <resizable></resizable> -->
+
+ <!-- The window's initial width. Optional. -->
+ <!-- <width></width> -->
+
+ <!-- The window's initial height. Optional. -->
+ <!-- <height></height> -->
+
+ <!-- The window's initial x position. Optional. -->
+ <!-- <x></x> -->
+
+ <!-- The window's initial y position. Optional. -->
+ <!-- <y></y> -->
+
+ <!-- The window's minimum size, specified as a width/height pair, such as "400 200". Optional. -->
+ <!-- <minSize></minSize> -->
+
+ <!-- The window's initial maximum size, specified as a width/height pair, such as "1600 1200". Optional. -->
+ <!-- <maxSize></maxSize> -->
+ </initialWindow>
+
+ <!-- The subpath of the standard default installation location to use. Optional. -->
+ <!-- <installFolder></installFolder> -->
+
+ <!-- The subpath of the Programs menu to use. (Ignored on operating systems without a Programs menu.) Optional. -->
+ <!-- <programMenuFolder></programMenuFolder> -->
+
+ <!-- The icon the system uses for the application. For at least one resolution,
+ specify the path to a PNG file included in the AIR package. Optional. -->
+ <!-- <icon>
+ <image16x16></image16x16>
+ <image32x32></image32x32>
+ <image48x48></image48x48>
+ <image128x128></image128x128>
+ </icon> -->
+
+ <!-- Whether the application handles the update when a user double-clicks an update version
+ of the AIR file (true), or the default AIR application installer handles the update (false).
+ Optional. Default false. -->
+ <!-- <customUpdateUI></customUpdateUI> -->
+
+ <!-- Whether the application can be launched when the user clicks a link in a web browser.
+ Optional. Default false. -->
+ <!-- <allowBrowserInvocation></allowBrowserInvocation> -->
+
+ <!-- Listing of file types for which the application can register. Optional. -->
+ <!-- <fileTypes> -->
+
+ <!-- Defines one file type. Optional. -->
+ <!-- <fileType> -->
+
+ <!-- The name that the system displays for the registered file type. Required. -->
+ <!-- <name></name> -->
+
+ <!-- The extension to register. Required. -->
+ <!-- <extension></extension> -->
+
+ <!-- The description of the file type. Optional. -->
+ <!-- <description></description> -->
+
+ <!-- The MIME content type. -->
+ <!-- <contentType></contentType> -->
+
+ <!-- The icon to display for the file type. Optional. -->
+ <!-- <icon>
+ <image16x16></image16x16>
+ <image32x32></image32x32>
+ <image48x48></image48x48>
+ <image128x128></image128x128>
+ </icon> -->
+
+ <!-- </fileType> -->
+ <!-- </fileTypes> -->
+
+</application>
Propchange: incubator/flex/trunk/mustella/tests/apollo/spark/components/WindowedApplication/SWFs/wa_app1_closed.xml
------------------------------------------------------------------------------
svn:executable = *
Added: incubator/flex/trunk/mustella/tests/apollo/spark/components/WindowedApplication/SWFs/wa_app2.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/spark/components/WindowedApplication/SWFs/wa_app2.mxml?rev=1370009&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/apollo/spark/components/WindowedApplication/SWFs/wa_app2.mxml (added)
+++ incubator/flex/trunk/mustella/tests/apollo/spark/components/WindowedApplication/SWFs/wa_app2.mxml Mon Aug 6 20:51:08 2012
@@ -0,0 +1,352 @@
+<?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:WindowedApplication
+ xmlns:fx="http://ns.adobe.com/mxml/2009"
+ xmlns:mx="library://ns.adobe.com/flex/mx"
+ xmlns:s="library://ns.adobe.com/flex/spark"
+ xmlns:custom="assets.*"
+ width="800" height="600"
+ title.state2="Title in state2"
+ skinClass.state2="spark.skins.spark.SparkChromeWindowedApplicationSkin"
+ invoke="invoked = 'invoke'"
+ windowComplete="windowCompleted = 'windowComplete'">
+
+<fx:Script>
+<![CDATA[
+
+ import flash.events.*;
+ import mx.collections.*;
+ import mx.core.FlexGlobals;
+ import mx.events.*;
+ import spark.components.*;
+ import spark.skins.spark.*;
+
+ public var heightResetVal:int = 600;
+ public var widthResetVal:int = 600;
+ public var windowObj:Window;
+ public var childWindowList:Array = new Array();
+ public var eventArray:Array;
+ public var invoked:String;
+ public var windowCompleted:String;
+
+ [Bindable]
+ private var ac1: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"}]);
+
+ private var xResetVal:int = 150;
+ private var yResetVal:int = 150;
+
+ [Embed(source="../../../../../../Assets/Images/smallgreenrect.jpg")]
+ [Bindable]
+ public var smallSquare1:Class;
+
+ [Embed(source="../../../../../../Assets/Images/smallbluerect.jpg")]
+ [Bindable]
+ public var smallSquare2:Class;
+
+ [Embed(source="../../../../../../Assets/Images/redrect.jpg")]
+ [Bindable]
+ public var longRect1:Class;
+
+ public var screenHeightFudged:int = flash.system.Capabilities.screenResolutionY - 100;
+ public var screenWidthFudged:int = flash.system.Capabilities.screenResolutionX - 4;
+
+ /**
+ * Reset things. We can't use ResetComponent for the WindowedApplication. Here's
+ * what these next few methods do:
+ * - Be sure we're not minimized or maximized.
+ * - Be sure we're in state1.
+ * - Set various properties and styles.
+ * - Dispatch resetComplete.
+ * Any time a test is added which affects anything, you need to come to this
+ * section and be sure to reset it.
+ **/
+ public function doReset():void{
+ addEventListener(NativeWindowDisplayStateEvent.DISPLAY_STATE_CHANGE, handleResetDisplayStateChange);
+ if (nativeWindow != null){
+ if(nativeWindow.displayState == "normal"){
+ handleResetDisplayStateChange(new NativeWindowDisplayStateEvent(NativeWindowDisplayStateEvent.DISPLAY_STATE_CHANGE));
+ }else{
+ restore();
+ }
+ }
+ }
+ private function handleResetDisplayStateChange(e:NativeWindowDisplayStateEvent):void{
+ removeEventListener(NativeWindowDisplayStateEvent.DISPLAY_STATE_CHANGE, handleResetDisplayStateChange);
+ addEventListener(StateChangeEvent.CURRENT_STATE_CHANGE, handleCurrentStateChange);
+
+ if(currentState == "state1"){
+ handleCurrentStateChange();
+ }else{
+ addEventListener(StateChangeEvent.CURRENT_STATE_CHANGE, handleCurrentStateChange);
+ currentState = "state1";
+ }
+ }
+
+ private function handleCurrentStateChange(e:StateChangeEvent = null):void{
+ removeEventListener(StateChangeEvent.CURRENT_STATE_CHANGE, handleCurrentStateChange);
+ addEventListener(FlexNativeWindowBoundsEvent.WINDOW_MOVE, handleWindowMove);
+
+ if(nativeWindow.bounds.x == xResetVal &&
+ nativeWindow.bounds.y == yResetVal){
+ handleWindowMove();
+ }else{
+ move(xResetVal, yResetVal);
+ }
+ }
+
+ private function handleWindowMove(e:FlexNativeWindowBoundsEvent = null):void{
+ removeEventListener(FlexNativeWindowBoundsEvent.WINDOW_MOVE, handleWindowMove);
+ addEventListener(FlexEvent.UPDATE_COMPLETE, handleResetUpdateComplete);
+
+ eventArray = new Array();
+ removeEventListener(flash.events.NativeWindowDisplayStateEvent.DISPLAY_STATE_CHANGING, logEvent);
+ removeEventListener(flash.events.NativeWindowDisplayStateEvent.DISPLAY_STATE_CHANGE, logEvent);
+
+ setStyle("minimizeEffect", null);
+ setStyle("unminimizeEffect", null);
+ setStyle("chromeColor", 0xCCCCCC);
+ setStyle("contentBackgroundColor", 0xFFFFFF);
+ setStyle("focusColor", 0x70B2EE);
+ setStyle("rollOverColor", 0xCEDBEF);
+ setStyle("selectionColor", 0xA8C6EE);
+ setStyle("symbolColor", 0);
+
+ alwaysInFront = false;
+ activate();
+
+ if(height == heightResetVal &&
+ width == widthResetVal &&
+ getStyle('skinClass').type == spark.skins.spark.WindowedApplicationSkin &&
+ title == "" &&
+ titleIcon == null &&
+ enabled == true &&
+ status == "" &&
+ showStatusBar == true &&
+ visible == true &&
+ alpha == 1 &&
+ group1.visible == false &&
+ group2.numElements == 0 &&
+ sl1.content == null){
+ handleResetUpdateComplete();
+ }else{
+ setStyle('skinClass', WindowedApplicationSkin);
+ height = heightResetVal;
+ width = widthResetVal;
+ title = "";
+ titleIcon = null;
+ enabled = true;
+ status="";
+ showStatusBar = true;
+ visible = true;
+ alpha = 1;
+ group1.visible = false;
+ group2.removeAllElements();
+ sl1.unloadAndStop();
+ }
+ }
+
+ private function handleResetUpdateComplete(e:FlexEvent = null):void{
+ removeEventListener(FlexEvent.UPDATE_COMPLETE, handleResetUpdateComplete);
+ dispatchEvent(new FlexEvent("resetComplete"));
+ }
+
+ private function logEvent(e:Event):void{
+ eventArray.push(e.type);
+ }
+
+ public function setUpDisplayStateListeners():void{
+ addEventListener(flash.events.NativeWindowDisplayStateEvent.DISPLAY_STATE_CHANGING, logEvent);
+ addEventListener(flash.events.NativeWindowDisplayStateEvent.DISPLAY_STATE_CHANGE, logEvent);
+ }
+
+ public function setUpWindowMoveListener():void{
+ addEventListener(mx.events.FlexNativeWindowBoundsEvent.WINDOW_RESIZE, logEvent);
+ }
+
+ public function createAWindow():void{
+ windowObj = new Window();
+ windowObj.x = 200;
+ windowObj.title = "plain window 1";
+ windowObj.systemChrome = "standard";
+ childWindowList.push(windowObj);
+ windowObj.addEventListener("creationComplete", handleNewWindowCreationComplete);
+ windowObj.open(true);
+ }
+
+ public function handleNewWindowCreationComplete(e:Event):void{
+ e.currentTarget.removeEventListener("creationComplete", handleNewWindowCreationComplete);
+ dispatchEvent(new Event("windowHasBeenCreated"));
+ }
+
+ public function closeAllChildWindows():void{
+ while(childWindowList.length>0){
+ var win:Window = Window(childWindowList.pop());
+ win.close();
+ }
+ }
+
+ public function addButtonToGroup(theName:String, theGroup:Group):Button{
+ var b:Button = new Button();
+ b.name = theName;
+ theGroup.addElement(b);
+ return b;
+ }
+]]>
+</fx:Script>
+
+<!-- Embed fonts for cross platform compatibility of bitmap compares. -->
+<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: EmbeddedVera;
+ embedAsCFF: true;
+ }
+
+ @font-face {
+ src: url("../../../../../../Assets/Fonts/Open_Sans/OpenSans-Bold.ttf");
+ fontWeight: bold;
+ fontFamily: EmbeddedVera;
+ embedAsCFF: true;
+ }
+
+ @font-face {
+ src: url("../../../../../../Assets/Fonts/Open_Sans/OpenSans-Italic.ttf");
+ fontStyle: italic;
+ fontFamily: EmbeddedVera;
+ embedAsCFF: true;
+ }
+
+ @font-face {
+ src: url("../../../../../../Assets/Fonts/Open_Sans/OpenSans-Regular.ttf");
+ fontFamily: EmbeddedVera2;
+ embedAsCFF: false;
+ }
+
+ @font-face {
+ src: url("../../../../../../Assets/Fonts/Open_Sans/OpenSans-Bold.ttf");
+ fontWeight: bold;
+ fontFamily: EmbeddedVera2;
+ embedAsCFF: false;
+ }
+
+ @font-face {
+ src: url("../../../../../../Assets/Fonts/Open_Sans/OpenSans-Italic.ttf");
+ fontStyle: italic;
+ fontFamily: EmbeddedVera2;
+ embedAsCFF: false;
+ }
+
+ mx|DataGrid{
+ fontFamily: EmbeddedVera2;
+ fontAntiAliasType: normal;
+ }
+
+ s|Button{
+ fontFamily: EmbeddedVera;
+ fontLookup: embeddedCFF;
+ fontAntiAliasType: normal;
+ }
+
+ s|CheckBox{
+ fontFamily: EmbeddedVera;
+ fontLookup: embeddedCFF;
+ fontAntiAliasType: normal;
+ }
+
+ s|TextArea{
+ fontFamily: EmbeddedVera;
+ fontLookup: embeddedCFF;
+ fontAntiAliasType: normal;
+ }
+
+ s|TitleBar{
+ fontFamily: EmbeddedVera;
+ fontLookup: embeddedCFF;
+ fontAntiAliasType: normal;
+ }
+
+ s|WindowedApplication{
+ fontFamily: EmbeddedVera;
+ fontLookup: embeddedCFF;
+ fontAntiAliasType: normal;
+ }
+
+</fx:Style>
+
+<fx:Declarations>
+ <fx:Object id="bindingTarget"
+ theTitle="{title}"
+ theTitleIcon="{titleIcon}"
+ theStatus="{status}"
+ theVisibility="{visible}" />
+
+ <mx:Fade id="fade1" alphaFrom="1" alphaTo="0" duration="500" />
+ <mx:Fade id="fade2" alphaFrom="0" alphaTo="1" duration="500"/>
+
+</fx:Declarations>
+
+<s:states>
+ <s:State name="state1" />
+ <s:State name="state2" />
+ <s:State name="state3" />
+</s:states>
+
+<s:layout>
+ <s:VerticalLayout />
+</s:layout>
+
+<s:Button id="btnState2" label="state2 button" includeIn="state2" />
+
+<!--
+ visible = false so they won't break existing tests
+ which do bitmap compares of the entire stage.
+ The reset method may set visible to false too.
+-->
+<custom:GroupWithComponents id="group1" />
+<custom:GroupWithoutComponents id="group2" />
+<mx:SWFLoader id="sl1" />
+
+</s:WindowedApplication>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Added: incubator/flex/trunk/mustella/tests/apollo/spark/components/WindowedApplication/SWFs/wa_app2.xml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/spark/components/WindowedApplication/SWFs/wa_app2.xml?rev=1370009&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/apollo/spark/components/WindowedApplication/SWFs/wa_app2.xml (added)
+++ incubator/flex/trunk/mustella/tests/apollo/spark/components/WindowedApplication/SWFs/wa_app2.xml Mon Aug 6 20:51:08 2012
@@ -0,0 +1,153 @@
+<?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.
+
+-->
+<application xmlns="http://ns.adobe.com/air/application/3.1">
+
+<!-- Adobe AIR Application Descriptor File Template.
+
+ Specifies parameters for identifying, installing, and launching AIR applications.
+
+ xmlns - The Adobe AIR namespace: http://ns.adobe.com/air/application/2.0beta2
+ The last segment of the namespace specifies the version
+ of the AIR runtime required for this application to run.
+
+ minimumPatchLevel - The minimum patch level of the AIR runtime required to run
+ the application. Optional.
+-->
+<versionNumber>1</versionNumber>
+ <!-- The application identifier string, unique to this application. Required. -->
+ <id>wa-app2</id>
+
+ <!-- Used as the filename for the application. Required. -->
+ <filename>wa_app2</filename>
+
+ <!-- The name that is displayed in the AIR application installer.
+ May have multiple values for each language. See samples or xsd schema file. Optional. -->
+ <name>wa_app2</name>
+
+ <!-- An application version designator (such as "v1", "2.5", or "Alpha 1"). Required. -->
+ <version>v1</version>
+
+ <!-- Description, displayed in the AIR application installer.
+ May have multiple values for each language. See samples or xsd schema file. Optional. -->
+ <!-- <description></description> -->
+
+ <!-- Copyright information. Optional -->
+ <!-- <copyright></copyright> -->
+
+ <!-- Settings for the application's initial window. Required. -->
+ <initialWindow>
+ <!-- The main SWF or HTML file of the application. Required. -->
+ <!-- Note: In Flex Builder, the SWF reference is set automatically. -->
+ <content>wa_app2.swf</content>
+
+ <!-- The title of the main window. Optional. -->
+ <!-- <title></title> -->
+
+ <!-- The type of system chrome to use (either "standard" or "none"). Optional. Default standard. -->
+ <systemChrome>none</systemChrome>
+
+ <!-- Whether the window is transparent. Only applicable when systemChrome is none. Optional. Default false. -->
+ <!-- <transparent></transparent> -->
+
+ <!-- Whether the window is initially visible. Optional. Default false. -->
+ <!-- <visible></visible> -->
+
+ <!-- Whether the user can minimize the window. Optional. Default true. -->
+ <!-- <minimizable></minimizable> -->
+
+ <!-- Whether the user can maximize the window. Optional. Default true. -->
+ <!-- <maximizable></maximizable> -->
+
+ <!-- Whether the user can resize the window. Optional. Default true. -->
+ <!-- <resizable></resizable> -->
+
+ <!-- The window's initial width. Optional. -->
+ <!-- <width></width> -->
+
+ <!-- The window's initial height. Optional. -->
+ <!-- <height></height> -->
+
+ <!-- The window's initial x position. Optional. -->
+ <!-- <x></x> -->
+
+ <!-- The window's initial y position. Optional. -->
+ <!-- <y></y> -->
+
+ <!-- The window's minimum size, specified as a width/height pair, such as "400 200". Optional. -->
+ <!-- <minSize></minSize> -->
+
+ <!-- The window's initial maximum size, specified as a width/height pair, such as "1600 1200". Optional. -->
+ <!-- <maxSize></maxSize> -->
+ </initialWindow>
+
+ <!-- The subpath of the standard default installation location to use. Optional. -->
+ <!-- <installFolder></installFolder> -->
+
+ <!-- The subpath of the Programs menu to use. (Ignored on operating systems without a Programs menu.) Optional. -->
+ <!-- <programMenuFolder></programMenuFolder> -->
+
+ <!-- The icon the system uses for the application. For at least one resolution,
+ specify the path to a PNG file included in the AIR package. Optional. -->
+ <!-- <icon>
+ <image16x16></image16x16>
+ <image32x32></image32x32>
+ <image48x48></image48x48>
+ <image128x128></image128x128>
+ </icon> -->
+
+ <!-- Whether the application handles the update when a user double-clicks an update version
+ of the AIR file (true), or the default AIR application installer handles the update (false).
+ Optional. Default false. -->
+ <!-- <customUpdateUI></customUpdateUI> -->
+
+ <!-- Whether the application can be launched when the user clicks a link in a web browser.
+ Optional. Default false. -->
+ <!-- <allowBrowserInvocation></allowBrowserInvocation> -->
+
+ <!-- Listing of file types for which the application can register. Optional. -->
+ <!-- <fileTypes> -->
+
+ <!-- Defines one file type. Optional. -->
+ <!-- <fileType> -->
+
+ <!-- The name that the system displays for the registered file type. Required. -->
+ <!-- <name></name> -->
+
+ <!-- The extension to register. Required. -->
+ <!-- <extension></extension> -->
+
+ <!-- The description of the file type. Optional. -->
+ <!-- <description></description> -->
+
+ <!-- The MIME content type. -->
+ <!-- <contentType></contentType> -->
+
+ <!-- The icon to display for the file type. Optional. -->
+ <!-- <icon>
+ <image16x16></image16x16>
+ <image32x32></image32x32>
+ <image48x48></image48x48>
+ <image128x128></image128x128>
+ </icon> -->
+
+ <!-- </fileType> -->
+ <!-- </fileTypes> -->
+
+</application>
Added: incubator/flex/trunk/mustella/tests/apollo/spark/components/WindowedApplication/SWFs/wa_app3.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/spark/components/WindowedApplication/SWFs/wa_app3.mxml?rev=1370009&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/apollo/spark/components/WindowedApplication/SWFs/wa_app3.mxml (added)
+++ incubator/flex/trunk/mustella/tests/apollo/spark/components/WindowedApplication/SWFs/wa_app3.mxml Mon Aug 6 20:51:08 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:WindowedApplication
+ xmlns:fx="http://ns.adobe.com/mxml/2009"
+ xmlns:mx="library://ns.adobe.com/flex/mx"
+ xmlns:s="library://ns.adobe.com/flex/spark"
+ xmlns:custom="assets.*"
+ width="800" height="600">
+
+<!--
+Things to NOT change for this app:
+ - maximizable (false)
+ - minimizable (false)
+ - systemChrome (none)
+-->
+
+<fx:Script>
+<![CDATA[
+
+ import flash.events.*;
+ import mx.core.FlexGlobals;
+ import mx.events.*;
+ import spark.components.*;
+ import spark.skins.spark.*;
+
+ public var heightResetVal:int = 600;
+ public var widthResetVal:int = 600;
+
+ /**
+ * Reset things. We can't use ResetComponent.
+ **/
+ public function doReset():void{
+ var app:WindowedApplication = FlexGlobals.topLevelApplication as WindowedApplication;
+
+ app.addEventListener(NativeWindowDisplayStateEvent.DISPLAY_STATE_CHANGE, handleResetDisplayStateChange);
+
+ if(app.nativeWindow.displayState == "normal"){
+ handleResetDisplayStateChange(new NativeWindowDisplayStateEvent("displayStateChange"));
+ }else{
+ app.restore();
+ }
+ }
+
+ private function handleResetDisplayStateChange(e:NativeWindowDisplayStateEvent):void{
+ var app:WindowedApplication = FlexGlobals.topLevelApplication as WindowedApplication;
+
+ app.removeEventListener(NativeWindowDisplayStateEvent.DISPLAY_STATE_CHANGE, handleResetDisplayStateChange);
+ app.addEventListener(FlexEvent.UPDATE_COMPLETE, handleResetUpdateComplete);
+
+ if(app.height == heightResetVal &&
+ app.width == widthResetVal &&
+ app.getStyle('skinClass').type == WindowedApplicationSkin){
+ handleResetUpdateComplete(new FlexEvent("updateComplete"));
+ }else{
+ app.setStyle('skinClass', WindowedApplicationSkin);
+ app.height = heightResetVal;
+ app.width = widthResetVal;
+ }
+ }
+
+ private function handleResetUpdateComplete(e:FlexEvent):void{
+ var app:WindowedApplication = FlexGlobals.topLevelApplication as WindowedApplication;
+
+ app.removeEventListener(FlexEvent.UPDATE_COMPLETE, handleResetUpdateComplete);
+ dispatchEvent(new FlexEvent("resetComplete"));
+ }
+
+
+]]>
+</fx:Script>
+
+
+</s:WindowedApplication>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Added: incubator/flex/trunk/mustella/tests/apollo/spark/components/WindowedApplication/SWFs/wa_app3.xml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/spark/components/WindowedApplication/SWFs/wa_app3.xml?rev=1370009&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/apollo/spark/components/WindowedApplication/SWFs/wa_app3.xml (added)
+++ incubator/flex/trunk/mustella/tests/apollo/spark/components/WindowedApplication/SWFs/wa_app3.xml Mon Aug 6 20:51:08 2012
@@ -0,0 +1,153 @@
+<?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.
+
+-->
+<application xmlns="http://ns.adobe.com/air/application/3.1">
+
+<!-- Adobe AIR Application Descriptor File Template.
+
+ Specifies parameters for identifying, installing, and launching AIR applications.
+
+ xmlns - The Adobe AIR namespace: http://ns.adobe.com/air/application/2.0beta2
+ The last segment of the namespace specifies the version
+ of the AIR runtime required for this application to run.
+
+ minimumPatchLevel - The minimum patch level of the AIR runtime required to run
+ the application. Optional.
+-->
+<versionNumber>1</versionNumber>
+ <!-- The application identifier string, unique to this application. Required. -->
+ <id>wa-app3</id>
+
+ <!-- Used as the filename for the application. Required. -->
+ <filename>wa_app3</filename>
+
+ <!-- The name that is displayed in the AIR application installer.
+ May have multiple values for each language. See samples or xsd schema file. Optional. -->
+ <name>wa_app3</name>
+
+ <!-- An application version designator (such as "v1", "2.5", or "Alpha 1"). Required. -->
+ <version>v1</version>
+
+ <!-- Description, displayed in the AIR application installer.
+ May have multiple values for each language. See samples or xsd schema file. Optional. -->
+ <!-- <description></description> -->
+
+ <!-- Copyright information. Optional -->
+ <!-- <copyright></copyright> -->
+
+ <!-- Settings for the application's initial window. Required. -->
+ <initialWindow>
+ <!-- The main SWF or HTML file of the application. Required. -->
+ <!-- Note: In Flex Builder, the SWF reference is set automatically. -->
+ <content>wa_app3.swf</content>
+
+ <!-- The title of the main window. Optional. -->
+ <!-- <title></title> -->
+
+ <!-- The type of system chrome to use (either "standard" or "none"). Optional. Default standard. -->
+ <systemChrome>none</systemChrome>
+
+ <!-- Whether the window is transparent. Only applicable when systemChrome is none. Optional. Default false. -->
+ <!-- <transparent></transparent> -->
+
+ <!-- Whether the window is initially visible. Optional. Default false. -->
+ <!-- <visible></visible> -->
+
+ <!-- Whether the user can minimize the window. Optional. Default true. -->
+ <minimizable>false</minimizable>
+
+ <!-- Whether the user can maximize the window. Optional. Default true. -->
+ <maximizable>false</maximizable>
+
+ <!-- Whether the user can resize the window. Optional. Default true. -->
+ <!-- <resizable></resizable> -->
+
+ <!-- The window's initial width. Optional. -->
+ <!-- <width></width> -->
+
+ <!-- The window's initial height. Optional. -->
+ <!-- <height></height> -->
+
+ <!-- The window's initial x position. Optional. -->
+ <!-- <x></x> -->
+
+ <!-- The window's initial y position. Optional. -->
+ <!-- <y></y> -->
+
+ <!-- The window's minimum size, specified as a width/height pair, such as "400 200". Optional. -->
+ <!-- <minSize></minSize> -->
+
+ <!-- The window's initial maximum size, specified as a width/height pair, such as "1600 1200". Optional. -->
+ <!-- <maxSize></maxSize> -->
+ </initialWindow>
+
+ <!-- The subpath of the standard default installation location to use. Optional. -->
+ <!-- <installFolder></installFolder> -->
+
+ <!-- The subpath of the Programs menu to use. (Ignored on operating systems without a Programs menu.) Optional. -->
+ <!-- <programMenuFolder></programMenuFolder> -->
+
+ <!-- The icon the system uses for the application. For at least one resolution,
+ specify the path to a PNG file included in the AIR package. Optional. -->
+ <!-- <icon>
+ <image16x16></image16x16>
+ <image32x32></image32x32>
+ <image48x48></image48x48>
+ <image128x128></image128x128>
+ </icon> -->
+
+ <!-- Whether the application handles the update when a user double-clicks an update version
+ of the AIR file (true), or the default AIR application installer handles the update (false).
+ Optional. Default false. -->
+ <!-- <customUpdateUI></customUpdateUI> -->
+
+ <!-- Whether the application can be launched when the user clicks a link in a web browser.
+ Optional. Default false. -->
+ <!-- <allowBrowserInvocation></allowBrowserInvocation> -->
+
+ <!-- Listing of file types for which the application can register. Optional. -->
+ <!-- <fileTypes> -->
+
+ <!-- Defines one file type. Optional. -->
+ <!-- <fileType> -->
+
+ <!-- The name that the system displays for the registered file type. Required. -->
+ <!-- <name></name> -->
+
+ <!-- The extension to register. Required. -->
+ <!-- <extension></extension> -->
+
+ <!-- The description of the file type. Optional. -->
+ <!-- <description></description> -->
+
+ <!-- The MIME content type. -->
+ <!-- <contentType></contentType> -->
+
+ <!-- The icon to display for the file type. Optional. -->
+ <!-- <icon>
+ <image16x16></image16x16>
+ <image32x32></image32x32>
+ <image48x48></image48x48>
+ <image128x128></image128x128>
+ </icon> -->
+
+ <!-- </fileType> -->
+ <!-- </fileTypes> -->
+
+</application>
Added: incubator/flex/trunk/mustella/tests/apollo/spark/components/WindowedApplication/SWFs/wa_app4.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/spark/components/WindowedApplication/SWFs/wa_app4.mxml?rev=1370009&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/apollo/spark/components/WindowedApplication/SWFs/wa_app4.mxml (added)
+++ incubator/flex/trunk/mustella/tests/apollo/spark/components/WindowedApplication/SWFs/wa_app4.mxml Mon Aug 6 20:51:08 2012
@@ -0,0 +1,91 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+
+-->
+<s:WindowedApplication
+ xmlns:fx="http://ns.adobe.com/mxml/2009"
+ xmlns:mx="library://ns.adobe.com/flex/mx"
+ xmlns:s="library://ns.adobe.com/flex/spark"
+ xmlns:custom="assets.*"
+ width="800" height="600">
+
+<!--
+This exists so we can run tests on a window which is closed.
+Things to NOT change for this app:
+ - maximizable (true)
+ - minimizable (true)
+ - systemChrome (none)
+-->
+
+<fx:Script>
+<![CDATA[
+
+ import flash.events.*;
+ import mx.core.FlexGlobals;
+ import mx.events.*;
+
+ /**
+ * Reset things. We can't use ResetComponent.
+ **/
+ public function doReset():void{
+ var app:WindowedApplication = FlexGlobals.topLevelApplication as WindowedApplication;
+
+ app.autoExit = false;
+ app.addEventListener(flash.events.Event.CLOSE, handleResetClose);
+
+ if(app.closed){
+ dispatchEvent(new Event(flash.events.Event.CLOSE));
+ }else{
+ app.close();
+ }
+ }
+
+ private function handleResetClose(e:flash.events.Event):void{
+ var app:WindowedApplication = FlexGlobals.topLevelApplication as WindowedApplication;
+
+ app.removeEventListener(flash.events.Event.CLOSE, handleResetClose);
+ dispatchEvent(new FlexEvent("resetComplete"));
+ }
+
+]]>
+</fx:Script>
+
+
+</s:WindowedApplication>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Added: incubator/flex/trunk/mustella/tests/apollo/spark/components/WindowedApplication/SWFs/wa_app4.xml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/spark/components/WindowedApplication/SWFs/wa_app4.xml?rev=1370009&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/apollo/spark/components/WindowedApplication/SWFs/wa_app4.xml (added)
+++ incubator/flex/trunk/mustella/tests/apollo/spark/components/WindowedApplication/SWFs/wa_app4.xml Mon Aug 6 20:51:08 2012
@@ -0,0 +1,153 @@
+<?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.
+
+-->
+<application xmlns="http://ns.adobe.com/air/application/3.1">
+
+<!-- Adobe AIR Application Descriptor File Template.
+
+ Specifies parameters for identifying, installing, and launching AIR applications.
+
+ xmlns - The Adobe AIR namespace: http://ns.adobe.com/air/application/2.0beta2
+ The last segment of the namespace specifies the version
+ of the AIR runtime required for this application to run.
+
+ minimumPatchLevel - The minimum patch level of the AIR runtime required to run
+ the application. Optional.
+-->
+<versionNumber>1</versionNumber>
+ <!-- The application identifier string, unique to this application. Required. -->
+ <id>wa-app4</id>
+
+ <!-- Used as the filename for the application. Required. -->
+ <filename>wa_app4</filename>
+
+ <!-- The name that is displayed in the AIR application installer.
+ May have multiple values for each language. See samples or xsd schema file. Optional. -->
+ <name>wa_app4</name>
+
+ <!-- An application version designator (such as "v1", "2.5", or "Alpha 1"). Required. -->
+ <version>v1</version>
+
+ <!-- Description, displayed in the AIR application installer.
+ May have multiple values for each language. See samples or xsd schema file. Optional. -->
+ <!-- <description></description> -->
+
+ <!-- Copyright information. Optional -->
+ <!-- <copyright></copyright> -->
+
+ <!-- Settings for the application's initial window. Required. -->
+ <initialWindow>
+ <!-- The main SWF or HTML file of the application. Required. -->
+ <!-- Note: In Flex Builder, the SWF reference is set automatically. -->
+ <content>wa_app4.swf</content>
+
+ <!-- The title of the main window. Optional. -->
+ <!-- <title></title> -->
+
+ <!-- The type of system chrome to use (either "standard" or "none"). Optional. Default standard. -->
+ <systemChrome>none</systemChrome>
+
+ <!-- Whether the window is transparent. Only applicable when systemChrome is none. Optional. Default false. -->
+ <!-- <transparent></transparent> -->
+
+ <!-- Whether the window is initially visible. Optional. Default false. -->
+ <!-- <visible></visible> -->
+
+ <!-- Whether the user can minimize the window. Optional. Default true. -->
+ <!-- <minimizable></minimizable> -->
+
+ <!-- Whether the user can maximize the window. Optional. Default true. -->
+ <!-- <maximizable></maximizable> -->
+
+ <!-- Whether the user can resize the window. Optional. Default true. -->
+ <!-- <resizable></resizable> -->
+
+ <!-- The window's initial width. Optional. -->
+ <!-- <width></width> -->
+
+ <!-- The window's initial height. Optional. -->
+ <!-- <height></height> -->
+
+ <!-- The window's initial x position. Optional. -->
+ <!-- <x></x> -->
+
+ <!-- The window's initial y position. Optional. -->
+ <!-- <y></y> -->
+
+ <!-- The window's minimum size, specified as a width/height pair, such as "400 200". Optional. -->
+ <!-- <minSize></minSize> -->
+
+ <!-- The window's initial maximum size, specified as a width/height pair, such as "1600 1200". Optional. -->
+ <!-- <maxSize></maxSize> -->
+ </initialWindow>
+
+ <!-- The subpath of the standard default installation location to use. Optional. -->
+ <!-- <installFolder></installFolder> -->
+
+ <!-- The subpath of the Programs menu to use. (Ignored on operating systems without a Programs menu.) Optional. -->
+ <!-- <programMenuFolder></programMenuFolder> -->
+
+ <!-- The icon the system uses for the application. For at least one resolution,
+ specify the path to a PNG file included in the AIR package. Optional. -->
+ <!-- <icon>
+ <image16x16></image16x16>
+ <image32x32></image32x32>
+ <image48x48></image48x48>
+ <image128x128></image128x128>
+ </icon> -->
+
+ <!-- Whether the application handles the update when a user double-clicks an update version
+ of the AIR file (true), or the default AIR application installer handles the update (false).
+ Optional. Default false. -->
+ <!-- <customUpdateUI></customUpdateUI> -->
+
+ <!-- Whether the application can be launched when the user clicks a link in a web browser.
+ Optional. Default false. -->
+ <!-- <allowBrowserInvocation></allowBrowserInvocation> -->
+
+ <!-- Listing of file types for which the application can register. Optional. -->
+ <!-- <fileTypes> -->
+
+ <!-- Defines one file type. Optional. -->
+ <!-- <fileType> -->
+
+ <!-- The name that the system displays for the registered file type. Required. -->
+ <!-- <name></name> -->
+
+ <!-- The extension to register. Required. -->
+ <!-- <extension></extension> -->
+
+ <!-- The description of the file type. Optional. -->
+ <!-- <description></description> -->
+
+ <!-- The MIME content type. -->
+ <!-- <contentType></contentType> -->
+
+ <!-- The icon to display for the file type. Optional. -->
+ <!-- <icon>
+ <image16x16></image16x16>
+ <image32x32></image32x32>
+ <image48x48></image48x48>
+ <image128x128></image128x128>
+ </icon> -->
+
+ <!-- </fileType> -->
+ <!-- </fileTypes> -->
+
+</application>