flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From p...@apache.org
Subject svn commit: r1369942 - in /incubator/flex/trunk/mustella/tests/DownloadProgressBar: ./ Properties/ Properties/baselines/ SWFs/ SWFs/assets/
Date Mon, 06 Aug 2012 19:36:45 GMT
Author: pent
Date: Mon Aug  6 19:36:43 2012
New Revision: 1369942

URL: http://svn.apache.org/viewvc?rev=1369942&view=rev
Log:
Mustella submission

Added:
    incubator/flex/trunk/mustella/tests/DownloadProgressBar/
    incubator/flex/trunk/mustella/tests/DownloadProgressBar/Properties/
    incubator/flex/trunk/mustella/tests/DownloadProgressBar/Properties/DownloadProgressBar_Properties.mxml
    incubator/flex/trunk/mustella/tests/DownloadProgressBar/Properties/SparkDownloadProgressBar_Properties.mxml
    incubator/flex/trunk/mustella/tests/DownloadProgressBar/Properties/baselines/
    incubator/flex/trunk/mustella/tests/DownloadProgressBar/Properties/baselines/DownloadProgressBar_properties_backgroundImage.png   (with props)
    incubator/flex/trunk/mustella/tests/DownloadProgressBar/Properties/baselines/DownloadProgressBar_properties_initializingLabel.png   (with props)
    incubator/flex/trunk/mustella/tests/DownloadProgressBar/Properties/baselines/SparkDownloadProgressBar_RSL_Error.png   (with props)
    incubator/flex/trunk/mustella/tests/DownloadProgressBar/Properties/baselines/SparkDownloadProgressBar_RSL_NoError.png   (with props)
    incubator/flex/trunk/mustella/tests/DownloadProgressBar/Properties/baselines/SparkDownloadProgressBar_default.png   (with props)
    incubator/flex/trunk/mustella/tests/DownloadProgressBar/Properties/baselines/SparkDownloadProgressBar_properties_backgroundImage.png   (with props)
    incubator/flex/trunk/mustella/tests/DownloadProgressBar/Properties/baselines/SparkDownloadProgressBar_properties_preloaderBaseColor.png   (with props)
    incubator/flex/trunk/mustella/tests/DownloadProgressBar/SWFs/
    incubator/flex/trunk/mustella/tests/DownloadProgressBar/SWFs/DownloadProgressBar_Main.compile
    incubator/flex/trunk/mustella/tests/DownloadProgressBar/SWFs/DownloadProgressBar_Main.mxml
    incubator/flex/trunk/mustella/tests/DownloadProgressBar/SWFs/assets/
    incubator/flex/trunk/mustella/tests/DownloadProgressBar/SWFs/assets/AlphaMain.mxml
    incubator/flex/trunk/mustella/tests/DownloadProgressBar/SWFs/assets/AlphaProgressBar.as
    incubator/flex/trunk/mustella/tests/DownloadProgressBar/SWFs/assets/ImageMain.mxml
    incubator/flex/trunk/mustella/tests/DownloadProgressBar/SWFs/assets/ImageProgressBar.as
    incubator/flex/trunk/mustella/tests/DownloadProgressBar/SWFs/assets/LabelMain.mxml
    incubator/flex/trunk/mustella/tests/DownloadProgressBar/SWFs/assets/LabelProgressBar.as
    incubator/flex/trunk/mustella/tests/DownloadProgressBar/SWFs/assets/MainSpark.mxml
    incubator/flex/trunk/mustella/tests/DownloadProgressBar/SWFs/assets/RedMain.mxml
    incubator/flex/trunk/mustella/tests/DownloadProgressBar/SWFs/assets/RedProgressBar.as
    incubator/flex/trunk/mustella/tests/DownloadProgressBar/SWFs/assets/SparkAlphaMain.mxml
    incubator/flex/trunk/mustella/tests/DownloadProgressBar/SWFs/assets/SparkAlphaProgressBar.as
    incubator/flex/trunk/mustella/tests/DownloadProgressBar/SWFs/assets/SparkDelayedProgressBar.as
    incubator/flex/trunk/mustella/tests/DownloadProgressBar/SWFs/assets/SparkImageMain.mxml
    incubator/flex/trunk/mustella/tests/DownloadProgressBar/SWFs/assets/SparkImageProgressBar.as
    incubator/flex/trunk/mustella/tests/DownloadProgressBar/SWFs/assets/SparkPreloaderBaseColorMain.mxml
    incubator/flex/trunk/mustella/tests/DownloadProgressBar/SWFs/assets/SparkPreloaderRSLErrorMain.mxml
    incubator/flex/trunk/mustella/tests/DownloadProgressBar/SWFs/assets/SparkPreloaderRSLMain.mxml
    incubator/flex/trunk/mustella/tests/DownloadProgressBar/SWFs/assets/SparkRedMain.mxml
    incubator/flex/trunk/mustella/tests/DownloadProgressBar/SWFs/assets/SparkRedProgressBar.as
    incubator/flex/trunk/mustella/tests/DownloadProgressBar/SWFs/pre_compile.sh   (with props)

Added: incubator/flex/trunk/mustella/tests/DownloadProgressBar/Properties/DownloadProgressBar_Properties.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/DownloadProgressBar/Properties/DownloadProgressBar_Properties.mxml?rev=1369942&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/DownloadProgressBar/Properties/DownloadProgressBar_Properties.mxml (added)
+++ incubator/flex/trunk/mustella/tests/DownloadProgressBar/Properties/DownloadProgressBar_Properties.mxml Mon Aug  6 19:36:43 2012
@@ -0,0 +1,89 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+<UnitTester testDir="DownloadProgressBar/Properties/"  xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*"
+    testSWF="DownloadProgressBar_Main.mxml">
+	<mx:Script>
+	<![CDATA[
+	public static function init(o:DisplayObject):void
+	{
+	}
+	]]>
+	</mx:Script>
+	<mx:Metadata>
+	<![CDATA[
+		[Mixin]
+	]]>
+	</mx:Metadata>
+	<mx:Script>
+	<![CDATA[
+	import mx.styles.StyleManager;
+	import mx.managers.SystemManager;
+
+
+	]]>
+	</mx:Script>
+
+   <testCases>
+	<TestCase testID="DownloadProgressBar_properties_backgroundColor" keywords="[DownloadProgressBar, backgroundColor"
+	      description="The backgroundColor of the application should be red while the preloader is up.">
+	      <setup>
+		   <SetProperty propertyName="source" target="swfloader1" value="assets/RedMain.swf" waitEvent="complete"
+		       waitTarget="swfloader1"/>
+	         <Pause timeout="500" />
+	     </setup>
+	    <body>
+		  <AssertPixelValue value="0xFF0000" x="5" y="5" target="swfloader1" />
+	     </body>
+	  </TestCase>
+	<TestCase testID="DownloadProgressBar_properties_backgroundAlpha" keywords="[DownloadProgressBar, backgroundAlpha"
+	    description="Test setting backgroundAlpha=0.2. The backgroundColor is red, so, the actual color should be pink.">
+	      <setup>
+		   <SetProperty propertyName="source" target="swfloader1" value="assets/AlphaMain.swf" waitEvent="complete"
+		       waitTarget="swfloader1"/>
+		   <Pause timeout="500" />
+	     </setup>
+	    <body>
+		  <AssertPixelValue value="0xFFB3B3" x="5" y="5" target="swfloader1" />
+	     </body>
+	  </TestCase>
+	<TestCase testID="DownloadProgressBar_properties_backgroundImage" keywords="[DownloadProgressBar, backgroundImage"
+	    description="Test that the backgroundImage should be a Flex flag in the preloader.">
+	      <setup>
+		   <SetProperty propertyName="source" target="swfloader1" value="assets/ImageMain.swf" waitEvent="complete"
+		       waitTarget="swfloader1"/>
+	       <Pause timeout="500" />
+	     </setup>
+	    <body>
+		  <CompareBitmap url="../Properties/baselines/$testID.png" target="swfloader1" timeout="2500" />
+	     </body>
+	  </TestCase>
+    <TestCase testID="DownloadProgressBar_properties_initializingLabel" keywords="[DownloadProgressBar, initializingLabel"
+	    description="Test that the label in the preloader is custom text.">
+	      <setup>
+		   <SetProperty propertyName="source" target="swfloader1" value="assets/LabelMain.swf" waitEvent="complete"
+		       waitTarget="swfloader1"/>
+	         <Pause timeout="500" />
+	     </setup>
+	    <body>
+		  <CompareBitmap url="../Properties/baselines/$testID.png" target="swfloader1" timeout="2500" />
+	     </body>
+	  </TestCase>
+	</testCases>
+</UnitTester>

Added: incubator/flex/trunk/mustella/tests/DownloadProgressBar/Properties/SparkDownloadProgressBar_Properties.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/DownloadProgressBar/Properties/SparkDownloadProgressBar_Properties.mxml?rev=1369942&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/DownloadProgressBar/Properties/SparkDownloadProgressBar_Properties.mxml (added)
+++ incubator/flex/trunk/mustella/tests/DownloadProgressBar/Properties/SparkDownloadProgressBar_Properties.mxml Mon Aug  6 19:36:43 2012
@@ -0,0 +1,122 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+<UnitTester testDir="DownloadProgressBar/Properties/"  xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*"
+    testSWF="DownloadProgressBar_Main.mxml">
+	<mx:Script>
+	<![CDATA[
+	public static function init(o:DisplayObject):void
+	{
+	}
+	]]>
+	</mx:Script>
+	<mx:Metadata>
+	<![CDATA[
+		[Mixin]
+	]]>
+	</mx:Metadata>
+	<mx:Script>
+	<![CDATA[
+	import mx.styles.StyleManager;
+	import mx.managers.SystemManager;
+
+
+	]]>
+	</mx:Script>
+
+   <testCases>
+	<TestCase testID="SparkDownloadProgressBar_default" keywords="[SparkDownloadProgressBar, backgroundColor"
+	      description="Test the default Spark preloader.">
+	      <setup>
+		   <SetProperty propertyName="source" target="swfloader1" value="assets/MainSpark.swf" waitEvent="complete"
+		       waitTarget="swfloader1"/>
+	         <Pause timeout="500" />
+	     </setup>
+	    <body>
+		  <CompareBitmap url="../Properties/baselines/$testID.png" target="swfloader1" timeout="2500" />
+	     </body>
+	  </TestCase>
+	<TestCase testID="SparkDownloadProgressBar_properties_backgroundColor" keywords="[SparkDownloadProgressBar, backgroundColor"
+	      description="The backgroundColor of the application should be red while the preloader is up.">
+	      <setup>
+		      <SetProperty propertyName="source" target="swfloader1" value="assets/SparkRedMain.swf" waitEvent="complete"
+		       waitTarget="swfloader1"/>
+	          <Pause timeout="500" />
+	     </setup>
+	    <body>
+		  <AssertPixelValue value="0xFF0000" x="5" y="5" target="swfloader1" />
+	     </body>
+	  </TestCase>
+	<TestCase testID="SparkDownloadProgressBar_properties_backgroundAlpha" keywords="[SparkDownloadProgressBar, backgroundAlpha"
+	    description="Test setting backgroundAlpha=0.2. The backgroundColor is red, so, the actual color should be pink.">
+	      <setup>
+		   <SetProperty propertyName="source" target="swfloader1" value="assets/SparkAlphaMain.swf" waitEvent="complete"
+		       waitTarget="swfloader1"/>
+		   <Pause timeout="500" />
+	     </setup>
+	    <body>
+		  <AssertPixelValue value="0xFFB3B3" x="5" y="5" target="swfloader1" />
+	     </body>
+	  </TestCase>
+	<TestCase testID="SparkDownloadProgressBar_properties_backgroundImage" keywords="[SparkDownloadProgressBar, backgroundImage"
+	    description="Test that the backgroundImage should be a Flex flag in the preloader.">
+	      <setup>
+		   <SetProperty propertyName="source" target="swfloader1" value="assets/SparkImageMain.swf" waitEvent="complete"
+		       waitTarget="swfloader1"/>
+	       <Pause timeout="500" />
+	     </setup>
+	    <body>
+		  <CompareBitmap url="../Properties/baselines/$testID.png" target="swfloader1" timeout="2500" />
+	     </body>
+	  </TestCase>
+	<TestCase testID="SparkDownloadProgressBar_properties_preloaderBaseColor" keywords="[SparkDownloadProgressBar, 	preloaderBaseColor"
+	    description="Test that the 	preloaderBaseColor changes the preloader's colors correctly.">
+	      <setup>
+		   <SetProperty propertyName="source" target="swfloader1" value="assets/SparkPreloaderBaseColorMain.swf" waitEvent="complete"
+		       waitTarget="swfloader1"/>
+	       <Pause timeout="500" />
+	     </setup>
+	    <body>
+		  <CompareBitmap url="../Properties/baselines/$testID.png" target="swfloader1" timeout="2500" />
+	     </body>
+	  </TestCase>
+	<!--TestCase testID="SparkDownloadProgressBar_RSL_Error" keywords="[SparkDownloadProgressBar, 	runtime shared library, error]"
+	    description="Test that the Preloader puts up an error in the application when RSls can't be loaded.">
+	      <setup>
+		   <SetProperty propertyName="source" target="swfloader1" value="assets/SparkPreloaderRSLErrorMain.swf" waitEvent="complete"
+		       waitTarget="swfloader1"/>
+	       <Pause timeout="500" />
+	     </setup>
+	    <body>
+		  <CompareBitmap url="../Properties/baselines/$testID.png" target="swfloader1" timeout="2500" />
+	     </body>
+	  </TestCase-->
+	<TestCase testID="SparkDownloadProgressBar_RSL_NoError" keywords="[SparkDownloadProgressBar, 	runtime shared library, error]"
+	    description="Test that the Preloader works when RSLs are loaded.">
+	      <setup>
+		   <SetProperty propertyName="source" target="swfloader1" value="assets/SparkPreloaderRSLMain.swf" waitEvent="complete"
+		       waitTarget="swfloader1"/>
+	       <Pause timeout="500" />
+	     </setup>
+	    <body>
+		  <CompareBitmap url="../Properties/baselines/$testID.png" target="swfloader1" timeout="2500" />
+	     </body>
+	  </TestCase>
+	</testCases>
+</UnitTester>

Added: incubator/flex/trunk/mustella/tests/DownloadProgressBar/Properties/baselines/DownloadProgressBar_properties_backgroundImage.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/DownloadProgressBar/Properties/baselines/DownloadProgressBar_properties_backgroundImage.png?rev=1369942&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/DownloadProgressBar/Properties/baselines/DownloadProgressBar_properties_backgroundImage.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/DownloadProgressBar/Properties/baselines/DownloadProgressBar_properties_initializingLabel.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/DownloadProgressBar/Properties/baselines/DownloadProgressBar_properties_initializingLabel.png?rev=1369942&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/DownloadProgressBar/Properties/baselines/DownloadProgressBar_properties_initializingLabel.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/DownloadProgressBar/Properties/baselines/SparkDownloadProgressBar_RSL_Error.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/DownloadProgressBar/Properties/baselines/SparkDownloadProgressBar_RSL_Error.png?rev=1369942&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/DownloadProgressBar/Properties/baselines/SparkDownloadProgressBar_RSL_Error.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/DownloadProgressBar/Properties/baselines/SparkDownloadProgressBar_RSL_NoError.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/DownloadProgressBar/Properties/baselines/SparkDownloadProgressBar_RSL_NoError.png?rev=1369942&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/DownloadProgressBar/Properties/baselines/SparkDownloadProgressBar_RSL_NoError.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/DownloadProgressBar/Properties/baselines/SparkDownloadProgressBar_default.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/DownloadProgressBar/Properties/baselines/SparkDownloadProgressBar_default.png?rev=1369942&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/DownloadProgressBar/Properties/baselines/SparkDownloadProgressBar_default.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/DownloadProgressBar/Properties/baselines/SparkDownloadProgressBar_properties_backgroundImage.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/DownloadProgressBar/Properties/baselines/SparkDownloadProgressBar_properties_backgroundImage.png?rev=1369942&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/DownloadProgressBar/Properties/baselines/SparkDownloadProgressBar_properties_backgroundImage.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/DownloadProgressBar/Properties/baselines/SparkDownloadProgressBar_properties_preloaderBaseColor.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/DownloadProgressBar/Properties/baselines/SparkDownloadProgressBar_properties_preloaderBaseColor.png?rev=1369942&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/DownloadProgressBar/Properties/baselines/SparkDownloadProgressBar_properties_preloaderBaseColor.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/DownloadProgressBar/SWFs/DownloadProgressBar_Main.compile
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/DownloadProgressBar/SWFs/DownloadProgressBar_Main.compile?rev=1369942&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/DownloadProgressBar/SWFs/DownloadProgressBar_Main.compile (added)
+++ incubator/flex/trunk/mustella/tests/DownloadProgressBar/SWFs/DownloadProgressBar_Main.compile Mon Aug  6 19:36:43 2012
@@ -0,0 +1 @@
+-static-link-runtime-shared-libraries=true
\ No newline at end of file

Added: incubator/flex/trunk/mustella/tests/DownloadProgressBar/SWFs/DownloadProgressBar_Main.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/DownloadProgressBar/SWFs/DownloadProgressBar_Main.mxml?rev=1369942&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/DownloadProgressBar/SWFs/DownloadProgressBar_Main.mxml (added)
+++ incubator/flex/trunk/mustella/tests/DownloadProgressBar/SWFs/DownloadProgressBar_Main.mxml Mon Aug  6 19:36:43 2012
@@ -0,0 +1,9 @@
+<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark"
+    xmlns:mx="library://ns.adobe.com/flex/mx"
+    width="700" height="600" >
+
+    <mx:SWFLoader id="swfloader1" />
+    
+    <s:Button y="550"/>
+
+</s:Application>
\ No newline at end of file

Added: incubator/flex/trunk/mustella/tests/DownloadProgressBar/SWFs/assets/AlphaMain.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/DownloadProgressBar/SWFs/assets/AlphaMain.mxml?rev=1369942&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/DownloadProgressBar/SWFs/assets/AlphaMain.mxml (added)
+++ incubator/flex/trunk/mustella/tests/DownloadProgressBar/SWFs/assets/AlphaMain.mxml Mon Aug  6 19:36:43 2012
@@ -0,0 +1,4 @@
+<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" preloader="AlphaProgressBar"
+    width="300" height="250" >
+    <mx:Button label="Test"/>
+</mx:Application>
\ No newline at end of file

Added: incubator/flex/trunk/mustella/tests/DownloadProgressBar/SWFs/assets/AlphaProgressBar.as
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/DownloadProgressBar/SWFs/assets/AlphaProgressBar.as?rev=1369942&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/DownloadProgressBar/SWFs/assets/AlphaProgressBar.as (added)
+++ incubator/flex/trunk/mustella/tests/DownloadProgressBar/SWFs/assets/AlphaProgressBar.as Mon Aug  6 19:36:43 2012
@@ -0,0 +1,52 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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
+{
+import flash.utils.*;
+import mx.controls.Image;
+import mx.preloaders.*;
+import flash.events.ProgressEvent;
+import flash.net.URLRequest;
+public class AlphaProgressBar extends mx.preloaders.DownloadProgressBar
+{
+    public function AlphaProgressBar()
+    {
+        super();
+    }
+    
+    override public function initialize():void
+    {
+        super.initialize();
+        backgroundColor= 0xFF0000;
+        backgroundAlpha=0.3;
+        MINIMUM_DISPLAY_TIME = 2000;
+    }
+    
+    override protected function showDisplayForInit(elapsedTime:int, count:int):Boolean
+    {
+        return true;
+    }
+    
+    override protected function showDisplayForDownloading(elapsedTime:int,
+                                              event:ProgressEvent):Boolean
+    {
+        return true;
+    }
+}          
+}
\ No newline at end of file

Added: incubator/flex/trunk/mustella/tests/DownloadProgressBar/SWFs/assets/ImageMain.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/DownloadProgressBar/SWFs/assets/ImageMain.mxml?rev=1369942&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/DownloadProgressBar/SWFs/assets/ImageMain.mxml (added)
+++ incubator/flex/trunk/mustella/tests/DownloadProgressBar/SWFs/assets/ImageMain.mxml Mon Aug  6 19:36:43 2012
@@ -0,0 +1,4 @@
+<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" preloader="ImageProgressBar"
+    width="300" height="250" >
+    <mx:Button label="Test"/>
+</mx:Application>
\ No newline at end of file

Added: incubator/flex/trunk/mustella/tests/DownloadProgressBar/SWFs/assets/ImageProgressBar.as
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/DownloadProgressBar/SWFs/assets/ImageProgressBar.as?rev=1369942&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/DownloadProgressBar/SWFs/assets/ImageProgressBar.as (added)
+++ incubator/flex/trunk/mustella/tests/DownloadProgressBar/SWFs/assets/ImageProgressBar.as Mon Aug  6 19:36:43 2012
@@ -0,0 +1,55 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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
+{
+import flash.utils.*;
+import mx.controls.Image;
+import mx.preloaders.*;
+import flash.events.ProgressEvent;
+import flash.net.URLRequest;
+public class ImageProgressBar extends mx.preloaders.DownloadProgressBar
+{
+    [Embed("../../../../Assets/Images/redrect.jpg")] 
+    public var flexImage:Class;
+    
+    public function ImageProgressBar()
+    {
+        super();
+    }
+    
+    override public function initialize():void
+    {
+        super.initialize();
+        backgroundImage= flexImage;
+        initializingLabel='HELLO...'
+        MINIMUM_DISPLAY_TIME = 5000;
+    }
+    
+    override protected function showDisplayForInit(elapsedTime:int, count:int):Boolean
+    {
+        return true;
+    }
+    
+    override protected function showDisplayForDownloading(elapsedTime:int,
+                                              event:ProgressEvent):Boolean
+    {
+        return true;
+    }
+}          
+}
\ No newline at end of file

Added: incubator/flex/trunk/mustella/tests/DownloadProgressBar/SWFs/assets/LabelMain.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/DownloadProgressBar/SWFs/assets/LabelMain.mxml?rev=1369942&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/DownloadProgressBar/SWFs/assets/LabelMain.mxml (added)
+++ incubator/flex/trunk/mustella/tests/DownloadProgressBar/SWFs/assets/LabelMain.mxml Mon Aug  6 19:36:43 2012
@@ -0,0 +1,4 @@
+<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" preloader="LabelProgressBar"
+    width="300" height="250" >
+    <mx:Button label="Test"/>
+</mx:Application>
\ No newline at end of file

Added: incubator/flex/trunk/mustella/tests/DownloadProgressBar/SWFs/assets/LabelProgressBar.as
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/DownloadProgressBar/SWFs/assets/LabelProgressBar.as?rev=1369942&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/DownloadProgressBar/SWFs/assets/LabelProgressBar.as (added)
+++ incubator/flex/trunk/mustella/tests/DownloadProgressBar/SWFs/assets/LabelProgressBar.as Mon Aug  6 19:36:43 2012
@@ -0,0 +1,51 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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
+{
+import flash.utils.*;
+import mx.controls.Image;
+import mx.preloaders.*;
+import flash.events.ProgressEvent;
+import flash.net.URLRequest;
+public class LabelProgressBar extends mx.preloaders.DownloadProgressBar
+{
+    public function LabelProgressBar()
+    {
+        super();
+    }
+    
+    override public function initialize():void
+    {
+        super.initialize();
+        initializingLabel='Initializing Label...'
+        MINIMUM_DISPLAY_TIME = 2000;
+    }
+    
+    override protected function showDisplayForInit(elapsedTime:int, count:int):Boolean
+    {
+        return true;
+    }
+    
+    override protected function showDisplayForDownloading(elapsedTime:int,
+                                              event:ProgressEvent):Boolean
+    {
+        return true;
+    }
+}          
+}
\ No newline at end of file

Added: incubator/flex/trunk/mustella/tests/DownloadProgressBar/SWFs/assets/MainSpark.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/DownloadProgressBar/SWFs/assets/MainSpark.mxml?rev=1369942&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/DownloadProgressBar/SWFs/assets/MainSpark.mxml (added)
+++ incubator/flex/trunk/mustella/tests/DownloadProgressBar/SWFs/assets/MainSpark.mxml Mon Aug  6 19:36:43 2012
@@ -0,0 +1,10 @@
+<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark"
+    	width="300" height="250" preloader="SparkDelayedProgressBar">
+    	<s:layout>
+    	    <s:HorizontalLayout />
+    	</s:layout>
+    <s:Button label="Test"/>
+    <s:Button label="Test"/>
+    <s:Button label="Test"/>
+
+</s:Application>
\ No newline at end of file

Added: incubator/flex/trunk/mustella/tests/DownloadProgressBar/SWFs/assets/RedMain.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/DownloadProgressBar/SWFs/assets/RedMain.mxml?rev=1369942&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/DownloadProgressBar/SWFs/assets/RedMain.mxml (added)
+++ incubator/flex/trunk/mustella/tests/DownloadProgressBar/SWFs/assets/RedMain.mxml Mon Aug  6 19:36:43 2012
@@ -0,0 +1,4 @@
+<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" preloader="RedProgressBar"
+    width="300" height="250" >
+    <mx:Button label="Test"/>
+</mx:Application>
\ No newline at end of file

Added: incubator/flex/trunk/mustella/tests/DownloadProgressBar/SWFs/assets/RedProgressBar.as
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/DownloadProgressBar/SWFs/assets/RedProgressBar.as?rev=1369942&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/DownloadProgressBar/SWFs/assets/RedProgressBar.as (added)
+++ incubator/flex/trunk/mustella/tests/DownloadProgressBar/SWFs/assets/RedProgressBar.as Mon Aug  6 19:36:43 2012
@@ -0,0 +1,51 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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
+{
+import flash.utils.*;
+import mx.controls.Image;
+import mx.preloaders.*;
+import flash.events.ProgressEvent;
+import flash.net.URLRequest;
+public class RedProgressBar extends mx.preloaders.DownloadProgressBar
+{
+    public function RedProgressBar()
+    {
+        super();
+    }
+    
+    override public function initialize():void
+    {
+        super.initialize();
+        backgroundColor= 0xFF0000;
+        MINIMUM_DISPLAY_TIME = 2000;
+    }
+    
+    override protected function showDisplayForInit(elapsedTime:int, count:int):Boolean
+    {
+        return true;
+    }
+    
+    override protected function showDisplayForDownloading(elapsedTime:int,
+                                              event:ProgressEvent):Boolean
+    {
+        return true;
+    }
+}          
+}
\ No newline at end of file

Added: incubator/flex/trunk/mustella/tests/DownloadProgressBar/SWFs/assets/SparkAlphaMain.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/DownloadProgressBar/SWFs/assets/SparkAlphaMain.mxml?rev=1369942&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/DownloadProgressBar/SWFs/assets/SparkAlphaMain.mxml (added)
+++ incubator/flex/trunk/mustella/tests/DownloadProgressBar/SWFs/assets/SparkAlphaMain.mxml Mon Aug  6 19:36:43 2012
@@ -0,0 +1,8 @@
+<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark"
+    preloader="SparkAlphaProgressBar"
+    width="300" height="250" >
+    <s:layout>
+        <s:VerticalLayout />
+    </s:layout>
+    <s:Button label="Test"/>
+</s:Application>
\ No newline at end of file

Added: incubator/flex/trunk/mustella/tests/DownloadProgressBar/SWFs/assets/SparkAlphaProgressBar.as
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/DownloadProgressBar/SWFs/assets/SparkAlphaProgressBar.as?rev=1369942&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/DownloadProgressBar/SWFs/assets/SparkAlphaProgressBar.as (added)
+++ incubator/flex/trunk/mustella/tests/DownloadProgressBar/SWFs/assets/SparkAlphaProgressBar.as Mon Aug  6 19:36:43 2012
@@ -0,0 +1,82 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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
+{
+import flash.utils.*;
+import mx.controls.Image;
+import mx.preloaders.*;
+import flash.events.*;
+import flash.net.URLRequest;
+
+
+public class SparkAlphaProgressBar extends mx.preloaders.SparkDownloadProgressBar
+{
+    public function SparkAlphaProgressBar()
+    {
+        super();
+    }
+    
+    private var displayTime:int;
+    
+    override public function initialize():void
+    {
+        super.initialize();
+        backgroundColor= 0xFF0000;
+        backgroundAlpha=0.3;
+    }
+    
+    override protected function setInitProgress(completed:Number, total:Number):void
+    {
+        super.setInitProgress(completed, total);
+        
+        displayTime = getTimer();
+    }
+    
+    override protected function showDisplayForDownloading(elapsedTime:int,
+                                              event:ProgressEvent):Boolean
+    {
+        return true;
+    }
+    
+    override protected function initCompleteHandler(event:Event):void
+    {
+        //This makes the DownloadProgressBar stay up for at least 1 second for testing purposes
+        
+        var minDisplayTime:Number = 1500;
+        
+        var elapsedTime:int = getTimer() - displayTime;
+        
+        if (elapsedTime < minDisplayTime)
+        {
+            var timer:Timer = new Timer(minDisplayTime - elapsedTime, 1);
+            timer.addEventListener(TimerEvent.TIMER, timerHandler);
+            timer.start();
+        }
+        else
+        {
+            timerHandler();
+        }
+    }
+    
+    private function timerHandler(event:Event = null):void
+    {
+        dispatchEvent(new Event(Event.COMPLETE)); 
+    }
+}          
+}
\ No newline at end of file

Added: incubator/flex/trunk/mustella/tests/DownloadProgressBar/SWFs/assets/SparkDelayedProgressBar.as
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/DownloadProgressBar/SWFs/assets/SparkDelayedProgressBar.as?rev=1369942&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/DownloadProgressBar/SWFs/assets/SparkDelayedProgressBar.as (added)
+++ incubator/flex/trunk/mustella/tests/DownloadProgressBar/SWFs/assets/SparkDelayedProgressBar.as Mon Aug  6 19:36:43 2012
@@ -0,0 +1,79 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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
+{
+import flash.utils.*;
+import mx.controls.Image;
+import mx.preloaders.*;
+import flash.events.*;
+import flash.net.URLRequest;
+public class SparkDelayedProgressBar extends mx.preloaders.SparkDownloadProgressBar
+{
+    public function SparkDelayedProgressBar()
+    {
+        super();
+    }
+    
+    private var displayTime:int;
+    
+    override public function initialize():void
+    {
+        super.initialize();
+        backgroundColor= 0xCCCCCC;
+    }
+    
+    override protected function setInitProgress(completed:Number, total:Number):void
+    {
+        super.setInitProgress(completed, total);
+        
+        displayTime = getTimer();
+    }
+    
+    override protected function showDisplayForDownloading(elapsedTime:int,
+                                              event:ProgressEvent):Boolean
+    {
+        return true;
+    }
+    
+    override protected function initCompleteHandler(event:Event):void
+    {
+        //This makes the DownloadProgressBar stay up for at least 1 second for testing purposes
+        
+        var minDisplayTime:Number = 1500;
+        
+        var elapsedTime:int = getTimer() - displayTime;
+        
+        if (elapsedTime < minDisplayTime)
+        {
+            var timer:Timer = new Timer(minDisplayTime - elapsedTime, 1);
+            timer.addEventListener(TimerEvent.TIMER, timerHandler);
+            timer.start();
+        }
+        else
+        {
+            timerHandler();
+        }
+    }
+    
+    private function timerHandler(event:Event = null):void
+    {
+        dispatchEvent(new Event(Event.COMPLETE)); 
+    }
+}          
+}
\ No newline at end of file

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

Added: incubator/flex/trunk/mustella/tests/DownloadProgressBar/SWFs/assets/SparkImageProgressBar.as
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/DownloadProgressBar/SWFs/assets/SparkImageProgressBar.as?rev=1369942&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/DownloadProgressBar/SWFs/assets/SparkImageProgressBar.as (added)
+++ incubator/flex/trunk/mustella/tests/DownloadProgressBar/SWFs/assets/SparkImageProgressBar.as Mon Aug  6 19:36:43 2012
@@ -0,0 +1,84 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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
+{
+import flash.utils.*;
+import mx.controls.Image;
+import mx.preloaders.*;
+import flash.events.*;
+import flash.net.URLRequest;
+public class SparkImageProgressBar extends mx.preloaders.SparkDownloadProgressBar
+{
+    public function SparkImageProgressBar()
+    {
+        super();
+    }
+    
+    override public function initialize():void
+    {
+        super.initialize();
+        backgroundImage= "../../../../Assets/Images/redrect.jpg"; 
+    }
+    
+    private var displayTime:int;
+    
+    override protected function showDisplayForInit(elapsedTime:int, count:int):Boolean
+    {
+        return true;
+    }
+    
+    override protected function showDisplayForDownloading(elapsedTime:int,
+                                              event:ProgressEvent):Boolean
+    {
+        return true;
+    }
+    
+    override protected function setInitProgress(completed:Number, total:Number):void
+    {
+        super.setInitProgress(completed, total);
+        
+        displayTime = getTimer();
+    }
+    
+    override protected function initCompleteHandler(event:Event):void
+    {
+        //This makes the DownloadProgressBar stay up for at least 1 second for testing purposes
+        
+        var minDisplayTime:Number = 1500;
+        
+        var elapsedTime:int = getTimer() - displayTime;
+        
+        if (elapsedTime < minDisplayTime)
+        {
+            var timer:Timer = new Timer(minDisplayTime - elapsedTime, 1);
+            timer.addEventListener(TimerEvent.TIMER, timerHandler);
+            timer.start();
+        }
+        else
+        {
+            timerHandler();
+        }
+    }
+    
+    private function timerHandler(event:Event = null):void
+    {
+        dispatchEvent(new Event(Event.COMPLETE)); 
+    }
+}          
+}
\ No newline at end of file

Added: incubator/flex/trunk/mustella/tests/DownloadProgressBar/SWFs/assets/SparkPreloaderBaseColorMain.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/DownloadProgressBar/SWFs/assets/SparkPreloaderBaseColorMain.mxml?rev=1369942&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/DownloadProgressBar/SWFs/assets/SparkPreloaderBaseColorMain.mxml (added)
+++ incubator/flex/trunk/mustella/tests/DownloadProgressBar/SWFs/assets/SparkPreloaderBaseColorMain.mxml Mon Aug  6 19:36:43 2012
@@ -0,0 +1,18 @@
+<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark"
+        preloaderChromeColor="0xFF6633" width="300" height="250" preloader="SparkDelayedProgressBar">
+    <s:layout>
+        <s:VerticalLayout />
+    </s:layout>
+
+    <s:Button label="Test"/>
+    <s:Button label="Test"/>
+    <s:Button label="Test"/>
+    <s:Button label="Test"/>
+    <s:Button label="Test"/>
+    <s:Button label="Test"/>
+    <s:Button label="Test"/>
+    <s:Button label="Test"/>
+    <s:Button label="Test"/>
+    <s:Button label="Test"/>
+
+</s:Application>
\ No newline at end of file

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

Added: incubator/flex/trunk/mustella/tests/DownloadProgressBar/SWFs/assets/SparkPreloaderRSLMain.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/DownloadProgressBar/SWFs/assets/SparkPreloaderRSLMain.mxml?rev=1369942&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/DownloadProgressBar/SWFs/assets/SparkPreloaderRSLMain.mxml (added)
+++ incubator/flex/trunk/mustella/tests/DownloadProgressBar/SWFs/assets/SparkPreloaderRSLMain.mxml Mon Aug  6 19:36:43 2012
@@ -0,0 +1,18 @@
+<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark"
+    	width="300" height="250" preloader="SparkDelayedProgressBar">
+    <s:layout>
+        <s:VerticalLayout />
+    </s:layout>
+
+    <s:Button label="Test"/>
+    <s:Button label="Test"/>
+    <s:Button label="Test"/>
+    <s:Button label="Test"/>
+    <s:Button label="Test"/>
+    <s:Button label="Test"/>
+    <s:Button label="Test"/>
+    <s:Button label="Test"/>
+    <s:Button label="Test"/>
+    <s:Button label="Test"/>
+
+</s:Application>
\ No newline at end of file

Added: incubator/flex/trunk/mustella/tests/DownloadProgressBar/SWFs/assets/SparkRedMain.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/DownloadProgressBar/SWFs/assets/SparkRedMain.mxml?rev=1369942&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/DownloadProgressBar/SWFs/assets/SparkRedMain.mxml (added)
+++ incubator/flex/trunk/mustella/tests/DownloadProgressBar/SWFs/assets/SparkRedMain.mxml Mon Aug  6 19:36:43 2012
@@ -0,0 +1,19 @@
+<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark"
+    preloader="SparkRedProgressBar"
+    width="300" height="250" >
+    <s:layout>
+        <s:VerticalLayout />
+    </s:layout>
+
+    <s:Button label="Test"/>
+    <s:Button label="Test"/>
+    <s:Button label="Test"/>
+    <s:Button label="Test"/>
+    <s:Button label="Test"/>
+    <s:Button label="Test"/>
+    <s:Button label="Test"/>
+    <s:Button label="Test"/>
+    <s:Button label="Test"/>
+    <s:Button label="Test"/>
+
+</s:Application>
\ No newline at end of file

Added: incubator/flex/trunk/mustella/tests/DownloadProgressBar/SWFs/assets/SparkRedProgressBar.as
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/DownloadProgressBar/SWFs/assets/SparkRedProgressBar.as?rev=1369942&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/DownloadProgressBar/SWFs/assets/SparkRedProgressBar.as (added)
+++ incubator/flex/trunk/mustella/tests/DownloadProgressBar/SWFs/assets/SparkRedProgressBar.as Mon Aug  6 19:36:43 2012
@@ -0,0 +1,79 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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
+{
+import flash.utils.*;
+import mx.controls.Image;
+import mx.preloaders.*;
+import flash.events.*;
+import flash.net.URLRequest;
+public class SparkRedProgressBar extends mx.preloaders.SparkDownloadProgressBar
+{
+    public function SparkRedProgressBar()
+    {
+        super();
+    }
+    
+    private var displayTime:int;
+    
+    override public function initialize():void
+    {
+        super.initialize();
+        backgroundColor= 0xFF0000;
+    }
+    
+    override protected function setInitProgress(completed:Number, total:Number):void
+    {
+        super.setInitProgress(completed, total);
+        
+        displayTime = getTimer();
+    }
+    
+    override protected function showDisplayForDownloading(elapsedTime:int,
+                                              event:ProgressEvent):Boolean
+    {
+        return true;
+    }
+    
+    override protected function initCompleteHandler(event:Event):void
+    {
+        //This makes the DownloadProgressBar stay up for at least 1 second for testing purposes
+        
+        var minDisplayTime:Number = 1500;
+        
+        var elapsedTime:int = getTimer() - displayTime;
+        
+        if (elapsedTime < minDisplayTime)
+        {
+            var timer:Timer = new Timer(minDisplayTime - elapsedTime, 1);
+            timer.addEventListener(TimerEvent.TIMER, timerHandler);
+            timer.start();
+        }
+        else
+        {
+            timerHandler();
+        }
+    }
+    
+    private function timerHandler(event:Event = null):void
+    {
+        dispatchEvent(new Event(Event.COMPLETE)); 
+    }
+}          
+}
\ No newline at end of file

Added: incubator/flex/trunk/mustella/tests/DownloadProgressBar/SWFs/pre_compile.sh
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/DownloadProgressBar/SWFs/pre_compile.sh?rev=1369942&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/DownloadProgressBar/SWFs/pre_compile.sh (added)
+++ incubator/flex/trunk/mustella/tests/DownloadProgressBar/SWFs/pre_compile.sh Mon Aug  6 19:36:43 2012
@@ -0,0 +1,36 @@
+#!/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.
+##
+################################################################################
+cd assets
+
+echo "Removing previously compiled files..."
+rm -f `find . -name "*.swf"`
+
+
+echo "Compiling sub application SWFs..."
+$SDK_DIR/bin/mxmlc -static-link-runtime-shared-libraries=true AlphaMain.mxml
+$SDK_DIR/bin/mxmlc -static-link-runtime-shared-libraries=true RedMain.mxml
+$SDK_DIR/bin/mxmlc -static-link-runtime-shared-libraries=true MainSpark.mxml
+$SDK_DIR/bin/mxmlc -static-link-runtime-shared-libraries=true LabelMain.mxml
+$SDK_DIR/bin/mxmlc -static-link-runtime-shared-libraries=true ImageMain.mxml
+$SDK_DIR/bin/mxmlc -static-link-runtime-shared-libraries=true SparkAlphaMain.mxml
+$SDK_DIR/bin/mxmlc -static-link-runtime-shared-libraries=true SparkRedMain.mxml
+$SDK_DIR/bin/mxmlc -static-link-runtime-shared-libraries=true SparkImageMain.mxml
+$SDK_DIR/bin/mxmlc -static-link-runtime-shared-libraries=true SparkPreloaderBaseColorMain.mxml
+$SDK_DIR/bin/mxmlc -static-link-runtime-shared-libraries=true SparkPreloaderRSLMain.mxml

Propchange: incubator/flex/trunk/mustella/tests/DownloadProgressBar/SWFs/pre_compile.sh
------------------------------------------------------------------------------
    svn:executable = *



Mime
View raw message