incubator-flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From p...@apache.org
Subject svn commit: r1370370 [30/43] - in /incubator/flex/trunk/mustella/tests/mx: ./ binding/ binding/utils/ binding/utils/BindingUtils/ binding/utils/BindingUtils/SWFs/ binding/utils/BindingUtils/SWFs/assets/ binding/utils/BindingUtils/method/ binding/utils/...
Date Tue, 07 Aug 2012 17:13:35 GMT
Added: incubator/flex/trunk/mustella/tests/mx/states/Transition/SWFs/comps/AnimateColorComponents.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/mx/states/Transition/SWFs/comps/AnimateColorComponents.mxml?rev=1370370&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/mx/states/Transition/SWFs/comps/AnimateColorComponents.mxml (added)
+++ incubator/flex/trunk/mustella/tests/mx/states/Transition/SWFs/comps/AnimateColorComponents.mxml Tue Aug  7 17:13:06 2012
@@ -0,0 +1,61 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+<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" 
+         xmlns:d="assets.*" width="400" height="300"
+         currentState="State1">
+    <s:states>
+        <s:State name="State1"/>
+        <s:State name="State2"/>
+        <s:State name="State3"/>
+    </s:states>
+    <s:layout>
+        <s:VerticalLayout />
+    </s:layout>
+    <s:Group>
+        <s:CheckBox id="autoReverse_check" x="5" y="5" label="autoReverse"/>
+        <s:ComboBox id="IB_check" selectedIndex="0" x="120"  y="5">
+            <s:dataProvider>
+                <s:ArrayList>
+                    <fx:String>stop</fx:String>
+                    <fx:String>end</fx:String>
+                </s:ArrayList>
+            </s:dataProvider>
+        </s:ComboBox>
+    </s:Group>
+    <s:Panel width="500" height="600">
+        <s:Rect width="400" height="200">
+            <s:fill>
+                <s:SolidColor id="color1" color.State1="0x009900" color.State2="0x990000" color.State3="0x009999" />
+            </s:fill>
+        </s:Rect>
+    </s:Panel>
+    
+    <s:transitions>
+        <s:Transition id="mainTransition" fromState="*" toState="*" autoReverse="{autoReverse_check.selected}" 
+                      interruptionBehavior="{IB_check.selectedItem}">
+            <s:Parallel>
+                <s:AnimateColor duration="1500" target="{color1}"/>
+            </s:Parallel>
+        </s:Transition>
+    </s:transitions>
+</s:Group>
+

Added: incubator/flex/trunk/mustella/tests/mx/states/Transition/SWFs/comps/AnimateColorTemplate.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/mx/states/Transition/SWFs/comps/AnimateColorTemplate.mxml?rev=1370370&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/mx/states/Transition/SWFs/comps/AnimateColorTemplate.mxml (added)
+++ incubator/flex/trunk/mustella/tests/mx/states/Transition/SWFs/comps/AnimateColorTemplate.mxml Tue Aug  7 17:13:06 2012
@@ -0,0 +1,73 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+<c:TransitionTemplate xmlns:fx="http://ns.adobe.com/mxml/2009"
+					   xmlns:s="library://ns.adobe.com/flex/spark"
+					   xmlns:mx="library://ns.adobe.com/flex/mx"
+					   xmlns:c="comps.*"
+					   width="500" height="300" initialize="onInit()">
+	<fx:Script>
+		<![CDATA[
+			import mx.events.FlexEvent;
+			
+			protected function onInit():void
+			{
+				this.valueFunction = getColor;
+				this.initTrans = initMove;
+				this.returnTrans = returnMove;
+				this.currentState="One";
+			}
+			
+			protected function getColor() : Number {
+				return target.color;
+			}
+			
+		]]>
+	</fx:Script>
+	
+	<fx:Declarations>
+		<s:Transition id="initMove" fromState="One" toState="Two" autoReverse="true">
+			<s:AnimateColor target="{target}" duration="1000"  
+					effectStart="effectStart(event)"
+					effectEnd="effectEnd(event)"
+					effectUpdate="effectUpdate(event)"
+					effectStop="effectStop(event)"
+					effectRepeat="effectRepeat(event)"
+					/>
+		</s:Transition>
+		<s:Transition id="returnMove" fromState="Two" toState="One" autoReverse="true">
+			<s:AnimateColor target="{target}" duration="2000"  
+					effectStart="effectStart(event)"
+					effectEnd="effectEnd(event)"
+					effectUpdate="effectUpdate(event)"
+					effectStop="effectStop(event)"
+					effectRepeat="effectRepeat(event)"
+					/>
+		</s:Transition>
+	</fx:Declarations>
+	<c:states>
+		<s:State name="One"/>
+		<s:State name="Two"/>		
+	</c:states>
+	<s:Rect y="50" x="50" width="50" height="50">
+		<s:fill>
+			<s:SolidColor id="target" color.One="#000000" color.Two="#FF0000"/>
+		</s:fill>
+	</s:Rect>
+</c:TransitionTemplate>

Added: incubator/flex/trunk/mustella/tests/mx/states/Transition/SWFs/comps/CompositeToResizeComponents.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/mx/states/Transition/SWFs/comps/CompositeToResizeComponents.mxml?rev=1370370&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/mx/states/Transition/SWFs/comps/CompositeToResizeComponents.mxml (added)
+++ incubator/flex/trunk/mustella/tests/mx/states/Transition/SWFs/comps/CompositeToResizeComponents.mxml Tue Aug  7 17:13:06 2012
@@ -0,0 +1,58 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+<s: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" 
+         xmlns:d="assets.*" width="400" height="300"
+         currentState="State1">
+    <s:states>
+        <s:State name="State1"/>
+        <s:State name="State2"/>
+        <s:State name="State3"/>
+    </s:states>
+    <s:layout>
+        <s:VerticalLayout />
+    </s:layout>
+
+ <s:Group id="group1" clipAndEnableScrolling="true" >
+        <s:Rect id="rect1" width="250" height="250" x="250" y="50" x.State2="110" y.State2="265" x.State3="90" y.State3="300"
+                width.State2="75" height.State2="75" width.State3="390" height.State3="365" 
+                alpha.State1="1" alpha.State2="0" alpha.State3=".5" >
+            <s:fill>
+                <s:SolidColor id="sc" color="0x00FF00"/>
+            </s:fill>
+        </s:Rect>       
+        
+    </s:Group>
+    
+    
+    
+    <s:transitions>
+        <s:Transition id="mainTransition" fromState="State1" toState="State2" interruptionBehavior="end">
+            <s:Sequence startDelay="50">
+                <s:Move target="{rect1}" duration="1200" />
+                <s:Fade id="moveEffect" duration="1300" targets="{[rect1]}" />
+            </s:Sequence>
+        </s:Transition>   
+        <s:Transition id="transition2" fromState="State2" toState="State3" interruptionBehavior="end">
+            <s:Resize target="{rect1}" startDelay="100" duration="1000" />
+        </s:Transition>
+    </s:transitions>
+</s:Group>

Added: incubator/flex/trunk/mustella/tests/mx/states/Transition/SWFs/comps/CrossFadeComponents.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/mx/states/Transition/SWFs/comps/CrossFadeComponents.mxml?rev=1370370&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/mx/states/Transition/SWFs/comps/CrossFadeComponents.mxml (added)
+++ incubator/flex/trunk/mustella/tests/mx/states/Transition/SWFs/comps/CrossFadeComponents.mxml Tue Aug  7 17:13:06 2012
@@ -0,0 +1,66 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+<s: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" 
+         xmlns:d="assets.*" width="400" height="300"
+         currentState="State1">
+    <s:states>
+        <s:State name="State1"/>
+        <s:State name="State2"/>
+        <s:State name="State3"/>
+    </s:states>
+    <s:layout>
+        <s:VerticalLayout />
+    </s:layout>
+    <s:Group>
+        <s:CheckBox id="autoReverse_check" x="5" y="5" label="autoReverse"/>
+        <s:ComboBox id="IB_check" selectedIndex="0" x="120"  y="5">
+            <s:dataProvider>
+                <s:ArrayList>
+                    <fx:String>stop</fx:String>
+                    <fx:String>end</fx:String>
+                </s:ArrayList>
+            </s:dataProvider>
+        </s:ComboBox>
+    </s:Group>
+    <s:Group width="500" height="600" id="group1">
+        <s:BitmapImage
+            source="@Embed('../../../../../../Assets/Images/redrect.jpg')"
+             visible.State1="true" visible.State2="false" visible.State3="false"/>
+        <s:BitmapImage
+            source="@Embed('../../../../../../Assets/Images/greenrect.jpg')"
+             visible.State1="false" visible.State2="true" visible.State3="false"/>
+        <s:BitmapImage
+            source="@Embed('../../../../../../Assets/Images/bluerect.jpg')"
+            visible.State1="false" visible.State2="false" visible.State3="true"/>
+
+    </s:Group>
+    
+    <s:transitions>
+        <s:Transition id="mainTransition" fromState="*" toState="*" autoReverse="{autoReverse_check.selected}" 
+                      interruptionBehavior="{IB_check.selectedItem}">
+            <s:Parallel>
+                <s:CrossFade duration="1500" target="{group1}"/>
+            </s:Parallel>
+        </s:Transition>
+    </s:transitions>
+</s:Group>
+

Added: incubator/flex/trunk/mustella/tests/mx/states/Transition/SWFs/comps/CustomEaser.as
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/mx/states/Transition/SWFs/comps/CustomEaser.as?rev=1370370&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/mx/states/Transition/SWFs/comps/CustomEaser.as (added)
+++ incubator/flex/trunk/mustella/tests/mx/states/Transition/SWFs/comps/CustomEaser.as Tue Aug  7 17:13:06 2012
@@ -0,0 +1,34 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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 comps
+{
+    import spark.effects.easing.IEaser;
+    
+    public class CustomEaser implements IEaser
+    {
+        public function CustomEaser()
+        {
+        }
+        
+        public function ease(fraction:Number):Number
+        {
+            return fraction * fraction * fraction;
+        }
+    }
+}
\ No newline at end of file

Added: incubator/flex/trunk/mustella/tests/mx/states/Transition/SWFs/comps/DelayStartTemplate.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/mx/states/Transition/SWFs/comps/DelayStartTemplate.mxml?rev=1370370&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/mx/states/Transition/SWFs/comps/DelayStartTemplate.mxml (added)
+++ incubator/flex/trunk/mustella/tests/mx/states/Transition/SWFs/comps/DelayStartTemplate.mxml Tue Aug  7 17:13:06 2012
@@ -0,0 +1,72 @@
+<?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.
+
+-->
+<c:TransitionTemplate xmlns:fx="http://ns.adobe.com/mxml/2009"
+					   xmlns:s="library://ns.adobe.com/flex/spark"
+					   xmlns:mx="library://ns.adobe.com/flex/mx"
+					   xmlns:c="comps.*"
+					   width="500" height="300" initialize="onInit()">
+	<fx:Script>
+		<![CDATA[
+			import mx.events.FlexEvent;
+			
+			protected function onInit():void
+			{
+				this.valueFunction = getX;
+				this.initTrans = initMove;
+				this.returnTrans = returnMove;
+			}
+			
+			protected function getX() : Number {
+				return target.x;
+			}
+			
+		]]>
+	</fx:Script>
+	
+	<fx:Declarations>
+		<s:Transition id="initMove" fromState="One" toState="Two" autoReverse="true">
+			<s:Move target="{target}" duration="1000" startDelay="200"
+					effectStart="effectStart(event)"
+					effectEnd="effectEnd(event)"
+					effectUpdate="effectUpdate(event)"
+					effectStop="effectStop(event)"
+					effectRepeat="effectRepeat(event)"
+					/>
+		</s:Transition>
+		<s:Transition id="returnMove" fromState="Two" toState="One" autoReverse="true">
+			<s:Move target="{target}" duration="2000"  
+					effectStart="effectStart(event)"
+					effectEnd="effectEnd(event)"
+					effectUpdate="effectUpdate(event)"
+					effectStop="effectStop(event)"
+					effectRepeat="effectRepeat(event)"
+					/>
+		</s:Transition>
+	</fx:Declarations>
+	<c:states>
+		<s:State name="One"/>
+		<s:State name="Two"/>		
+	</c:states>
+	<s:Rect id="target" y="50" x.One="50" x.Two="450" width="50" height="50" >
+		<s:fill>
+			<s:SolidColor color="#FF0000"/>
+		</s:fill>
+	</s:Rect>
+</c:TransitionTemplate>

Added: incubator/flex/trunk/mustella/tests/mx/states/Transition/SWFs/comps/EasingComponents.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/mx/states/Transition/SWFs/comps/EasingComponents.mxml?rev=1370370&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/mx/states/Transition/SWFs/comps/EasingComponents.mxml (added)
+++ incubator/flex/trunk/mustella/tests/mx/states/Transition/SWFs/comps/EasingComponents.mxml Tue Aug  7 17:13:06 2012
@@ -0,0 +1,46 @@
+<?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" 
+         xmlns:d="assets.*" xmlns:utilities="comps.*" width="400" height="300"
+         currentState="State1">
+     <s:states>
+        <s:State name="State1"/>
+        <s:State name="State2" />
+        <s:State name="State3" />
+    </s:states>
+
+    <fx:Declarations>
+        <utilities:CustomEaser id="myEaser"/>
+    </fx:Declarations>
+    
+    <s:transitions>
+        <s:Transition id="mainTransition">
+            <s:Resize target="{button1}" duration="500"
+                    easer="{myEaser}" startDelay="70"/>
+        </s:Transition>
+    </s:transitions>
+    
+    <s:Button id="button1" label="Move Me" width.State1="50" width.State2="250" width.State3="150"  
+       height.State1="50" height.State2="90"  height.State3="300"/>
+    
+  
+</s:Group>

Added: incubator/flex/trunk/mustella/tests/mx/states/Transition/SWFs/comps/FadeComponents.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/mx/states/Transition/SWFs/comps/FadeComponents.mxml?rev=1370370&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/mx/states/Transition/SWFs/comps/FadeComponents.mxml (added)
+++ incubator/flex/trunk/mustella/tests/mx/states/Transition/SWFs/comps/FadeComponents.mxml Tue Aug  7 17:13:06 2012
@@ -0,0 +1,49 @@
+<?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" 
+         xmlns:d="assets.*" width="400" height="300"
+         currentState="State1">
+    <s:states>
+        <s:State name="State1"/>
+        <s:State name="State2"/>
+        <s:State name="State3"/>
+    </s:states>
+    <s:layout>
+        <s:VerticalLayout />
+    </s:layout>
+
+    <s:Panel width="500" height="600">
+        <s:Button id="button1" label="Spark Button"  x="11" y="15" alpha.State1="0" alpha.State2="0.5"
+                   alpha.State3="1"/>
+        <d:twist_path id="fxgType"  x="60" y="105" alpha.State1="1" alpha.State2="0.5"
+                      alpha.State3="0" width="200" height="75"/>
+    </s:Panel>
+    
+    <s:transitions>
+        <s:Transition id="mainTransition" fromState="*" toState="*" >
+            <s:Parallel startDelay="150">
+                <s:Fade duration="500" target="{button1}"/>
+                <s:Fade duration="500" target="{fxgType}"/>
+            </s:Parallel>
+        </s:Transition>
+    </s:transitions>
+</s:Group>

Added: incubator/flex/trunk/mustella/tests/mx/states/Transition/SWFs/comps/FadeTemplate.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/mx/states/Transition/SWFs/comps/FadeTemplate.mxml?rev=1370370&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/mx/states/Transition/SWFs/comps/FadeTemplate.mxml (added)
+++ incubator/flex/trunk/mustella/tests/mx/states/Transition/SWFs/comps/FadeTemplate.mxml Tue Aug  7 17:13:06 2012
@@ -0,0 +1,72 @@
+<?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.
+
+-->
+<c:TransitionTemplate xmlns:fx="http://ns.adobe.com/mxml/2009"
+					   xmlns:s="library://ns.adobe.com/flex/spark"
+					   xmlns:mx="library://ns.adobe.com/flex/mx"
+					   xmlns:c="comps.*"
+					   width="500" height="300" initialize="onInit()">
+	<fx:Script>
+		<![CDATA[
+			import mx.events.FlexEvent;
+			
+			protected function onInit():void
+			{
+				this.valueFunction = getAlpha;
+				this.initTrans = initMove;
+				this.returnTrans = returnMove;
+			}
+			
+			protected function getAlpha() : Number {
+				return target.alpha;
+			}
+			
+		]]>
+	</fx:Script>
+	
+	<fx:Declarations>
+		<s:Transition id="initMove" fromState="One" toState="Two" autoReverse="true">
+			<s:Fade target="{target}" duration="1000"
+					effectStart="effectStart(event)"
+					effectEnd="effectEnd(event)"
+					effectUpdate="effectUpdate(event)"
+					effectStop="effectStop(event)"
+					effectRepeat="effectRepeat(event)"
+					/>
+		</s:Transition>
+		<s:Transition id="returnMove" fromState="Two" toState="One" autoReverse="true">
+			<s:Fade target="{target}" duration="2000"  
+					effectStart="effectStart(event)"
+					effectEnd="effectEnd(event)"
+					effectUpdate="effectUpdate(event)"
+					effectStop="effectStop(event)"
+					effectRepeat="effectRepeat(event)"
+					/>
+		</s:Transition>
+	</fx:Declarations>
+	<c:states>
+		<s:State name="One"/>
+		<s:State name="Two"/>		
+	</c:states>
+	<s:Rect id="target" y="50" x="50" width="50" height="50" alpha.One="1" alpha.Two=".1">
+		<s:fill>
+			<s:SolidColor color="#000000"/>
+		</s:fill>
+	</s:Rect>
+</c:TransitionTemplate>

Added: incubator/flex/trunk/mustella/tests/mx/states/Transition/SWFs/comps/FadeToCompositeComponents.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/mx/states/Transition/SWFs/comps/FadeToCompositeComponents.mxml?rev=1370370&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/mx/states/Transition/SWFs/comps/FadeToCompositeComponents.mxml (added)
+++ incubator/flex/trunk/mustella/tests/mx/states/Transition/SWFs/comps/FadeToCompositeComponents.mxml Tue Aug  7 17:13:06 2012
@@ -0,0 +1,56 @@
+<?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" 
+         xmlns:d="assets.*" width="400" height="300"
+         currentState="State1">
+    <s:states>
+        <s:State name="State1"/>
+        <s:State name="State2"/>
+        <s:State name="State3"/>
+    </s:states>
+    <s:layout>
+        <s:VerticalLayout />
+    </s:layout>
+
+    <s:Group id="group1" clipAndEnableScrolling="true" >
+        <s:Rect id="rect1" width="250" height="250" x="250" y="50" rotation.State2="110" rotation.State1="-65" rotation.State3="90" 
+                alpha.State2=".5" alpha.State3="0" >
+            <s:fill>
+                <s:SolidColor id="sc" color="0x00FF00"/>
+            </s:fill>
+        </s:Rect>         
+    </s:Group>
+    
+    <s:transitions>
+        <s:Transition id="mainTransition" fromState="*" toState="State2" >
+            <s:Sequence startDelay="50">
+                <s:Fade id="moveEffect" duration="1300" targets="{[rect1]}" />
+            </s:Sequence>
+        </s:Transition>   
+        <s:Transition id="transition2" fromState="*" toState="State3" >
+            <s:Parallel startDelay="80">
+                <s:Fade duration="1500" target="{rect1}"/>
+                <s:Rotate duration="1500" target="{rect1}"/>
+            </s:Parallel>
+        </s:Transition>
+    </s:transitions>
+</s:Group>

Added: incubator/flex/trunk/mustella/tests/mx/states/Transition/SWFs/comps/HexCells.pbj
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/mx/states/Transition/SWFs/comps/HexCells.pbj?rev=1370370&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/mx/states/Transition/SWFs/comps/HexCells.pbj
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/mx/states/Transition/SWFs/comps/IntegrationTemplate.as
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/mx/states/Transition/SWFs/comps/IntegrationTemplate.as?rev=1370370&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/mx/states/Transition/SWFs/comps/IntegrationTemplate.as (added)
+++ incubator/flex/trunk/mustella/tests/mx/states/Transition/SWFs/comps/IntegrationTemplate.as Tue Aug  7 17:13:06 2012
@@ -0,0 +1,149 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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 comps
+{
+	import flash.events.Event;
+	
+	import mx.events.EffectEvent;
+	import mx.states.Transition;
+	
+	import spark.components.Group;
+	
+	public class IntegrationTemplate extends Group
+	{
+		
+		private var _valueFunction:Function;
+		private var _fromValue:Number;
+		private var _toValue:Number;
+		
+		[Bindable]
+		public var passed:Boolean = true;
+		[Bindable]
+		public var error:String = null;
+		
+		protected var ignoreNext:Boolean = false;
+		protected var strict:Boolean = true;
+		
+		private var _enableCheck:Boolean = false;
+		private var checkValue:Number;
+		
+		public function IntegrationTemplate()
+		{
+			super();
+		}
+		
+		public function start():void {
+			currentState="Two";
+		}
+		
+		public function effectStart(event:EffectEvent):void{
+			if(_enableCheck){
+				if(!ignoreNext){
+					if(strict){
+						var next:Number = Math.round(valueFunction.call() as Number);
+						
+						if(next != _fromValue){
+							error = "--->Point is not at start! " + next + " vs. " + _fromValue + ".";
+							trace(error);
+							passed = false;
+						}
+					}
+				}else{
+					ignoreNext = false;
+				}
+			}
+			dispatchEvent(event);
+		}
+		
+		public function effectStop(event:EffectEvent):void{
+			dispatchEvent(event);
+		}
+		
+		public function effectUpdate(event:EffectEvent):void{
+			if(_enableCheck){
+				var next:Number = valueFunction.call() as Number;
+				
+				//If this value isn't closer to the end than the previous value fail.
+				if(Math.abs(_toValue - next) > Math.abs(_toValue - checkValue)){
+					error = "--->Point is not closer to end! " + next + " vs. " + checkValue + " (previous).";
+					trace(error);
+					passed = false;
+				}else if(Math.abs(_fromValue - next) < Math.abs(_fromValue - checkValue)){
+					error = "--->Point is not further from start! " + next + " vs. " + checkValue + " (previous).";
+					trace(error);
+					passed = false;
+				}
+			}
+			dispatchEvent(event);
+		}
+		
+		public function effectEnd(event:EffectEvent):void{
+			if(_enableCheck){
+				if(!ignoreNext){
+					var next:Number = Math.round(valueFunction.call() as Number);
+					
+					if(next != toValue){
+						error = "--->Point is not at end! " + next + " vs. " + _toValue + ".";
+						trace(error);
+						passed = false;
+					}
+				}else{
+					ignoreNext = false;
+				}
+			}
+			dispatchEvent(event);
+		}
+		
+		public function effectRepeat(event:EffectEvent):void{
+			dispatchEvent(event);
+		}
+		
+		public function enableCheck():void {
+			_enableCheck = true
+		}
+		
+		[Bindable]
+		public function get toValue():Number {
+			return _toValue;
+		}
+		
+		public function set toValue(value:Number):void {
+			_toValue = value;
+		}
+		
+		[Bindable]
+		public function get fromValue():Number {
+			return _fromValue;
+		}
+		
+		public function set fromValue(value:Number):void {
+			_fromValue = value;
+		}
+		
+		protected function get valueFunction():Function
+		{
+			return _valueFunction;
+		}
+		
+		protected function set valueFunction(value:Function):void
+		{
+			_valueFunction = value;
+		}
+	}
+}
\ No newline at end of file

Added: incubator/flex/trunk/mustella/tests/mx/states/Transition/SWFs/comps/InterruptedARTemplate.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/mx/states/Transition/SWFs/comps/InterruptedARTemplate.mxml?rev=1370370&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/mx/states/Transition/SWFs/comps/InterruptedARTemplate.mxml (added)
+++ incubator/flex/trunk/mustella/tests/mx/states/Transition/SWFs/comps/InterruptedARTemplate.mxml Tue Aug  7 17:13:06 2012
@@ -0,0 +1,101 @@
+<?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.
+
+-->
+<comps:IntegrationTemplate xmlns:fx="http://ns.adobe.com/mxml/2009" 
+						   xmlns:s="library://ns.adobe.com/flex/spark" 
+						   xmlns:mx="library://ns.adobe.com/flex/mx" xmlns:comps="comps.*" width="400" height="300"
+						   initialize="onInit()">
+	<fx:Script>
+		<![CDATA[
+			import mx.events.EffectEvent;
+			import mx.events.FlexEvent;
+			
+			public var timer:Timer;
+			
+			protected function onInit():void
+			{
+				this.valueFunction = getX;
+				this.toValue = 250;
+				this.timer = new Timer(800);
+			}
+			
+			protected function getX() : Number {
+				return target.x;
+			}
+			
+			public function performTest() : void {
+				timer.addEventListener(TimerEvent.TIMER,reverse);
+				timer.start();
+				currentState = "One";
+			}
+			
+			private function reverse(...event:Array) : void {
+				timer.stop();
+				this.fromValue = getX();
+				this.enableCheck();
+				this.ignoreNext = true;
+				this.strict = false;
+				currentState = "Three";
+			}
+		]]>
+	</fx:Script>
+	<comps:transitions>
+		<s:Transition id="oneTwo" fromState="One" toState="Two" autoReverse="true">
+			<s:Move target="{target}" duration="1000"  
+					effectStart="effectStart(event)"
+					effectEnd="effectEnd(event)"
+					effectUpdate="effectUpdate(event)"
+					effectStop="effectStop(event)"
+					effectRepeat="effectRepeat(event)"
+					/>
+		</s:Transition>
+		<s:Transition id="twoThree" fromState="Two" toState="Three" autoReverse="true">
+			<s:Move target="{target}" duration="1000"  
+					effectStart="effectStart(event)"
+					effectEnd="effectEnd(event)"
+					effectUpdate="effectUpdate(event)"
+					effectStop="effectStop(event)"
+					effectRepeat="effectRepeat(event)"
+					/>
+		</s:Transition>
+		<s:Transition id="oneThree" fromState="One" toState="Three" autoReverse="true">
+			<s:Move target="{target}" duration="1000"  
+					effectStart="effectStart(event)"
+					effectEnd="effectEnd(event)"
+					effectUpdate="effectUpdate(event)"
+					effectStop="effectStop(event)"
+					effectRepeat="effectRepeat(event)"
+					/>
+		</s:Transition>
+	</comps:transitions>
+	<comps:states>
+		<s:State name="One"/>
+		<s:State name="Two"/>
+		<s:State name="Three"/>
+		<s:State name="Four"/>
+	</comps:states>
+	<s:Rect id="target" width="50" height="50"
+			y.One="50" x.One="50" 
+			y.Two="50" x.Two="150"
+			y.Three="50" x.Three="250">
+		<s:fill>
+			<s:SolidColor color="#00FF00"/>
+		</s:fill>
+	</s:Rect>
+</comps:IntegrationTemplate>

Added: incubator/flex/trunk/mustella/tests/mx/states/Transition/SWFs/comps/MXComponents.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/mx/states/Transition/SWFs/comps/MXComponents.mxml?rev=1370370&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/mx/states/Transition/SWFs/comps/MXComponents.mxml (added)
+++ incubator/flex/trunk/mustella/tests/mx/states/Transition/SWFs/comps/MXComponents.mxml Tue Aug  7 17:13:06 2012
@@ -0,0 +1,44 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+<s: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" 
+         xmlns:d="assets.*" width="400" height="300"
+         currentState="State1">
+    <s:states>
+        <s:State name="State1"/>
+        <s:State name="State2"/>
+        <s:State name="State3"/>
+    </s:states>
+    <s:layout>
+        <s:VerticalLayout />
+    </s:layout>
+
+    <s:Panel width="500" height="600">
+        <mx:Canvas id="rect1" backgroundColor="0x000000" width.State1="250" height.State1="250"
+                width.State2="50" height.State2="150" width.State3="100" height.State3="300" />
+    </s:Panel>
+    
+    <s:transitions>
+        <s:Transition id="mainTransition" fromState="*" toState="*" >
+            <s:Resize duration="600" targets="{rect1}" startDelay="60"/>
+        </s:Transition>
+    </s:transitions>
+</s:Group>
\ No newline at end of file

Added: incubator/flex/trunk/mustella/tests/mx/states/Transition/SWFs/comps/Move3DComponents.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/mx/states/Transition/SWFs/comps/Move3DComponents.mxml?rev=1370370&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/mx/states/Transition/SWFs/comps/Move3DComponents.mxml (added)
+++ incubator/flex/trunk/mustella/tests/mx/states/Transition/SWFs/comps/Move3DComponents.mxml Tue Aug  7 17:13:06 2012
@@ -0,0 +1,49 @@
+<?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" 
+         xmlns:d="assets.*" width="400" height="300"
+         currentState="State1">
+    <s:states>
+        <s:State name="State1"/>
+        <s:State name="State2"/>
+        <s:State name="State3"/>
+    </s:states>
+    <s:layout>
+        <s:VerticalLayout />
+    </s:layout>
+
+    <s:Panel width="500" height="600">
+        <s:Button id="button1" label="Spark Button"  x.State1="0" y.State1="15" x.State2="11" y.State2="100"
+                   x.State3="150" y.State3="55" z.State1="150" z.State2="0" z.State3="-50"/>
+        <d:twist_path id="fxgType"  x.State1="10" y.State1="105" x.State2="61" y.State2="200"
+                      x.State3="70" y.State3="215" width="200" height="75"  z.State1="150" z.State2="0" z.State3="-50"/>
+    </s:Panel>
+    
+    <s:transitions>
+        <s:Transition id="mainTransition" fromState="*" toState="*" >
+            <s:Parallel startDelay="170">
+                <s:Move3D duration="500" target="{button1}"/>
+                <s:Move3D duration="500" target="{fxgType}"/>
+            </s:Parallel>
+        </s:Transition>
+    </s:transitions>
+</s:Group>

Added: incubator/flex/trunk/mustella/tests/mx/states/Transition/SWFs/comps/Move3DScale3DTemplate.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/mx/states/Transition/SWFs/comps/Move3DScale3DTemplate.mxml?rev=1370370&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/mx/states/Transition/SWFs/comps/Move3DScale3DTemplate.mxml (added)
+++ incubator/flex/trunk/mustella/tests/mx/states/Transition/SWFs/comps/Move3DScale3DTemplate.mxml Tue Aug  7 17:13:06 2012
@@ -0,0 +1,92 @@
+<?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.
+
+-->
+<c:TransitionTemplate xmlns:fx="http://ns.adobe.com/mxml/2009"
+					   xmlns:s="library://ns.adobe.com/flex/spark"
+					   xmlns:mx="library://ns.adobe.com/flex/mx"
+					   xmlns:c="comps.*"
+					   width="500" height="300" initialize="onInit()">
+	<fx:Script>
+		<![CDATA[
+			import mx.events.FlexEvent;
+			
+			protected function onInit():void
+			{
+				this.valueFunction = getNumber;
+				this.initTrans = initMove;
+				this.returnTrans = returnMove;
+			}
+			
+			protected function getNumber() : Number {
+				return target.z + (target.scaleZ * 50);
+			}
+			
+		]]>
+	</fx:Script>
+	
+	<fx:Declarations>
+		<s:Transition id="initMove" fromState="One" toState="Two" autoReverse="true">
+			<s:Sequence>
+				<s:children>
+					<s:Move3D target="{target}" duration="500"  
+							  effectStart="effectStart(event)"
+							  effectEnd="effectEnd(event)"
+							  effectUpdate="effectUpdate(event)"
+							  effectStop="effectStop(event)"
+							  effectRepeat="effectRepeat(event)"
+							  />
+					<s:Scale3D target="{target}" duration="500"
+							   effectStart="effectStart(event)"
+							   effectEnd="effectEnd(event)"
+							   effectUpdate="effectUpdate(event)"
+							   effectStop="effectStop(event)"
+							   effectRepeat="effectRepeat(event)"
+							   />					
+				</s:children>
+			</s:Sequence>
+		</s:Transition>
+		<s:Transition id="returnMove" fromState="Two" toState="One" autoReverse="true">
+			<s:Sequence>
+				<s:Move3D target="{target}" duration="1000"  
+						effectStart="effectStart(event)"
+						effectEnd="effectEnd(event)"
+						effectUpdate="effectUpdate(event)"
+						effectStop="effectStop(event)"
+						effectRepeat="effectRepeat(event)"
+						/>
+				<s:Scale3D target="{target}" duration="1000"  
+						  effectStart="effectStart(event)"
+						  effectEnd="effectEnd(event)"
+						  effectUpdate="effectUpdate(event)"
+						  effectStop="effectStop(event)"
+						  effectRepeat="effectRepeat(event)"
+						  />
+			</s:Sequence>
+		</s:Transition>
+	</fx:Declarations>
+	<c:states>
+		<s:State name="One"/>
+		<s:State name="Two"/>		
+	</c:states>
+	<s:Rect id="target" y="50" x="50" z.One="50" z.Two="450" width="50" height="50" depth="50" scaleZ.One="1" scaleZ.Two="8">
+		<s:fill>
+			<s:SolidColor color="#00FF00"/>
+		</s:fill>
+	</s:Rect>
+</c:TransitionTemplate>

Added: incubator/flex/trunk/mustella/tests/mx/states/Transition/SWFs/comps/Move3DTemplate.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/mx/states/Transition/SWFs/comps/Move3DTemplate.mxml?rev=1370370&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/mx/states/Transition/SWFs/comps/Move3DTemplate.mxml (added)
+++ incubator/flex/trunk/mustella/tests/mx/states/Transition/SWFs/comps/Move3DTemplate.mxml Tue Aug  7 17:13:06 2012
@@ -0,0 +1,72 @@
+<?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.
+
+-->
+<c:TransitionTemplate xmlns:fx="http://ns.adobe.com/mxml/2009"
+					   xmlns:s="library://ns.adobe.com/flex/spark"
+					   xmlns:mx="library://ns.adobe.com/flex/mx"
+					   xmlns:c="comps.*"
+					   width="500" height="300" initialize="onInit()">
+	<fx:Script>
+		<![CDATA[
+			import mx.events.FlexEvent;
+			
+			protected function onInit():void
+			{
+				this.valueFunction = getZ;
+				this.initTrans = initMove;
+				this.returnTrans = returnMove;
+			}
+			
+			protected function getZ() : Number {
+				return target.z;
+			}
+			
+		]]>
+	</fx:Script>
+	
+	<fx:Declarations>
+		<s:Transition id="initMove" fromState="One" toState="Two" autoReverse="true">
+			<s:Move3D target="{target}" duration="1000"  
+					effectStart="effectStart(event)"
+					effectEnd="effectEnd(event)"
+					effectUpdate="effectUpdate(event)"
+					effectStop="effectStop(event)"
+					effectRepeat="effectRepeat(event)"
+					/>
+		</s:Transition>
+		<s:Transition id="returnMove" fromState="Two" toState="One" autoReverse="true">
+			<s:Move3D target="{target}" duration="2000"  
+					effectStart="effectStart(event)"
+					effectEnd="effectEnd(event)"
+					effectUpdate="effectUpdate(event)"
+					effectStop="effectStop(event)"
+					effectRepeat="effectRepeat(event)"
+					/>
+		</s:Transition>
+	</fx:Declarations>
+	<c:states>
+		<s:State name="One"/>
+		<s:State name="Two"/>		
+	</c:states>
+	<s:Rect id="target" y="50" x="50" z.One="0" z.Two="400" width="50" height="50" >
+		<s:fill>
+			<s:SolidColor color="#990000"/>
+		</s:fill>
+	</s:Rect>
+</c:TransitionTemplate>

Added: incubator/flex/trunk/mustella/tests/mx/states/Transition/SWFs/comps/MoveComponents.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/mx/states/Transition/SWFs/comps/MoveComponents.mxml?rev=1370370&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/mx/states/Transition/SWFs/comps/MoveComponents.mxml (added)
+++ incubator/flex/trunk/mustella/tests/mx/states/Transition/SWFs/comps/MoveComponents.mxml Tue Aug  7 17:13:06 2012
@@ -0,0 +1,52 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+<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" 
+         xmlns:d="assets.*" width="400" height="300"
+         currentState="State1">
+    <s:states>
+        <s:State name="State1"/>
+        <s:State name="State2"/>
+        <s:State name="State3"/>
+    </s:states>
+    <s:layout>
+        <s:VerticalLayout />
+    </s:layout>
+
+    <s:Panel width="500" height="600">
+        <s:Button id="button1" label="Spark Button"  x.State1="0" y.State1="15" x.State2="11" y.State2="100"
+                   x.State3="150" y.State3="55"/>
+        <d:twist_path id="fxgType"  x.State1="10" y.State1="105" x.State2="61" y.State2="200"
+                      x.State3="70" y.State3="215" width="200" height="75"/>
+        <mx:Button id="mxButton" label="MX Button"  x.State1="200" y.State1="15" x.State2="211" y.State2="100"
+                   x.State3="350" y.State3="255" />
+    </s:Panel>
+
+    <s:transitions>
+        <s:Transition id="mainTransition" fromState="*" toState="*" 
+                      interruptionBehavior="stop">
+            <s:Parallel startDelay="120">
+                <s:Move id="move1" duration="500" target="{button1}"/>
+                <s:Move id="move2" duration="500" target="{fxgType}"/>
+            </s:Parallel>
+        </s:Transition>
+    </s:transitions>
+</s:Group>

Added: incubator/flex/trunk/mustella/tests/mx/states/Transition/SWFs/comps/MoveFadeComponents.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/mx/states/Transition/SWFs/comps/MoveFadeComponents.mxml?rev=1370370&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/mx/states/Transition/SWFs/comps/MoveFadeComponents.mxml (added)
+++ incubator/flex/trunk/mustella/tests/mx/states/Transition/SWFs/comps/MoveFadeComponents.mxml Tue Aug  7 17:13:06 2012
@@ -0,0 +1,49 @@
+<?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" 
+         xmlns:d="assets.*" width="400" height="300"
+         currentState="State1">
+    <s:states>
+        <s:State name="State1"/>
+        <s:State name="State2"/>
+        <s:State name="State3"/>
+    </s:states>
+    <s:layout>
+        <s:VerticalLayout />
+    </s:layout>
+
+    <s:Panel width="500" height="600">
+        <d:twist_path id="fxgType"  x.State1="10" y.State1="105" x.State2="61" y.State2="200"
+                      x.State3="70" y.State3="215" width="200" height="75" alpha.State1="1" 
+                      alpha.State2="0" alpha.State3=".5" />
+    </s:Panel>
+
+    <s:transitions>
+        <s:Transition id="mainTransition" fromState="*" toState="*" 
+                      interruptionBehavior="stop">
+            <s:Parallel startDelay="50">
+                <s:Move duration="1000" target="{fxgType}"/>
+                <s:Fade duration="1000" target="{fxgType}"/>
+            </s:Parallel>
+        </s:Transition>
+    </s:transitions>
+</s:Group>

Added: incubator/flex/trunk/mustella/tests/mx/states/Transition/SWFs/comps/MoveRotateTemplate.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/mx/states/Transition/SWFs/comps/MoveRotateTemplate.mxml?rev=1370370&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/mx/states/Transition/SWFs/comps/MoveRotateTemplate.mxml (added)
+++ incubator/flex/trunk/mustella/tests/mx/states/Transition/SWFs/comps/MoveRotateTemplate.mxml Tue Aug  7 17:13:06 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.
+
+-->
+<c:TransitionTemplate xmlns:fx="http://ns.adobe.com/mxml/2009"
+					   xmlns:s="library://ns.adobe.com/flex/spark"
+					   xmlns:mx="library://ns.adobe.com/flex/mx"
+					   xmlns:c="comps.*"
+					   width="500" height="300" initialize="onInit()">
+	<fx:Script>
+		<![CDATA[
+			import mx.events.FlexEvent;
+			
+			protected function onInit():void
+			{
+				this.valueFunction = getNumber;
+				this.initTrans = initMove;
+				this.returnTrans = returnMove;
+			}
+			
+			protected function getNumber() : Number {
+				//This is a little tricky, but it should provide protection from co-varient cancellation.
+				return target.x * (2 * (Math.sin(target.rotation/2 * Math.PI/180)));
+			}
+			
+		]]>
+	</fx:Script>
+	
+	<fx:Declarations>
+		<s:Transition id="initMove" fromState="One" toState="Two" autoReverse="true">
+			<s:Parallel>
+				<s:Move target="{target}" duration="1000"  
+						effectStart="effectStart(event)"
+						effectEnd="effectEnd(event)"
+						effectUpdate="effectUpdate(event)"
+						effectStop="effectStop(event)"
+						effectRepeat="effectRepeat(event)"
+						/>
+				<s:Rotate target="{target}" duration="1000"
+						  effectStart="effectStart(event)"
+						  effectEnd="effectEnd(event)"
+						  effectUpdate="effectUpdate(event)"
+						  effectStop="effectStop(event)"
+						  effectRepeat="effectRepeat(event)"
+						  />
+			</s:Parallel>
+		</s:Transition>
+		<s:Transition id="returnMove" fromState="Two" toState="One" autoReverse="true">
+			<s:Parallel>
+				<s:Move target="{target}" duration="2000"  
+						effectStart="effectStart(event)"
+						effectEnd="effectEnd(event)"
+						effectUpdate="effectUpdate(event)"
+						effectStop="effectStop(event)"
+						effectRepeat="effectRepeat(event)"
+						/>
+				<s:Rotate target="{target}" duration="2000"  
+						  effectStart="effectStart(event)"
+						  effectEnd="effectEnd(event)"
+						  effectUpdate="effectUpdate(event)"
+						  effectStop="effectStop(event)"
+						  effectRepeat="effectRepeat(event)"
+						  />
+			</s:Parallel>
+		</s:Transition>
+	</fx:Declarations>
+	<c:states>
+		<s:State name="One"/>
+		<s:State name="Two"/>		
+	</c:states>
+	<s:Rect id="target" y="50" x.One="50" x.Two="450" rotation.One="0" rotation.Two="180" width="50" height="50" >
+		<s:fill>
+			<s:SolidColor color="#FF0000"/>
+		</s:fill>
+	</s:Rect>
+</c:TransitionTemplate>

Added: incubator/flex/trunk/mustella/tests/mx/states/Transition/SWFs/comps/MoveTemplate.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/mx/states/Transition/SWFs/comps/MoveTemplate.mxml?rev=1370370&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/mx/states/Transition/SWFs/comps/MoveTemplate.mxml (added)
+++ incubator/flex/trunk/mustella/tests/mx/states/Transition/SWFs/comps/MoveTemplate.mxml Tue Aug  7 17:13:06 2012
@@ -0,0 +1,72 @@
+<?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.
+
+-->
+<c:TransitionTemplate xmlns:fx="http://ns.adobe.com/mxml/2009"
+					   xmlns:s="library://ns.adobe.com/flex/spark"
+					   xmlns:mx="library://ns.adobe.com/flex/mx"
+					   xmlns:c="comps.*"
+					   width="500" height="300" initialize="onInit()">
+	<fx:Script>
+		<![CDATA[
+			import mx.events.FlexEvent;
+			
+			protected function onInit():void
+			{
+				this.valueFunction = getX;
+				this.initTrans = initMove;
+				this.returnTrans = returnMove;
+			}
+			
+			protected function getX() : Number {
+				return target.x;
+			}
+			
+		]]>
+	</fx:Script>
+	
+	<fx:Declarations>
+		<s:Transition id="initMove" fromState="One" toState="Two" autoReverse="true">
+			<s:Move target="{target}" duration="1000"  
+					effectStart="effectStart(event)"
+					effectEnd="effectEnd(event)"
+					effectUpdate="effectUpdate(event)"
+					effectStop="effectStop(event)"
+					effectRepeat="effectRepeat(event)"
+					/>
+		</s:Transition>
+		<s:Transition id="returnMove" fromState="Two" toState="One" autoReverse="true">
+			<s:Move target="{target}" duration="2000"  
+					effectStart="effectStart(event)"
+					effectEnd="effectEnd(event)"
+					effectUpdate="effectUpdate(event)"
+					effectStop="effectStop(event)"
+					effectRepeat="effectRepeat(event)"
+					/>
+		</s:Transition>
+	</fx:Declarations>
+	<c:states>
+		<s:State name="One"/>
+		<s:State name="Two"/>		
+	</c:states>
+	<s:Rect id="target" y="50" x.One="50" x.Two="450" width="50" height="50" >
+		<s:fill>
+			<s:SolidColor color="#FF0000"/>
+		</s:fill>
+	</s:Rect>
+</c:TransitionTemplate>

Added: incubator/flex/trunk/mustella/tests/mx/states/Transition/SWFs/comps/MultiStateTemplate.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/mx/states/Transition/SWFs/comps/MultiStateTemplate.mxml?rev=1370370&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/mx/states/Transition/SWFs/comps/MultiStateTemplate.mxml (added)
+++ incubator/flex/trunk/mustella/tests/mx/states/Transition/SWFs/comps/MultiStateTemplate.mxml Tue Aug  7 17:13:06 2012
@@ -0,0 +1,100 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+<comps:IntegrationTemplate xmlns:fx="http://ns.adobe.com/mxml/2009" 
+						   xmlns:s="library://ns.adobe.com/flex/spark" 
+						   xmlns:mx="library://ns.adobe.com/flex/mx" xmlns:comps="comps.*" width="400" height="300"
+						   initialize="onInit()">
+	<fx:Script>
+		<![CDATA[
+			import mx.events.FlexEvent;
+			
+			import mx.events.EffectEvent;
+			
+			protected function onInit():void
+			{
+				this.valueFunction = getY;
+				this.toValue = 50;
+				this.fromValue = 150;
+			}
+			
+			protected function getY() : Number {
+				return target.y;
+			}
+			
+			public function performTest(event:EffectEvent) : void {
+				this.enableCheck();
+				this.effectStart(event);
+			}
+		]]>
+	</fx:Script>
+	<comps:transitions>
+		<s:Transition id="oneTwo" fromState="One" toState="Two" autoReverse="true">
+			<s:Move target="{target}" duration="1000"  
+					effectStart="effectStart(event)"
+					effectEnd="effectEnd(event)"
+					effectUpdate="effectUpdate(event)"
+					effectStop="effectStop(event)"
+					effectRepeat="effectRepeat(event)"
+					/>
+		</s:Transition>
+		<s:Transition id="twoThree" fromState="Two" toState="Three" autoReverse="true">
+			<s:Move target="{target}" duration="1000"  
+					effectStart="effectStart(event)"
+					effectEnd="effectEnd(event)"
+					effectUpdate="effectUpdate(event)"
+					effectStop="effectStop(event)"
+					effectRepeat="effectRepeat(event)"
+					/>
+		</s:Transition>
+		<s:Transition id="threeFour" fromState="Three" toState="Four" autoReverse="true">
+			<s:Move target="{target}" duration="1000"  
+					effectStart="effectStart(event)"
+					effectEnd="effectEnd(event)"
+					effectUpdate="effectUpdate(event)"
+					effectStop="effectStop(event)"
+					effectRepeat="effectRepeat(event)"
+					/>
+		</s:Transition>
+		<s:Transition id="oneFour" fromState="One" toState="Four" autoReverse="true">
+			<s:Move target="{target}" duration="1000"  
+					effectStart="performTest(event)"
+					effectEnd="effectEnd(event)"
+					effectUpdate="effectUpdate(event)"
+					effectStop="effectStop(event)"
+					effectRepeat="effectRepeat(event)"
+					/>
+		</s:Transition>
+	</comps:transitions>
+	<comps:states>
+		<s:State name="One"/>
+		<s:State name="Two"/>
+		<s:State name="Three"/>
+		<s:State name="Four"/>
+	</comps:states>
+	<s:Rect id="target" width="50" height="50"
+			y.One="50" x.One="50" 
+			y.Two="50" x.Two="150"
+			y.Three="150" x.Three="150"
+			y.Four="150" x.Four="50">
+		<s:fill>
+			<s:SolidColor color="#FF0000"/>
+		</s:fill>
+	</s:Rect>
+</comps:IntegrationTemplate>

Added: incubator/flex/trunk/mustella/tests/mx/states/Transition/SWFs/comps/RepeatCountTemplate.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/mx/states/Transition/SWFs/comps/RepeatCountTemplate.mxml?rev=1370370&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/mx/states/Transition/SWFs/comps/RepeatCountTemplate.mxml (added)
+++ incubator/flex/trunk/mustella/tests/mx/states/Transition/SWFs/comps/RepeatCountTemplate.mxml Tue Aug  7 17:13:06 2012
@@ -0,0 +1,72 @@
+<?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.
+
+-->
+<c:TransitionTemplate xmlns:fx="http://ns.adobe.com/mxml/2009"
+					   xmlns:s="library://ns.adobe.com/flex/spark"
+					   xmlns:mx="library://ns.adobe.com/flex/mx"
+					   xmlns:c="comps.*"
+					   width="500" height="300" initialize="onInit()">
+	<fx:Script>
+		<![CDATA[
+			import mx.events.FlexEvent;
+			
+			protected function onInit():void
+			{
+				this.valueFunction = getAlpha;
+				this.initTrans = initMove;
+				this.returnTrans = returnMove;
+				this.initTransTime = 500;
+			}
+			
+			protected function getAlpha() : Number {
+				return target.alpha;
+			}
+		]]>
+	</fx:Script>
+	
+	<fx:Declarations>
+		<s:Transition id="initMove" fromState="One" toState="Two" autoReverse="true">
+			<s:Fade target="{target}" duration="500" repeatCount="2"
+					effectStart="effectStart(event)"
+					effectEnd="effectEnd(event)"
+					effectUpdate="effectUpdate(event)"
+					effectStop="effectStop(event)"
+					effectRepeat="effectRepeat(event)"
+					/>
+		</s:Transition>
+		<s:Transition id="returnMove" fromState="Two" toState="One" autoReverse="true">
+			<s:Fade target="{target}" duration="2000"  
+					effectStart="effectStart(event)"
+					effectEnd="effectEnd(event)"
+					effectUpdate="effectUpdate(event)"
+					effectStop="effectStop(event)"
+					effectRepeat="effectRepeat(event)"
+					/>
+		</s:Transition>
+	</fx:Declarations>
+	<c:states>
+		<s:State name="One"/>
+		<s:State name="Two"/>		
+	</c:states>
+	<s:Rect id="target" y="50" x="50" width="50" height="50" alpha.One="1" alpha.Two=".1">
+		<s:fill>
+			<s:SolidColor color="#000000"/>
+		</s:fill>
+	</s:Rect>
+</c:TransitionTemplate>

Added: incubator/flex/trunk/mustella/tests/mx/states/Transition/SWFs/comps/ResizeAnimateColorTemplate.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/mx/states/Transition/SWFs/comps/ResizeAnimateColorTemplate.mxml?rev=1370370&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/mx/states/Transition/SWFs/comps/ResizeAnimateColorTemplate.mxml (added)
+++ incubator/flex/trunk/mustella/tests/mx/states/Transition/SWFs/comps/ResizeAnimateColorTemplate.mxml Tue Aug  7 17:13:06 2012
@@ -0,0 +1,90 @@
+<?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.
+
+-->
+<c:TransitionTemplate xmlns:fx="http://ns.adobe.com/mxml/2009"
+					   xmlns:s="library://ns.adobe.com/flex/spark"
+					   xmlns:mx="library://ns.adobe.com/flex/mx"
+					   xmlns:c="comps.*"
+					   width="500" height="300" initialize="onInit()">
+	<fx:Script>
+		<![CDATA[
+			import mx.events.FlexEvent;
+			
+			protected function onInit():void
+			{
+				this.valueFunction = getNumber;
+				this.initTrans = initMove;
+				this.returnTrans = returnMove;
+			}
+			
+			protected function getNumber() : Number {
+				return target.width * target2.color;
+			}
+			
+		]]>
+	</fx:Script>
+	
+	<fx:Declarations>
+		<s:Transition id="initMove" fromState="One" toState="Two" autoReverse="true">
+			<s:Parallel>
+				<s:Resize target="{target}" duration="1000"  
+						effectStart="effectStart(event)"
+						effectEnd="effectEnd(event)"
+						effectUpdate="effectUpdate(event)"
+						effectStop="effectStop(event)"
+						effectRepeat="effectRepeat(event)"
+						/>
+				<s:AnimateColor target="{target2}" duration="1000"
+						  effectStart="effectStart(event)"
+						  effectEnd="effectEnd(event)"
+						  effectUpdate="effectUpdate(event)"
+						  effectStop="effectStop(event)"
+						  effectRepeat="effectRepeat(event)"
+						  />
+			</s:Parallel>
+		</s:Transition>
+		<s:Transition id="returnMove" fromState="Two" toState="One" autoReverse="true">
+			<s:Parallel>
+				<s:Resize target="{target}" duration="2000"  
+						effectStart="effectStart(event)"
+						effectEnd="effectEnd(event)"
+						effectUpdate="effectUpdate(event)"
+						effectStop="effectStop(event)"
+						effectRepeat="effectRepeat(event)"
+						/>
+				<s:AnimateColor target="{target2}" duration="2000"  
+						  effectStart="effectStart(event)"
+						  effectEnd="effectEnd(event)"
+						  effectUpdate="effectUpdate(event)"
+						  effectStop="effectStop(event)"
+						  effectRepeat="effectRepeat(event)"
+						  />
+			</s:Parallel>
+		</s:Transition>
+	</fx:Declarations>
+	<c:states>
+		<s:State name="One"/>
+		<s:State name="Two"/>		
+	</c:states>
+	<s:Rect id="target" y="50" x="50" width.One="50" width.Two="450" height="50" >
+		<s:fill>
+			<s:SolidColor id="target2" color.One="#000000" color.Two="#888888"/>
+		</s:fill>
+	</s:Rect>
+</c:TransitionTemplate>

Added: incubator/flex/trunk/mustella/tests/mx/states/Transition/SWFs/comps/ResizeAnimateComponents.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/mx/states/Transition/SWFs/comps/ResizeAnimateComponents.mxml?rev=1370370&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/mx/states/Transition/SWFs/comps/ResizeAnimateComponents.mxml (added)
+++ incubator/flex/trunk/mustella/tests/mx/states/Transition/SWFs/comps/ResizeAnimateComponents.mxml Tue Aug  7 17:13:06 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: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" 
+         xmlns:d="assets.*" width="400" height="300"
+         currentState="State1">
+    <s:states>
+        <s:State name="State1"/>
+        <s:State name="State2"/>
+        <s:State name="State3"/>
+    </s:states>
+    <s:layout>
+        <s:VerticalLayout />
+    </s:layout>
+
+    <s:Panel width="500" height="600">
+        <s:Rect id="rect1" width.State1="250" height.State1="250"
+                width.State2="50" height.State2="150" width.State3="100" height.State3="300">
+            <s:fill>
+                <s:SolidColor id="sc" color.State1="0x000000" color.State2="0xFF0000" color.State3="0x00FF00"/>
+            </s:fill>
+        </s:Rect>       
+        <s:Rect id="rect2" width.State1="250" height.State1="250" x="350"
+            width.State2="50" height.State2="150" width.State3="100" height.State3="300">
+                <s:fill>
+                    <s:SolidColor id="sc2" color.State1="0x00FF00" color.State2="0x000000" color.State3="0x00FF00"/>
+                </s:fill>   
+        </s:Rect>
+    </s:Panel>
+    
+    <s:transitions>
+        <s:Transition id="mainTransition" fromState="*" toState="*" >
+            <s:Sequence startDelay="130">
+                <s:Resize duration="600" targets="{[rect1, rect2]}"/>
+                <s:AnimateColor duration="300" target="{sc}"/>
+            </s:Sequence>
+        </s:Transition>
+    </s:transitions>
+</s:Group>
\ No newline at end of file

Added: incubator/flex/trunk/mustella/tests/mx/states/Transition/SWFs/comps/ResizeComponents.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/mx/states/Transition/SWFs/comps/ResizeComponents.mxml?rev=1370370&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/mx/states/Transition/SWFs/comps/ResizeComponents.mxml (added)
+++ incubator/flex/trunk/mustella/tests/mx/states/Transition/SWFs/comps/ResizeComponents.mxml Tue Aug  7 17:13:06 2012
@@ -0,0 +1,49 @@
+<?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" 
+         xmlns:d="assets.*" width="400" height="300"
+         currentState="State1">
+    <s:states>
+        <s:State name="State1"/>
+        <s:State name="State2"/>
+        <s:State name="State3"/>
+    </s:states>
+    <s:layout>
+        <s:VerticalLayout />
+    </s:layout>
+
+    <s:Panel width="500" height="600">
+        <s:Button id="button1" label="Spark Button"  x="11" y="15" width.State2="311" height.State2="100"
+                width.State1="75" height.State1="45"   width.State3="150" height.State3="35"/>
+        <d:twist_path id="fxgType"  x="60" y="105" width.State1="200" height.State1="75" 
+                width.State2="360" height.State2="200" height.State3="340" width.State3="45"/>
+    </s:Panel>
+    
+    <s:transitions>
+        <s:Transition id="mainTransition" fromState="*" toState="*" >
+            <s:Parallel startDelay="120">
+                <s:Resize duration="500" target="{button1}"/>
+                <s:Resize duration="500" target="{fxgType}"/>
+            </s:Parallel>
+        </s:Transition>
+    </s:transitions>
+</s:Group>
\ No newline at end of file

Added: incubator/flex/trunk/mustella/tests/mx/states/Transition/SWFs/comps/ResizeTemplate.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/mx/states/Transition/SWFs/comps/ResizeTemplate.mxml?rev=1370370&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/mx/states/Transition/SWFs/comps/ResizeTemplate.mxml (added)
+++ incubator/flex/trunk/mustella/tests/mx/states/Transition/SWFs/comps/ResizeTemplate.mxml Tue Aug  7 17:13:06 2012
@@ -0,0 +1,72 @@
+<?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.
+
+-->
+<c:TransitionTemplate xmlns:fx="http://ns.adobe.com/mxml/2009"
+					   xmlns:s="library://ns.adobe.com/flex/spark"
+					   xmlns:mx="library://ns.adobe.com/flex/mx"
+					   xmlns:c="comps.*"
+					   width="500" height="300" initialize="onInit()">
+	<fx:Script>
+		<![CDATA[
+			import mx.events.FlexEvent;
+			
+			protected function onInit():void
+			{
+				this.valueFunction = getWidth;
+				this.initTrans = initMove;
+				this.returnTrans = returnMove;
+			}
+			
+			protected function getWidth() : Number {
+				return target.width;
+			}
+			
+		]]>
+	</fx:Script>
+	
+	<fx:Declarations>
+		<s:Transition id="initMove" fromState="One" toState="Two" autoReverse="true">
+			<s:Resize target="{target}" duration="1000"  
+					effectStart="effectStart(event)"
+					effectEnd="effectEnd(event)"
+					effectUpdate="effectUpdate(event)"
+					effectStop="effectStop(event)"
+					effectRepeat="effectRepeat(event)"
+					/>
+		</s:Transition>
+		<s:Transition id="returnMove" fromState="Two" toState="One" autoReverse="true">
+			<s:Resize target="{target}" duration="2000"  
+					effectStart="effectStart(event)"
+					effectEnd="effectEnd(event)"
+					effectUpdate="effectUpdate(event)"
+					effectStop="effectStop(event)"
+					effectRepeat="effectRepeat(event)"
+					/>
+		</s:Transition>
+	</fx:Declarations>
+	<c:states>
+		<s:State name="One"/>
+		<s:State name="Two"/>		
+	</c:states>
+	<s:Rect id="target" y="50" x="50" width.One="50" width.Two="450" depth="50" height="50">
+		<s:fill>
+			<s:SolidColor color="#FFFF00"/>
+		</s:fill>
+	</s:Rect>
+</c:TransitionTemplate>

Added: incubator/flex/trunk/mustella/tests/mx/states/Transition/SWFs/comps/ResizeToFadeComponents.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/mx/states/Transition/SWFs/comps/ResizeToFadeComponents.mxml?rev=1370370&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/mx/states/Transition/SWFs/comps/ResizeToFadeComponents.mxml (added)
+++ incubator/flex/trunk/mustella/tests/mx/states/Transition/SWFs/comps/ResizeToFadeComponents.mxml Tue Aug  7 17:13:06 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: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" 
+         xmlns:d="assets.*" width="400" height="300"
+         currentState="State1">
+    <s:states>
+        <s:State name="State1"/>
+        <s:State name="State2"/>
+        <s:State name="State3"/>
+    </s:states>
+    <s:layout>
+        <s:VerticalLayout />
+    </s:layout>
+
+ <s:Group id="group1" clipAndEnableScrolling="true" >
+        <s:Rect id="rect1" width="250" height="250" x="50" y="50" x.State2="110" y.State2="450" x.State3="200" y.State3="400"
+                alpha.State2=".5" alpha.State3=".2" >
+            <s:fill>
+                <s:SolidColor id="sc" color="0x00FF00"/>
+            </s:fill>
+        </s:Rect>       
+        
+    </s:Group>
+    
+    
+    
+    <s:transitions>
+        <s:Transition id="mainTransition" fromState="*" toState="State2" interruptionBehavior="stop">
+            <s:Sequence startDelay="50">
+                <s:Move id="moveEffect" duration="1300" targets="{[rect1]}" />
+            </s:Sequence>
+        </s:Transition>   
+        <s:Transition id="transition2" fromState="*" toState="State3" interruptionBehavior="stop">
+            <s:Fade duration="1500" target="{rect1}"/>
+        </s:Transition>
+    </s:transitions>
+    
+</s:Group>

Added: incubator/flex/trunk/mustella/tests/mx/states/Transition/SWFs/comps/ResizeToMoveComponents.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/mx/states/Transition/SWFs/comps/ResizeToMoveComponents.mxml?rev=1370370&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/mx/states/Transition/SWFs/comps/ResizeToMoveComponents.mxml (added)
+++ incubator/flex/trunk/mustella/tests/mx/states/Transition/SWFs/comps/ResizeToMoveComponents.mxml Tue Aug  7 17:13:06 2012
@@ -0,0 +1,56 @@
+<?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" 
+         xmlns:d="assets.*" width="400" height="300"
+         currentState="State1">
+    <s:states>
+        <s:State name="State1"/>
+        <s:State name="State2"/>
+        <s:State name="State3"/>
+    </s:states>
+    <s:layout>
+        <s:VerticalLayout />
+    </s:layout>
+
+    <s:Group id="group1" clipAndEnableScrolling="true" width.State1="900" height.State1="700" >
+        <s:Rect id="rect1" width="250" height="250" x="50" y="50" x.State3="200" y.State3="400"
+                width.State2="100" height.State2="50" width.State3="190" height.State3="330" >
+            <s:fill>
+                <s:SolidColor id="sc" color="0x00FF00"/>
+            </s:fill>
+        </s:Rect>       
+        
+    </s:Group>
+    
+    
+    
+    <s:transitions>
+        <s:Transition id="mainTransition" fromState="*" toState="State2" interruptionBehavior="end">
+            <s:Sequence startDelay="50">
+                <s:Resize id="resizeEffect" duration="1300" targets="{[rect1]}" />
+            </s:Sequence>
+        </s:Transition>   
+        <s:Transition id="transition2" fromState="*" toState="State3" interruptionBehavior="end">
+            <s:Move startDelay="150" duration="1500" target="{rect1}"/>
+        </s:Transition>
+    </s:transitions>
+</s:Group>

Added: incubator/flex/trunk/mustella/tests/mx/states/Transition/SWFs/comps/Rotate3DComponents.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/mx/states/Transition/SWFs/comps/Rotate3DComponents.mxml?rev=1370370&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/mx/states/Transition/SWFs/comps/Rotate3DComponents.mxml (added)
+++ incubator/flex/trunk/mustella/tests/mx/states/Transition/SWFs/comps/Rotate3DComponents.mxml Tue Aug  7 17:13:06 2012
@@ -0,0 +1,53 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+<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" 
+         xmlns:d="assets.*" width="400" height="300"
+         currentState="State1">
+    <s:states>
+        <s:State name="State1"/>
+        <s:State name="State2"/>
+        <s:State name="State3"/>
+    </s:states>
+    <s:layout>
+        <s:VerticalLayout />
+    </s:layout>
+
+    <s:Panel width="500" height="600">
+        <s:Button id="button1" label="Spark Button"  x="211" y="215" rotationX.State1="45" rotationX.State2="90"
+                  rotationX.State3="180" rotationY.State1="45" rotationY.State2="90"
+                  rotationY.State3="180" rotationZ.State1="45" rotationZ.State2="90"
+                  rotationZ.State3="180"/>
+        <d:twist_path id="fxgType"  x="360" y="105" rotationX.State1="45" rotationX.State2="90"
+                      rotationX.State3="180" rotationY.State1="45" rotationY.State2="90"
+                      rotationY.State3="180" rotationZ.State1="45" rotationZ.State2="90"
+                      rotationZ.State3="180" width="200" height="75"/>
+    </s:Panel>
+    
+    <s:transitions>
+        <s:Transition id="mainTransition" fromState="*" toState="*">
+            <s:Parallel startDelay="150">
+                <s:Rotate duration="500" target="{button1}"/>
+                <s:Rotate duration="500" target="{fxgType}"/>
+            </s:Parallel>
+        </s:Transition>
+    </s:transitions>
+</s:Group>



Mime
View raw message