Skip to content

Commit

Permalink
Improved BezierPlugin and updated copyright date
Browse files Browse the repository at this point in the history
Now the BezierPlugin's "thru" feature will automatically recognize when
the beginning and ending values match and smooth the transition for
seamless looping.
  • Loading branch information
jackdoyle committed Jan 9, 2013
1 parent ec86285 commit 3af4ef5
Show file tree
Hide file tree
Showing 125 changed files with 30,870 additions and 30,873 deletions.
1,782 changes: 891 additions & 891 deletions src/com/greensock/BlitMask.as

Large diffs are not rendered by default.

1,848 changes: 924 additions & 924 deletions src/com/greensock/FlexBlitMask.as

Large diffs are not rendered by default.

3,790 changes: 1,895 additions & 1,895 deletions src/com/greensock/TimelineLite.as

Large diffs are not rendered by default.

2,934 changes: 1,467 additions & 1,467 deletions src/com/greensock/TimelineMax.as

Large diffs are not rendered by default.

41 changes: 21 additions & 20 deletions src/com/greensock/TweenAlign.as
Original file line number Diff line number Diff line change
@@ -1,21 +1,22 @@
/**
* VERSION: 0.86
* DATE: 6/15/2009
* AS2 (AS3 version is also available)
* UPDATES AND DOCUMENTATION AT: http://www.TweenLite.com
**/
package com.greensock {
/**
* Static constants for defining tween alignment.
*
* <b>Copyright 2011, 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 <a href="http://www.greensock.com/club/">Club GreenSock</a> members, the software agreement that was issued with the membership.
*
* @author Jack Doyle, [email protected]
**/
public class TweenAlign {
public static const NORMAL:String = "normal";
public static const SEQUENCE:String = "sequence";
public static const START:String = "start";
}

/**
* VERSION: 0.86
* DATE: 6/15/2009
* AS2 (AS3 version is also available)
* UPDATES AND DOCUMENTATION AT: http://www.TweenLite.com
**/
package com.greensock {
/**
* @private
* Static constants for defining tween alignment.
*
* <p><strong>Copyright 2008-2013, GreenSock. All rights reserved.</strong> 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 <a href="http://www.greensock.com/club/">Club GreenSock</a> members, the software agreement that was issued with the membership.</p>
*
* @author Jack Doyle, [email protected]
**/
public class TweenAlign {
public static const NORMAL:String = "normal";
public static const SEQUENCE:String = "sequence";
public static const START:String = "start";
}

}
2,506 changes: 1,253 additions & 1,253 deletions src/com/greensock/TweenLite.as

Large diffs are not rendered by default.

3,930 changes: 1,965 additions & 1,965 deletions src/com/greensock/TweenMax.as

Large diffs are not rendered by default.

1,322 changes: 661 additions & 661 deletions src/com/greensock/TweenNano.as

Large diffs are not rendered by default.

1,988 changes: 994 additions & 994 deletions src/com/greensock/core/Animation.as

Large diffs are not rendered by default.

132 changes: 66 additions & 66 deletions src/com/greensock/core/PropTween.as
Original file line number Diff line number Diff line change
@@ -1,67 +1,67 @@
/**
* VERSION: 12.0
* DATE: 2012-02-23
* AS3
* UPDATES AND DOCS AT: http://www.greensock.com
**/
package com.greensock.core {
/**
* @private
* Stores information about an individual property tween. There is no reason to use this class directly - TweenLite, TweenMax, and some plugins use it internally.
*
* <p><strong>Copyright 2008-2012, GreenSock. All rights reserved.</strong> 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 <a href="http://www.greensock.com/club/">Club GreenSock</a> members, the software agreement that was issued with the membership.</p>
*
* @author Jack Doyle, [email protected]
*/
final public class PropTween {
/** Target object **/
public var t:Object;
/** Name of the property that is being tweened on the target (for plugins, this is always "setRatio", but the actual property name of the orignal target is stored in the "n" property of the PropTween instance) **/
public var p:String;
/** Starting value **/
public var s:Number;
/** Amount to change (basically, the difference between the starting value and ending value) **/
public var c:Number;
/** Indicates whether or not the target's property that is being tweened is a function (true) or not (false). If it's a function, it must be set with t.p(value) rather than t.p = value. **/
public var f:Boolean;
/** Priority in the rendering queue. The lower the value the later it will be tweened. The default value is 0, but some plugins must be rendered later (or earlier). **/
public var pr:int;
/** Indicates whether or not the target is a TweenPlugin. **/
public var pg:Boolean;
/** The name associated with the original target property. Typically this is the same as PropTween.p but for TweenPlugin tweens it is often different. For example an autoAlpha tween would create a PropTween of the AutoAlphaPlugin instance and p would be "setRatio", but n would be "autoAlpha". **/
public var n:String;
/** If <code>true</code>, the property should be rounded. **/
public var r:Boolean;
/** Next PropTween in the linked list **/
public var _next:PropTween;
/** Previous PropTween in the linked list **/
public var _prev:PropTween;

/**
* Constructor
*
* @param target Target object
* @param property Name of the property that is being tweened on the target (for plugins, this is always "setRatio", but the actual property name of the orignal target is stored in the "n" property of the PropTween instance)
* @param start Starting value
* @param change Amount to change (basically, the difference between the starting value and ending value)
* @param name The name associated with the original target property. Typically this is the same as PropTween.p but for TweenPlugin tweens it is often different. For example an autoAlpha tween would create a PropTween of the AutoAlphaPlugin instance and p would be "setRatio", but n would be "autoAlpha".
* @param isPlugin Indicates whether or not the target is a TweenPlugin.
* @param nextNode Next PropTween in the linked list
* @param priority Priority in the rendering queue. The lower the value the later it will be tweened. The default value is 0, but some plugins must be rendered later (or earlier).
*/
public function PropTween(target:Object, property:String, start:Number, change:Number, name:String, isPlugin:Boolean, next:PropTween=null, priority:int=0) {
this.t = target;
this.p = property;
this.s = start;
this.c = change;
this.n = name;
this.f = (target[property] is Function);
this.pg = isPlugin;
if (next) {
next._prev = this;
this._next = next;
}
this.pr = priority;
}
}
/**
* VERSION: 12.0
* DATE: 2012-02-23
* AS3
* UPDATES AND DOCS AT: http://www.greensock.com
**/
package com.greensock.core {
/**
* @private
* Stores information about an individual property tween. There is no reason to use this class directly - TweenLite, TweenMax, and some plugins use it internally.
*
* <p><strong>Copyright 2008-2013, GreenSock. All rights reserved.</strong> 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 <a href="http://www.greensock.com/club/">Club GreenSock</a> members, the software agreement that was issued with the membership.</p>
*
* @author Jack Doyle, [email protected]
*/
final public class PropTween {
/** Target object **/
public var t:Object;
/** Name of the property that is being tweened on the target (for plugins, this is always "setRatio", but the actual property name of the orignal target is stored in the "n" property of the PropTween instance) **/
public var p:String;
/** Starting value **/
public var s:Number;
/** Amount to change (basically, the difference between the starting value and ending value) **/
public var c:Number;
/** Indicates whether or not the target's property that is being tweened is a function (true) or not (false). If it's a function, it must be set with t.p(value) rather than t.p = value. **/
public var f:Boolean;
/** Priority in the rendering queue. The lower the value the later it will be tweened. The default value is 0, but some plugins must be rendered later (or earlier). **/
public var pr:int;
/** Indicates whether or not the target is a TweenPlugin. **/
public var pg:Boolean;
/** The name associated with the original target property. Typically this is the same as PropTween.p but for TweenPlugin tweens it is often different. For example an autoAlpha tween would create a PropTween of the AutoAlphaPlugin instance and p would be "setRatio", but n would be "autoAlpha". **/
public var n:String;
/** If <code>true</code>, the property should be rounded. **/
public var r:Boolean;
/** Next PropTween in the linked list **/
public var _next:PropTween;
/** Previous PropTween in the linked list **/
public var _prev:PropTween;

/**
* Constructor
*
* @param target Target object
* @param property Name of the property that is being tweened on the target (for plugins, this is always "setRatio", but the actual property name of the orignal target is stored in the "n" property of the PropTween instance)
* @param start Starting value
* @param change Amount to change (basically, the difference between the starting value and ending value)
* @param name The name associated with the original target property. Typically this is the same as PropTween.p but for TweenPlugin tweens it is often different. For example an autoAlpha tween would create a PropTween of the AutoAlphaPlugin instance and p would be "setRatio", but n would be "autoAlpha".
* @param isPlugin Indicates whether or not the target is a TweenPlugin.
* @param nextNode Next PropTween in the linked list
* @param priority Priority in the rendering queue. The lower the value the later it will be tweened. The default value is 0, but some plugins must be rendered later (or earlier).
*/
public function PropTween(target:Object, property:String, start:Number, change:Number, name:String, isPlugin:Boolean, next:PropTween=null, priority:int=0) {
this.t = target;
this.p = property;
this.s = start;
this.c = change;
this.n = name;
this.f = (target[property] is Function);
this.pg = isPlugin;
if (next) {
next._prev = this;
this._next = next;
}
this.pr = priority;
}
}
}
Loading

0 comments on commit 3af4ef5

Please sign in to comment.