flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aha...@apache.org
Subject [03/14] git commit: [flex-asjs] [refs/heads/develop] - fix wipe effect
Date Fri, 31 Oct 2014 22:08:38 GMT
fix wipe effect


Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/24faad97
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/24faad97
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/24faad97

Branch: refs/heads/develop
Commit: 24faad97c80881965c913ca50c65d82e783be9c5
Parents: 3d3dfe2
Author: Alex Harui <aharui@apache.org>
Authored: Fri Oct 31 14:21:44 2014 -0700
Committer: Alex Harui <aharui@apache.org>
Committed: Fri Oct 31 15:08:14 2014 -0700

----------------------------------------------------------------------
 .../as/projects/FlexJSJX/src/org/apache/flex/effects/Wipe.as | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/24faad97/frameworks/as/projects/FlexJSJX/src/org/apache/flex/effects/Wipe.as
----------------------------------------------------------------------
diff --git a/frameworks/as/projects/FlexJSJX/src/org/apache/flex/effects/Wipe.as b/frameworks/as/projects/FlexJSJX/src/org/apache/flex/effects/Wipe.as
index 5b56883..f4f2bfe 100644
--- a/frameworks/as/projects/FlexJSJX/src/org/apache/flex/effects/Wipe.as
+++ b/frameworks/as/projects/FlexJSJX/src/org/apache/flex/effects/Wipe.as
@@ -92,7 +92,7 @@ public class Wipe extends Tween implements IDocument
      */
     public var direction:String;
     	
-    private var wiper:PlatformWiper;	
+    private var wiper:PlatformWiper = new PlatformWiper();	
     
     //--------------------------------------------------------------------------
     //
@@ -131,6 +131,8 @@ public class Wipe extends Tween implements IDocument
         {
             startValue = 0;
             endValue = actualTarget.height;
+            // WipeDown makes something appear
+            actualTarget.visible = true;
             wiper.visibleRect = new Rectangle(0, 0, actualTarget.width, 0);
         }
         
@@ -139,11 +141,15 @@ public class Wipe extends Tween implements IDocument
 
 	public function onTweenUpdate(value:Number):void
 	{
+        trace(actualTarget, value);
 		wiper.visibleRect = new Rectangle(0, 0, actualTarget.width, value);
 	}
 	
 	public function onTweenEnd(value:Number):void
 	{
+        // WipeUp makes something disappear
+        if (direction == "up")
+            actualTarget.visible = false;
         wiper.target = null;
 	}
 }


Mime
View raw message