Guida di riferimento di ActionScript® 3.0 per la piattaforma Adobe® Flash®
Home  |  Nascondi elenco pacchetti e classi |  Pacchetti  |  Classi  |  Novità  |  Indice  |  Appendici  |  Perché in inglese?
Filtri: Recupero dati dal server...
Recupero dati dal server...
spark.effects.interpolation 

MultiValueInterpolator  - AS3 Flex

Pacchettospark.effects.interpolation
Classepublic class MultiValueInterpolator
EreditarietàMultiValueInterpolator Inheritance Object
Implementa IInterpolator

Versione linguaggio: ActionScript 3.0
Versione prodotto: Flex 4
Versioni runtime: Flash Player 10, AIR 1.5

The MultiValueInterpolator class interpolates each element of Arrays or Vectors of start and end elements separately, using another interpolator to do the interpolation for each element. By default, the interpolation for each element uses the NumberInterpolator class, but you can construct a MultiValueInterpolator instance with a different interpolator.



Proprietà pubbliche
 ProprietàDefinito da
 Inheritedconstructor : Object
Un riferimento all'oggetto classe o alla funzione di costruzione per una determinata istanza di oggetto.
Object
  elementInterpolator : IInterpolator
The interpolator for each element of the input Array or Vector.
MultiValueInterpolator
Metodi pubblici
 MetodoDefinito da
  
MultiValueInterpolator(elementInterpolator:IInterpolator = null)
Constructor.
MultiValueInterpolator
  
decrement(baseValue:Object, decrementValue:Object):Object
Given a base value and a value to subtract from it, return the result of that decrement operation.
MultiValueInterpolator
 Inherited
Indica se per un oggetto è definita una proprietà specifica.
Object
  
increment(baseValue:Object, incrementValue:Object):Object
Given a base value and a value to add to it, return the result of that operation.
MultiValueInterpolator
  
interpolate(fraction:Number, startValue:Object, endValue:Object):Object
Given an elapsed fraction of an animation, between 0.0 and 1.0, and start and end values to interpolate, return the interpolated value.
MultiValueInterpolator
 Inherited
Indica se un'istanza della classe Object si trova nella catena di prototipi dell'oggetto specificato come parametro.
Object
 Inherited
Indica se la proprietà specificata esiste ed è enumerabile.
Object
 Inherited
Imposta la disponibilità di una proprietà dinamica per le operazioni cicliche.
Object
 Inherited
Restituisce la rappresentazione in formato stringa di questo oggetto, formattato in base alle convenzioni specifiche per le versioni localizzate.
Object
 Inherited
Restituisce la rappresentazione in formato stringa dell'oggetto specificato.
Object
 Inherited
Restituisce il valore di base dell'oggetto specificato.
Object
Descrizione delle proprietà

elementInterpolator

proprietà
elementInterpolator:IInterpolator

Versione linguaggio: ActionScript 3.0
Versione prodotto: Flex 4
Versioni runtime: Flash Player 10, AIR 1.5

The interpolator for each element of the input Array or Vector. A value of null specifies to use the NumberInterpolator class.

Il valore predefinito è NumberInterpolator.



Implementazione
    public function get elementInterpolator():IInterpolator
    public function set elementInterpolator(value:IInterpolator):void
Descrizione della funzione di costruzione

MultiValueInterpolator

()Funzione di costruzione
public function MultiValueInterpolator(elementInterpolator:IInterpolator = null)

Versione linguaggio: ActionScript 3.0
Versione prodotto: Flex 4
Versioni runtime: Flash Player 10, AIR 1.5

Constructor.

Parametri
elementInterpolator:IInterpolator (default = null) — The interpolator for each element of the Array. If no interpolator is specified, use the NumberInterpolator class.
Descrizione dei metodi

decrement

()metodo
public function decrement(baseValue:Object, decrementValue:Object):Object

Versione linguaggio: ActionScript 3.0
Versione prodotto: Flex 4
Versioni runtime: 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.

Parametri

baseValue:Object — The start value of the interpolation.
 
decrementValue:Object — The change to apply to the baseValue.

Restituisce
Object — The interpolated value.

increment

()metodo 
public function increment(baseValue:Object, incrementValue:Object):Object

Versione linguaggio: ActionScript 3.0
Versione prodotto: Flex 4
Versioni runtime: 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.

Parametri

baseValue:Object — The start value of the interpolation.
 
incrementValue:Object — The change to apply to the baseValue.

Restituisce
Object — The interpolated value.

interpolate

()metodo 
public function interpolate(fraction:Number, startValue:Object, endValue:Object):Object

Versione linguaggio: ActionScript 3.0
Versione prodotto: Flex 4
Versioni runtime: Flash Player 10, AIR 1.5

Given an elapsed fraction of an animation, between 0.0 and 1.0, and start and end values to interpolate, return the interpolated value. Interpolation for MultiValueInterpolator consists of running a separate interpolation on each element of the startValue and endValue arrays or vectors, returning a new Array or Vector that holds those interpolated values. The returned object will be an Array if startValue and endValue are of type Array, otherwise the returned object will be of type Vector.

Parametri

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.

Restituisce
Object — The interpolated value.




[ X ]Perché in inglese?
Il contenuto della Guida di riferimento di ActionScript 3.0 appare in inglese

Non tutte le parti della Guida di riferimento di ActionScript 3.0 sono tradotte in tutte le lingue. Quando un elemento del linguaggio non è tradotto, viene riportato in inglese. Ad esempio, la classe ga.controls.HelpBox non è tradotta in nessuna lingua. Pertanto, nella versione italiana della guida di riferimento, la descrizione della classe ga.controls.HelpBox è riportata in inglese.