Name
animator (LzAnimator) — Changes the value of another object's attribute over time.
Description
LzAnimator
Animators change the value of an object's attribute over a
specified duration in milliseconds. For example, the following program
defines an animator for a window that moves it to a position of x=100
over 1 second (1000 milliseconds).
See the Guide for a complete discussion of
animators and animation in Laszlo applications.
Details
Properties (3)
-
attribute
-
<attribute name="attribute" type="token" />
public var attribute : String;
The name of the attribute whose value is animated. This
attribute is required on an animator, unless the animator is
inside an animatorgroup that specifies an attribute.
-
beginPoleDelta
-
<attribute name="beginPoleDelta" />
public var beginPoleDelta = 0.25;
-
endPoleDelta
-
<attribute name="endPoleDelta" />
public var endPoleDelta = 0.25;
Setters (2)
Setters for virtual properties, to be used with setAttribute. A setter may or may not have a corresponding getter method;
consult the Methods list in this section.
-
motion
-
The style of motion to use for the animator. This
is one of "linear", "easin" , "easeout" , and "easeboth". The default
is "easeboth"
-
to
-
The destination value for the animator.
Methods (2)
-
setMotion()
-
<method name="setMotion" args="eparam" />
public function setMotion(eparam : String);
Sets the motion style for the animator.
-
setTo()
-
<method name="setTo" args="eparam" />
public function setTo(eparam : Number);
Sets the destination value for the animator
LZX Synopsis
<class name="
LzAnimator" extends="
LzAnimatorGroup
">
<attribute name="
attribute
" type="
token" />
<method name="
setTo
" args="
eparam" />
</class>
JavaScript Synopsis
public
LzAnimator extends
LzAnimatorGroup
{
prototype public function
setMotion
(
eparam : String);
prototype public function
setTo
(
eparam : Number);
}