Referência do ActionScript® 3.0 para Adobe® Flash® Platform
Início  |  Ocultar listas de Pacotes e Classes |  Pacotes  |  Classes  |  Novidades  |  Índice  |  Apêndices  |  Por que inglês?
Filtros: Recuperando dados do servidor...
Recuperando dados do servidor...
spark.effects.animation 

SimpleMotionPath  - AS3 Flex

Pacotespark.effects.animation
Classepublic class SimpleMotionPath
HerançaSimpleMotionPath Inheritance MotionPath Inheritance Object

Versão da linguagem: ActionScript 3.0
Versão de produto: Flex 4
Versões de runtime: Flash Player 10, AIR 1.5

The SimpleMotionPath class specifies the name of a property, and the values that that property takes over time, for instances of the Animate effect.

This class is a simple subclass of MotionPath for defining two keyframes to hold the valueFrom, valueTo, and valueBy properties. The MotionPath class itself can define any number of keyframes.

Propriedade MXML padrãokeyframes

Elementos da API relacionados



Propriedades públicas
 PropriedadeDefinido por
 Inheritedconstructor : Object
Uma referência ao objeto de classe ou à função de construtor de uma determinada ocorrência de objeto.
Object
 Inheritedinterpolator : IInterpolator
The interpolator determines how in-between values in an animation are calculated.
MotionPath
 Inheritedkeyframes : Vector.<Keyframe>
A sequence of Keyframe objects that represent the time/value pairs that the property takes during the animation.
MotionPath
 Inheritedproperty : String
The name of the property on the effect target to be animated.
MotionPath
  valueBy : Object
Optional property which specifies the delta used to calculate either the valueFrom or valueTo value.
SimpleMotionPath
  valueFrom : Object
The starting value for the property during the animation.
SimpleMotionPath
  valueTo : Object
The value that the named property will animate to.
SimpleMotionPath
Métodos públicos
 MétodoDefinido por
  
SimpleMotionPath(property:String = null, valueFrom:Object = null, valueTo:Object = null, valueBy:Object = null)
Constructor.
SimpleMotionPath
 Inherited
Returns a copy of this MotionPath object, including copies of each keyframe.
MotionPath
 Inherited
Calculates and returns an interpolated value, given the elapsed time fraction.
MotionPath
 Inherited
Indica se um objeto tem uma propriedade especificada definida.
Object
 Inherited
Indica se uma ocorrência da classe Object está na cadeia de protótipos do objeto especificado como o parâmetro.
Object
 Inherited
Indica se a propriedade especificada existe e é enumerável.
Object
 Inherited
Define a disponibilidade de uma propriedade dinâmica para operações de repetição.
Object
 Inherited
Retorna a representação da string deste objeto, formatado segundo as convenções específicas para a localidade.
Object
 Inherited
Retorna a representação de string do objeto especificado.
Object
 Inherited
Retorna o valor primitivo do objeto especificado.
Object
Detalhes da propriedade

valueBy

propriedade
valueBy:Object

Versão da linguagem: ActionScript 3.0
Versão de produto: Flex 4
Versões de runtime: Flash Player 10, AIR 1.5

Optional property which specifies the delta used to calculate either the valueFrom or valueTo value. Providing this optional property lets the effect calculate the necessary from/to values if either are not provided or are to be determined dynamically when the animation begins.

The way that the valueBy value is used depends on which of the other values are set. If neither are set, then the valueFrom value is determined from the current property value in the target, and the valueTo value is valueFrom + valueBy. If one or the other is set, but not both, then the unset value is calculated by the other value: valueTo = valueFrom + valueBy or valueFrom = valueTo - valueBy). If both are set, then the valueBy property is ignored.

Note that since valueBy is of type Object, the effect cannot directly calculate the other values from it. It uses the effect's interpolator to calculate the values by calling the interpolator's increment() and decrement() methods. If no interpolator is set, then it will use NumberInterpolator by default.



Implementação
    public function get valueBy():Object
    public function set valueBy(value:Object):void

valueFrom

propriedade 
valueFrom:Object

Versão da linguagem: ActionScript 3.0
Versão de produto: Flex 4
Versões de runtime: Flash Player 10, AIR 1.5

The starting value for the property during the animation.

A value of Null or NaN (in the case of Numbers) specifies that a value must be determined dynamically at runtime, either by getting the value from the target property directly or calculating it if the other value is valid and there is also a valid valueBy value supplied.



Implementação
    public function get valueFrom():Object
    public function set valueFrom(value:Object):void

valueTo

propriedade 
valueTo:Object

Versão da linguagem: ActionScript 3.0
Versão de produto: Flex 4
Versões de runtime: Flash Player 10, AIR 1.5

The value that the named property will animate to.

A value of Null or NaN (in the case of Numbers) element specifies that a value must be determined dynamically at runtime, either by getting the value from the target property directly or calculating it if the other value is valid and there is also a valid valueBy value supplied.



Implementação
    public function get valueTo():Object
    public function set valueTo(value:Object):void
Detalhes do construtor

SimpleMotionPath

()Construtor
public function SimpleMotionPath(property:String = null, valueFrom:Object = null, valueTo:Object = null, valueBy:Object = null)

Versão da linguagem: ActionScript 3.0
Versão de produto: Flex 4
Versões de runtime: Flash Player 10, AIR 1.5

Constructor. You can specify both the valueFrom and valueTo parameters, or specify the valueBy parameter and either the valueFrom or valueTo parameter. If you omit these parameters, Flex calculates them from the effect target.

Parâmetros
property:String (default = null) — The name of the property being animated.
 
valueFrom:Object (default = null) — The initial value of the property.
 
valueTo:Object (default = null) — The final value of the property.
 
valueBy:Object (default = null) — An optional parameter that specifies the delta with which to calculate either the from or to values, if one is omitted.




[ X ]Por que inglês?
O conteúdo na Referência do ActionScript 3.0 aparece em inglês

Nem todas as partes da Referência do ActionScript 3.0 estão traduzidas em todos os idiomas. Quando um elemento de um idioma não está traduzido, ele é exibido em inglês. Por exemplo, a classe ga.controls.HelpBox não está traduzida em nenhum idioma. Por isso, na versão da referência em português do Brasil, a classe ga.controls.HelpBox é exibida em inglês.