Paket | spark.effects.interpolation |
Klass | public class NumberInterpolator |
Arv | NumberInterpolator Object |
Implementerar | IInterpolator |
Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 4 |
Körningsmiljöversioner: | Flash Player 10, AIR 1.5 |
Metod | Definieras med | ||
---|---|---|---|
Constructor. | NumberInterpolator | ||
Given a base value and a value to subtract from it,
return the result of that decrement operation. | NumberInterpolator | ||
[statisk]
Returns the singleton of this class. | NumberInterpolator | ||
Anger om det finns en egenskap angiven för ett objekt. | Object | ||
Given a base value and a value to add to it,
return the result of that operation. | NumberInterpolator | ||
Interpolation for NumberInterpolator consists of a simple
parametric calculation between startValue and
endValue, using fraction as the
fraction of the elapsed time from start to end:
return startValue + fraction (endValue - startValue);
| NumberInterpolator | ||
Anger om en instans av klassen Object finns i prototypkedjan för objektet som anges som parameter. | Object | ||
Anger om den angivna egenskapen finns och är uppräkningsbar. | Object | ||
Anger tillgänglighet för en dynamisk egenskap för slingåtgärder. | Object | ||
Returnerar det här objektets strängrepresentation, formaterad i enlighet med språkspecifika konventioner. | Object | ||
Returnerar det angivna objektets strängbeteckning. | Object | ||
Returnerar det angivna objektets primitiva värde. | Object |
NumberInterpolator | () | Konstruktor |
public function NumberInterpolator()
Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 4 |
Körningsmiljöversioner: | Flash Player 10, AIR 1.5 |
Constructor.
decrement | () | metod |
public function decrement(baseValue:Object, decrementValue:Object):Object
Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 4 |
Körningsmiljöversioner: | Flash Player 10, AIR 1.5 |
Given a base value and a value to subtract from it,
return the result of that decrement operation. For example,
if the objects are simple Numbers, the result would be
Number(baseValue) - Number(incrementValue)
.
This function is called by the animation system when it
needs to dynamically calculate a value given some ending
value and a 'by' value that should be subtracted from it. Both of
the arguments are of type Object and cannot simply be added together.
Parametrar
baseValue:Object — The start value of the interpolation.
| |
decrementValue:Object — The change to apply to the baseValue .
|
Object — The interpolated value.
|
getInstance | () | metod |
public static function getInstance():NumberInterpolator
Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 4 |
Körningsmiljöversioner: | Flash Player 10, AIR 1.5 |
Returns the singleton of this class. Since all NumberInterpolators have the same behavior, there is no need for more than one instance.
ReturnerarNumberInterpolator — The singleton of this class.
|
increment | () | metod |
public function increment(baseValue:Object, incrementValue:Object):Object
Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 4 |
Körningsmiljöversioner: | Flash Player 10, AIR 1.5 |
Given a base value and a value to add to it,
return the result of that operation.
For example, if the objects are simple Numbers, the result is a
Number(baseValue) + Number(incrementValue)
.
This method is called by the animation system when it
needs to dynamically calculate a value given some starting
value and a 'by' value that should be added to it. Both of
the arguments are of type Object and cannot simply be added together.
Parametrar
baseValue:Object — The start value of the interpolation.
| |
incrementValue:Object — The change to apply to the baseValue .
|
Object — The interpolated value.
|
interpolate | () | metod |
public function interpolate(fraction:Number, startValue:Object, endValue:Object):Object
Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 4 |
Körningsmiljöversioner: | Flash Player 10, AIR 1.5 |
Interpolation for NumberInterpolator consists of a simple
parametric calculation between startValue
and
endValue
, using fraction
as the
fraction of the elapsed time from start to end:
return startValue + fraction (endValue - startValue);
Parametrar
fraction:Number — The fraction elapsed of the
animation, between 0.0 and 1.0.
| |
startValue:Object — The start value of the interpolation.
| |
endValue:Object — The end value of the interpolation.
|
Object — The interpolated value.
|
Tue Jun 12 2018, 01:40 PM Z