blob: fcc8d29b0462af77af1dd5ce45c54704362358dd [file] [log] [blame]
{ "type": "class",
"qname": "org.apache.royale.effects.Tween",
"baseClassname": "org.apache.royale.effects.Effect"
,
"description": "Tween is the underlying animation class for the effects in Royale. The Tween class defines a tween, a property animation performed on a target object over a period of time. That animation can be a change in position, such as performed by the Move effect; a change in size, as performed by the Resize or Zoom effects; a change in visibility, as performed by the Fade or Dissolve effects; or other types of animations. <p>A Tween instance accepts the <code>startValue</code>, <code>endValue</code>, and <code>duration</code> properties, and an optional easing function to define the animation.</p>",
"tags": [
{ "tagName": "playerversion",
"values": ["Flash 10.2", "AIR 2.6"]},
{ "tagName": "productversion",
"values": ["Royale 0.0"]},
{ "tagName": "langversion",
"values": ["3.0"]} ],
"members": [
{ "type": "field",
"qname": "TWEEN_END",
"return": "String",
"namespace": "public",
"bindable": [],
"details": ["static"],
"deprecated": {},
"description": "The <code>Tween.TWEEN_END</code> constant defines the value of the event object's <code>type</code> property for a <code>tweenEnd</code> event. <p>The properties of the event object have the following values:</p> <table class=&quot;innertable&quot;> <tr><th>Property</th><th>Value</th></tr> <tr><td><code>bubbles</code></td><td>false</td></tr> <tr><td><code>cancelable</code></td><td>false</td></tr> <tr><td><code>currentTarget</code></td><td>The Object that defines the event listener that handles the event. For example, if you use <code>myButton.addEventListener()</code> to register an event listener, myButton is the value of the <code>currentTarget</code>. </td></tr> <tr><td><code>target</code></td><td>The Object that dispatched the event; it is not always the Object listening for the event. Use the <code>currentTarget</code> property to always access the Object listening for the event.</td></tr> <tr><td><code>value</code></td><td>The value passed to the <code>onTweenEnd()</code> method.</td></tr> </table>",
"tags": [
{ "tagName": "see",
"values": ["org.apache.royale.effects.Effect", "org.apache.royale.effects.TweenEffect", "org.apache.royale.events.EffectEvent"]},
{ "tagName": "playerversion",
"values": ["Flash 9", "AIR 1.1"]},
{ "tagName": "eventType",
"values": ["tweenEnd"]},
{ "tagName": "productversion",
"values": ["Royale 1.0.0"]},
{ "tagName": "langversion",
"values": ["3.0"]} ]},
{ "type": "field",
"qname": "TWEEN_START",
"return": "String",
"namespace": "public",
"bindable": [],
"details": ["static"],
"deprecated": {},
"description": "The <code>Tween.TWEEN_START</code> constant defines the value of the event object's <code>type</code> property for a <code>tweenStart</code> event. <p>The properties of the event object have the following values:</p> <table class=&quot;innertable&quot;> <tr><th>Property</th><th>Value</th></tr> <tr><td><code>bubbles</code></td><td>false</td></tr> <tr><td><code>cancelable</code></td><td>false</td></tr> <tr><td><code>currentTarget</code></td><td>The Object that defines the event listener that handles the event. For example, if you use <code>myButton.addEventListener()</code> to register an event listener, myButton is the value of the <code>currentTarget</code>. </td></tr> <tr><td><code>target</code></td><td>The Object that dispatched the event; it is not always the Object listening for the event. Use the <code>currentTarget</code> property to always access the Object listening for the event.</td></tr> <tr><td><code>value</code></td><td>The value passed to the <code>onTweenUpdate()</code> method.</td></tr> </table>",
"tags": [
{ "tagName": "playerversion",
"values": ["Flash 9", "AIR 1.1"]},
{ "tagName": "eventType",
"values": ["tweenStart"]},
{ "tagName": "productversion",
"values": ["Royale 1.0.0"]},
{ "tagName": "langversion",
"values": ["3.0"]} ]},
{ "type": "field",
"qname": "TWEEN_UPDATE",
"return": "String",
"namespace": "public",
"bindable": [],
"details": ["static"],
"deprecated": {},
"description": "The <code>Tween.TWEEN_UPDATE</code> constant defines the value of the event object's <code>type</code> property for a <code>tweenUpdate</code> event. <p>The properties of the event object have the following values:</p> <table class=&quot;innertable&quot;> <tr><th>Property</th><th>Value</th></tr> <tr><td><code>bubbles</code></td><td>false</td></tr> <tr><td><code>cancelable</code></td><td>false</td></tr> <tr><td><code>currentTarget</code></td><td>The Object that defines the event listener that handles the event. For example, if you use <code>myButton.addEventListener()</code> to register an event listener, myButton is the value of the <code>currentTarget</code>. </td></tr> <tr><td><code>target</code></td><td>The Object that dispatched the event; it is not always the Object listening for the event. Use the <code>currentTarget</code> property to always access the Object listening for the event.</td></tr> <tr><td><code>value</code></td><td>The value passed to the <code>onTweenUpdate()</code> method.</td></tr> </table>",
"tags": [
{ "tagName": "playerversion",
"values": ["Flash 9", "AIR 1.1"]},
{ "tagName": "eventType",
"values": ["tweenUpdate"]},
{ "tagName": "productversion",
"values": ["Royale 1.0.0"]},
{ "tagName": "langversion",
"values": ["3.0"]} ]},
{ "type": "field",
"qname": "activeTweens",
"return": "Object",
"namespace": "public",
"bindable": [],
"details": ["static"],
"deprecated": {},
"description": "The list of tweens that are currently playing.",
"tags": [
{ "tagName": "royalesuppresspublicvarwarning",
"values": []} ]},
{ "type": "field",
"qname": "currentTime",
"return": "Number",
"namespace": "public",
"bindable": [],
"details": ["static"],
"deprecated": {},
"description": "Used by effects to get the current effect time tick.",
"tags": [
{ "tagName": "royalesuppresspublicvarwarning",
"values": []} ]},
{ "type": "method",
"qname": "org.apache.royale.effects.Tween",
"namespace": "",
"bindable": [],
"details": [],
"deprecated": {},
"description": "Constructor.",
"tags": [
{ "tagName": "playerversion",
"values": ["Flash 9", "AIR 1.1"]},
{ "tagName": "productversion",
"values": ["Royale 1.0.0"]},
{ "tagName": "langversion",
"values": ["3.0"]} ],
"return": "",
"params": []}
,
{ "type": "accessor",
"access": "read-write",
"return": "Number",
"qname": "endValue",
"namespace": "public",
"bindable": [],
"details": [],
"deprecated": {},
"description": "Final value of the animation."},
{ "type": "accessor",
"access": "read-write",
"return": "Number",
"qname": "startValue",
"namespace": "public",
"bindable": [],
"details": [],
"deprecated": {},
"description": "Initial value of the animation."},
{ "type": "field",
"qname": "listener",
"return": "Object",
"namespace": "public",
"bindable": [],
"details": [],
"deprecated": {},
"description": "Object that is notified at each interval of the animation.",
"tags": [
{ "tagName": "playerversion",
"values": ["Flash 9", "AIR 1.1"]},
{ "tagName": "productversion",
"values": ["Royale 1.0.0"]},
{ "tagName": "langversion",
"values": ["3.0"]},
{ "tagName": "royalesuppresspublicvarwarning",
"values": []} ]},
{ "type": "accessor",
"access": "write-only",
"return": "Function",
"qname": "easingFunction",
"namespace": "public",
"bindable": [],
"details": [],
"deprecated": {},
"description": "Sets the easing function for the animation. The easing function is used to interpolate between the <code>startValue</code> value and the <code>endValue</code>. A trivial easing function does linear interpolation, but more sophisticated easing functions create the illusion of acceleration and deceleration, which makes the animation seem more natural. <p>If no easing function is specified, an easing function based on the <code>Math.sin()</code> method is used.</p> <p>The easing function follows the function signature popularized by Robert Penner. The function accepts four arguments. The first argument is the &quot;current time&quot;, where the animation start time is 0. The second argument is a the initial value at the beginning of the animation (a Number). The third argument is the ending value minus the initial value. The fourth argument is the duration of the animation. The return value is the interpolated value for the current time (usually a value between the initial value and the ending value).</p>",
"tags": [
{ "tagName": "param",
"values": ["easingFunction Function that implements the easing equation."]},
{ "tagName": "playerversion",
"values": ["Flash 9", "AIR 1.1"]},
{ "tagName": "productversion",
"values": ["Royale 1.0.0"]},
{ "tagName": "langversion",
"values": ["3.0"]} ]},
{ "type": "method",
"qname": "endTween",
"namespace": "public",
"bindable": [],
"details": [],
"deprecated": {},
"description": "Interrupt the tween, jump immediately to the end of the tween, and invoke the <code>onTweenEnd()</code> callback function.",
"tags": [
{ "tagName": "playerversion",
"values": ["Flash 9", "AIR 1.1"]},
{ "tagName": "productversion",
"values": ["Royale 1.0.0"]},
{ "tagName": "langversion",
"values": ["3.0"]} ],
"return": "void",
"params": []}
,
{ "type": "method",
"qname": "end",
"namespace": "public",
"bindable": [],
"details": [],
"deprecated": {},
"description": "Stops the tween, ending it without dispatching an event or calling the Tween's endFunction or <code>onTweenEnd()</code>.",
"tags": [
{ "tagName": "playerversion",
"values": ["Flash 9", "AIR 1.1"]},
{ "tagName": "productversion",
"values": ["Royale 1.0.0"]},
{ "tagName": "langversion",
"values": ["3.0"]} ],
"return": "void",
"params": []}
,
{ "type": "method",
"qname": "seek",
"namespace": "public",
"bindable": [],
"details": [],
"deprecated": {},
"description": "Advances the tween effect to the specified position. and the value of the <code>duration</code> property.",
"tags": [
{ "tagName": "param",
"values": ["playheadTime The position, in milliseconds, between 0"]},
{ "tagName": "playerversion",
"values": ["Flash 9", "AIR 1.1"]},
{ "tagName": "productversion",
"values": ["Royale 1.0.0"]},
{ "tagName": "langversion",
"values": ["3.0"]} ],
"return": "void",
"params": [{ "name": "playheadTime", "type": "Number"}]}
,
{ "type": "method",
"qname": "reverse",
"namespace": "public",
"bindable": [],
"details": ["override"],
"deprecated": {},
"description": "Plays the effect in reverse, starting from the current position of the effect.",
"tags": [
{ "tagName": "playerversion",
"values": ["Flash 9", "AIR 1.1"]},
{ "tagName": "productversion",
"values": ["Royale 1.0.0"]},
{ "tagName": "langversion",
"values": ["3.0"]} ],
"return": "void",
"params": []}
,
{ "type": "method",
"qname": "pause",
"namespace": "public",
"bindable": [],
"details": ["override"],
"deprecated": {},
"description": "Pauses the effect until you call the <code>resume()</code> method.",
"tags": [
{ "tagName": "playerversion",
"values": ["Flash 9", "AIR 1.1"]},
{ "tagName": "productversion",
"values": ["Royale 1.0.0"]},
{ "tagName": "langversion",
"values": ["3.0"]} ],
"return": "void",
"params": []}
,
{ "type": "method",
"qname": "play",
"namespace": "public",
"bindable": [],
"details": ["override"],
"deprecated": {},
"description": "Stops the tween, ending it without dispatching an event or calling the Tween's endFunction or <code>onTweenEnd()</code>.",
"tags": [
{ "tagName": "playerversion",
"values": ["Flash 9", "AIR 1.1"]},
{ "tagName": "productversion",
"values": ["Royale 1.0.0"]},
{ "tagName": "langversion",
"values": ["3.0"]} ],
"return": "void",
"params": []}
,
{ "type": "method",
"qname": "stop",
"namespace": "public",
"bindable": [],
"details": ["override"],
"deprecated": {},
"description": "Stops the tween, ending it without dispatching an event or calling the Tween's endFunction or <code>onTweenEnd()</code>.",
"tags": [
{ "tagName": "playerversion",
"values": ["Flash 9", "AIR 1.1"]},
{ "tagName": "productversion",
"values": ["Royale 1.0.0"]},
{ "tagName": "langversion",
"values": ["3.0"]} ],
"return": "void",
"params": []}
,
{ "type": "method",
"qname": "resume",
"namespace": "public",
"bindable": [],
"details": ["override"],
"deprecated": {},
"description": "Resumes the effect after it has been paused by a call to the <code>pause()</code> method.",
"tags": [
{ "tagName": "playerversion",
"values": ["Flash 9", "AIR 1.1"]},
{ "tagName": "productversion",
"values": ["Royale 1.0.0"]},
{ "tagName": "langversion",
"values": ["3.0"]} ],
"return": "void",
"params": []}
]
,
"events": [
{ "qname": "tweenEnd",
"type": "org.apache.royale.events.ValueEvent"
},
{ "qname": "tweenStart",
"type": "org.apache.royale.events.ValueEvent"
},
{ "qname": "tweenUpdate",
"type": "org.apache.royale.events.ValueEvent"
},
{ "qname": "effectEnd",
"type": "org.apache.royale.events.Event"
}]
}