source: Collectif_Otra/global.reflet-web.net/lib/reflet_swf_dependances/greensock-tweening-platform-as3/com/greensock/core/PropTween.as @ 2813

Last change on this file since 2813 was 2813, checked in by kent1, 10 years ago

Des librairies manquantes

File size: 2.9 KB
Line 
1/**
2 * VERSION: 2.1
3 * DATE: 9/12/2009
4 * ACTIONSCRIPT VERSION: 3.0 (AS2 version is also available)
5 * UPDATES AND DOCUMENTATION AT: http://www.TweenLite.com
6 **/
7package com.greensock.core {
8/**
9 * Stores information about an individual property tween. There is no reason to use this class directly - TweenLite, TweenMax, and some plugins use it internally.<br /><br />
10 *
11 * <b>Copyright 2009, GreenSock. All rights reserved.</b> This work is subject to the terms in <a href="http://www.greensock.com/terms_of_use.html">http://www.greensock.com/terms_of_use.html</a> or for corporate Club GreenSock members, the software agreement that was issued with the corporate membership.
12 *
13 * @author Jack Doyle, jack@greensock.com
14 */     
15        public class PropTween {
16                /** Target object **/
17                public var target:Object;
18                /** Name of the property that is being tweened **/
19                public var property:String;
20                /** Starting value  **/
21                public var start:Number;
22                /** Amount to change (basically, the difference between the starting value and ending value) **/
23                public var change:Number;
24                /** Alias to associate with the PropTween which is typically the same as the property, but can be different, particularly for plugins. **/
25                public var name:String;
26                /** Priority in the rendering queue. The lower the value the later it will be tweened. Typically all PropTweens get a priority of 0, but some plugins must be rendered later (or earlier) **/
27                public var priority:int;
28                /** If the target of the PropTween is a TweenPlugin, isPlugin should be true. **/
29                public var isPlugin:Boolean;
30                /** Next PropTween in the linked list **/
31                public var nextNode:PropTween;
32                /** Previous PropTween in the linked list **/
33                public var prevNode:PropTween;
34               
35                /**
36                 * Constructor
37                 *
38                 * @param target Target object
39                 * @param property Name of the property that is being tweened
40                 * @param start Starting value
41                 * @param change Amount to change (basically, the difference between the starting value and ending value)
42                 * @param name Alias to associate with the PropTween which is typically the same as the property, but can be different, particularly for plugins.
43                 * @param isPlugin If the target of the PropTween is a TweenPlugin, isPlugin should be true.
44                 * @param nextNode Next PropTween in the linked list
45                 * @param priority Priority in the rendering queue. The lower the value the later it will be tweened. Typically all PropTweens get a priority of 0, but some plugins must be rendered later (or earlier)
46                 */
47                public function PropTween(target:Object, property:String, start:Number, change:Number, name:String, isPlugin:Boolean, nextNode:PropTween=null, priority:int=0) {
48                        this.target = target;
49                        this.property = property;
50                        this.start = start;
51                        this.change = change;
52                        this.name = name;
53                        this.isPlugin = isPlugin;
54                        if (nextNode) {
55                                nextNode.prevNode = this;
56                                this.nextNode = nextNode;
57                        }
58                        this.priority = priority;
59                }
60        }
61}
Note: See TracBrowser for help on using the repository browser.