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
This commit is contained in:
Ray Greenwell
2008-06-11 22:15:58 +00:00
parent 49777fab3f
commit cafdd35170
8 changed files with 8 additions and 0 deletions
@@ -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
{
/**
@@ -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)
@@ -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
{
/**
@@ -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)
@@ -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
@@ -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,
@@ -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)
+1
View File
@@ -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
{
/**