From cafdd35170b557ddd621e94a70034b4c436b94e4 Mon Sep 17 00:00:00 2001 From: Ray Greenwell Date: Wed, 11 Jun 2008 22:15:58 +0000 Subject: [PATCH] Deprecate everything in this package. Use tweener. It's better. Unfortunately, the flex compiler is a bit thick and issues a deprecation warning when compiling a class that is itself deprecated, so this adds warning spew to nenya compilations. I'll probably blow all this away soon (except maybe HermiteFunc, which could be adapted into a standard easing function for use with Tweener and flex easing effects- the other functions are already well represented.). git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@539 ed5b42cb-e716-0410-a449-f6a68f950b19 --- src/as/com/threerings/flash/path/CompositePath.as | 1 + src/as/com/threerings/flash/path/DelayPath.as | 1 + src/as/com/threerings/flash/path/EasingPath.as | 1 + src/as/com/threerings/flash/path/HermiteFunc.as | 1 + src/as/com/threerings/flash/path/InterpFunc.as | 1 + src/as/com/threerings/flash/path/LinePath.as | 1 + src/as/com/threerings/flash/path/LinearFunc.as | 1 + src/as/com/threerings/flash/path/Path.as | 1 + 8 files changed, 8 insertions(+) diff --git a/src/as/com/threerings/flash/path/CompositePath.as b/src/as/com/threerings/flash/path/CompositePath.as index 31c6c384..8b3cc401 100644 --- a/src/as/com/threerings/flash/path/CompositePath.as +++ b/src/as/com/threerings/flash/path/CompositePath.as @@ -28,6 +28,7 @@ import com.threerings.util.Util; /** * Executes a series of paths in order. */ +[Deprecated(replacement="caurina.transitions.Tweener")] public class CompositePath extends Path { /** diff --git a/src/as/com/threerings/flash/path/DelayPath.as b/src/as/com/threerings/flash/path/DelayPath.as index 9a77ac1a..91137810 100644 --- a/src/as/com/threerings/flash/path/DelayPath.as +++ b/src/as/com/threerings/flash/path/DelayPath.as @@ -25,6 +25,7 @@ package com.threerings.flash.path { * Doesn't actually move anything, but simply delays in the current position for some period of * time. This is generally used with a {@link CompositePath}. */ +[Deprecated(replacement="caurina.transitions.Tweener")] public class DelayPath extends Path { public function DelayPath (delay :int) diff --git a/src/as/com/threerings/flash/path/EasingPath.as b/src/as/com/threerings/flash/path/EasingPath.as index 98d93dd7..c19fb4e7 100644 --- a/src/as/com/threerings/flash/path/EasingPath.as +++ b/src/as/com/threerings/flash/path/EasingPath.as @@ -8,6 +8,7 @@ import flash.display.DisplayObject; /** * Adapts mx.effects.easing or Tweener functions for use as a Path. */ +[Deprecated(replacement="caurina.transitions.Tweener")] public class EasingPath extends Path { /** diff --git a/src/as/com/threerings/flash/path/HermiteFunc.as b/src/as/com/threerings/flash/path/HermiteFunc.as index fc3fab02..6a178edd 100644 --- a/src/as/com/threerings/flash/path/HermiteFunc.as +++ b/src/as/com/threerings/flash/path/HermiteFunc.as @@ -25,6 +25,7 @@ package com.threerings.flash.path { * Interpolates cubically between two values, with beginning and end derivates set * to zero. See http://en.wikipedia.org/wiki/Cubic_Hermite_spline for details. */ +[Deprecated(replacement="caurina.transitions.Tweener")] public class HermiteFunc extends InterpFunc { public function HermiteFunc (start :int, end :int, startSlope :Number = 0, endSlope :Number = 0) diff --git a/src/as/com/threerings/flash/path/InterpFunc.as b/src/as/com/threerings/flash/path/InterpFunc.as index f5ad4032..7b3d903f 100644 --- a/src/as/com/threerings/flash/path/InterpFunc.as +++ b/src/as/com/threerings/flash/path/InterpFunc.as @@ -24,6 +24,7 @@ package com.threerings.flash.path { /** * Used by paths to interpolate between two values. */ +[Deprecated(replacement="caurina.transitions.Tweener")] public /*abstract*/ class InterpFunc { public /*abstract*/ function getValue (complete :Number) :Number diff --git a/src/as/com/threerings/flash/path/LinePath.as b/src/as/com/threerings/flash/path/LinePath.as index f3ebe7b6..841f208b 100644 --- a/src/as/com/threerings/flash/path/LinePath.as +++ b/src/as/com/threerings/flash/path/LinePath.as @@ -8,6 +8,7 @@ import flash.display.DisplayObject; /** * Moves a display object along a line path in a specified amount of time. */ +[Deprecated(replacement="caurina.transitions.Tweener")] public class LinePath extends Path { public function LinePath (target :DisplayObject, xfunc :InterpFunc, yfunc :InterpFunc, diff --git a/src/as/com/threerings/flash/path/LinearFunc.as b/src/as/com/threerings/flash/path/LinearFunc.as index a57eb310..07fee5d5 100644 --- a/src/as/com/threerings/flash/path/LinearFunc.as +++ b/src/as/com/threerings/flash/path/LinearFunc.as @@ -24,6 +24,7 @@ package com.threerings.flash.path { /** * Interpolates linearly between two values. */ +[Deprecated(replacement="caurina.transitions.Tweener")] public class LinearFunc extends InterpFunc { public function LinearFunc (start :int, end :int) diff --git a/src/as/com/threerings/flash/path/Path.as b/src/as/com/threerings/flash/path/Path.as index 3674458a..c39a1013 100644 --- a/src/as/com/threerings/flash/path/Path.as +++ b/src/as/com/threerings/flash/path/Path.as @@ -10,6 +10,7 @@ import flash.utils.getTimer; /** * Moves a display object along a particular path in a specified amount of time. */ +[Deprecated(replacement="caurina.transitions.Tweener")] public /*abstract*/ class Path { /**