Skip to content

Commit

Permalink
Minor bugs fixes in TimelineLite/Max
Browse files Browse the repository at this point in the history
  • Loading branch information
jackdoyle committed Nov 26, 2012
1 parent 9b36cbc commit ec86285
Show file tree
Hide file tree
Showing 6 changed files with 35 additions and 28 deletions.
9 changes: 9 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
CHANGE LOG : GREENSOCK TWEENING PLATFORM
----------------------------------------

2012-11-26
---------------------------------------------
- Removed requirement that the target of a Physics2DPlugin tween be a DisplayObject (so Starling can work)
- Fixed minor bugs in TimelineLite and TimelineMax

2012-10-26
---------------------------------------------
- Added functionality to append() and all convenience methods of TimelineLite/Max so that the "offset" parameter can now be a string to indicate a label. If the label isn't found, one will be created and appended to the timeline for convenience.

2012-09-17
---------------------------------------------
- Fixed issue that caused TweenMax.killAll() to kill the tweens in the reverse order that they were created.
Expand Down
8 changes: 4 additions & 4 deletions src/com/greensock/BlitMask.as
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* VERSION: 0.6
* DATE: 2012-01-20
* VERSION: 0.61
* DATE: 2012-10-23
* AS3
* UPDATES AND DOCS AT: http://www.greensock.com
**/
Expand Down Expand Up @@ -84,7 +84,7 @@ package com.greensock {
**/
public class BlitMask extends Sprite {
/** @private **/
public static var version:Number = 0.6;
public static var version:Number = 0.61;

// In order to conserve memory and improve performance, we create a few instances of Rectangles, Sprites, Points, Matrices, and Arrays and reuse them rather than creating new instances over and over.
/** @private **/
Expand All @@ -102,7 +102,7 @@ package com.greensock {
/** @private **/
protected static var _colorTransform:ColorTransform = new ColorTransform();
/** @private **/
protected static var _mouseEvents:Array = [MouseEvent.CLICK, MouseEvent.DOUBLE_CLICK, MouseEvent.MOUSE_DOWN, MouseEvent.MOUSE_MOVE, MouseEvent.MOUSE_OUT, MouseEvent.MOUSE_OVER, MouseEvent.MOUSE_UP, MouseEvent.MOUSE_WHEEL, MouseEvent.ROLL_OUT, MouseEvent.ROLL_OVER];
protected static var _mouseEvents:Array = [MouseEvent.CLICK, MouseEvent.DOUBLE_CLICK, MouseEvent.MOUSE_DOWN, MouseEvent.MOUSE_MOVE, MouseEvent.MOUSE_OUT, MouseEvent.MOUSE_OVER, MouseEvent.MOUSE_UP, MouseEvent.MOUSE_WHEEL, MouseEvent.ROLL_OUT, MouseEvent.ROLL_OVER, "gesturePressAndTap", "gesturePan", "gestureRotate", "gestureSwipe", "gestureZoom", "gestureTwoFingerTap", "touchBegin", "touchEnd", "touchMove", "touchOut", "touchOver", "touchRollOut", "touchRollOver", "touchTap"];

/** @private **/
protected var _target:DisplayObject;
Expand Down
6 changes: 3 additions & 3 deletions src/com/greensock/FlexBlitMask.as
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* VERSION: 0.6
* DATE: 2012-01-20
* VERSION: 0.61
* DATE: 2012-10-23
* AS3
* UPDATES AND DOCS AT: http://www.greensock.com
**/
Expand Down Expand Up @@ -106,7 +106,7 @@ package com.greensock {
/** @private **/
protected static var _colorTransform:ColorTransform = new ColorTransform();
/** @private **/
protected static var _mouseEvents:Array = [MouseEvent.CLICK, MouseEvent.DOUBLE_CLICK, MouseEvent.MOUSE_DOWN, MouseEvent.MOUSE_MOVE, MouseEvent.MOUSE_OUT, MouseEvent.MOUSE_OVER, MouseEvent.MOUSE_UP, MouseEvent.MOUSE_WHEEL, MouseEvent.ROLL_OUT, MouseEvent.ROLL_OVER];
protected static var _mouseEvents:Array = [MouseEvent.CLICK, MouseEvent.DOUBLE_CLICK, MouseEvent.MOUSE_DOWN, MouseEvent.MOUSE_MOVE, MouseEvent.MOUSE_OUT, MouseEvent.MOUSE_OVER, MouseEvent.MOUSE_UP, MouseEvent.MOUSE_WHEEL, MouseEvent.ROLL_OUT, MouseEvent.ROLL_OVER, "gesturePressAndTap", "gesturePan", "gestureRotate", "gestureSwipe", "gestureZoom", "gestureTwoFingerTap", "touchBegin", "touchEnd", "touchMove", "touchOut", "touchOver", "touchRollOut", "touchRollOver", "touchTap"];

/** @private **/
protected var _target:DisplayObject;
Expand Down
2 changes: 1 addition & 1 deletion src/com/greensock/core/Animation.as
Original file line number Diff line number Diff line change
Expand Up @@ -690,7 +690,7 @@ myAnimation.eventCallback("onComplete", myFunction); //sets the onComplete
}
_duration = _totalDuration = value;
_uncache(true); //true in case it's a TweenMax or TimelineMax that has a repeat - we'll need to refresh the totalDuration.
if (_timeline.smoothChildTiming) if (_active) if (value != 0) {
if (_timeline.smoothChildTiming) if (_time > 0) if (_time < _duration) if (value != 0) {
totalTime(_totalTime * (value / _duration), true);
}
return this;
Expand Down
8 changes: 4 additions & 4 deletions src/com/greensock/loading/core/LoaderItem.as
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
/**
* VERSION: 1.92
* DATE: 2012-08-08
* VERSION: 1.921
* DATE: 2012-10-10
* AS3
* UPDATES AND DOCS AT: http://www.greensock.com/loadermax/
**/
package com.greensock.loading.core {
import com.greensock.events.LoaderEvent;
import com.greensock.loading.LoaderStatus;
import com.greensock.loading.LoaderMax;
import com.greensock.loading.LoaderStatus;

import flash.events.Event;
import flash.events.ProgressEvent;
Expand Down Expand Up @@ -84,7 +84,7 @@ package com.greensock.loading.core {
extraParams += (extraParams == "") ? a[1] : "&" + a[1];
}
if (extraParams != "") {
var data:URLVariables = (request.data is URLVariables) ? request.data as URLVariables : new URLVariables();
var data:URLVariables = new URLVariables( ((request.data is URLVariables) ? request.data.toString() : null) );
a = extraParams.split("&");
i = a.length;
var pair:Array;
Expand Down
30 changes: 14 additions & 16 deletions src/com/greensock/plugins/TransformMatrixPlugin.as
Original file line number Diff line number Diff line change
Expand Up @@ -13,24 +13,22 @@ package com.greensock.plugins {
* (<code>a, b, c, d, tx, and ty</code>) or use common properties like <code>x, y, scaleX, scaleY,
* skewX, skewY, rotation</code> and even <code>shortRotation</code>.
* To skew without adjusting scale visually, use skewX2 and skewY2 instead of skewX and skewY.
* <br /><br />
*
* transformMatrix tween will affect all of the DisplayObject's transform properties, so do not use
* it in conjunction with regular x/y/scaleX/scaleY/rotation tweens concurrently.<br /><br />
* <p>transformMatrix tween will affect all of the DisplayObject's transform properties, so do not use
* it in conjunction with regular x/y/scaleX/scaleY/rotation tweens concurrently.</p>
*
* <b>USAGE:</b><br /><br />
* <code>
* import com.greensock.TweenLite; <br />
* import com.greensock.plugins.~~; <br />
* TweenPlugin.activate([TransformMatrixPlugin]); //activation is permanent in the SWF, so this line only needs to be run once.<br /><br />
*
* TweenLite.to(mc, 1, {transformMatrix:{x:50, y:300, scaleX:2, scaleY:2}}); <br /><br />
*
* //-OR-<br /><br />
*
* TweenLite.to(mc, 1, {transformMatrix:{tx:50, ty:300, a:2, d:2}}); <br /><br />
*
* </code>
* <p><b>USAGE:</b></p>
* <listing version="3.0">
import com.greensock.TweenLite;
import com.greensock.plugins.~~;
TweenPlugin.activate([TransformMatrixPlugin]); //activation is permanent in the SWF, so this line only needs to be run once.
TweenLite.to(mc, 1, {transformMatrix:{x:50, y:300, scaleX:2, scaleY:2}});
//-OR-
TweenLite.to(mc, 1, {transformMatrix:{tx:50, ty:300, a:2, d:2}});
</listing>
*
* <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>
*
Expand Down

0 comments on commit ec86285

Please sign in to comment.