Jump to content
GreenSock

Search In
  • More options...
Find results that contain...
Find results in...

jax

Members
  • Posts

    9
  • Joined

  • Last visited

jax's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Okay, I change the problematics lines like this: if (allTrue || (tween is SimpleTimeline) || ((isDC = (TweenLite(tween).target == TweenLite(tween).vars.onComplete)) && delayedCalls) || (tweens && !isDC)) { change to: if (allTrue || (tween is SimpleTimeline) || (Boolean(isDC = (TweenLite(tween).target == TweenLite(tween).vars.onComplete)) && delayedCalls) || (tweens && !isDC)) { Assign an array to another, the return value not casted automaticly to boolean! Now it's work in flashdevelop too.
  2. Thx. It's work with fla. Flashdevelop return errors, but! As I said, the assign and compare method not the best: var m:Array; var test:Array = [1,2,3]; trace((true && (m = test))); // output: 1,2,3 trace(true && Boolean(m = test)); // output: true trace(false && Boolean(m = test)); // output: false trace((true && (m = test) && true)); // output: true trace((true && (m = test) && false)); // output: false
  3. Yes, this emoticons kidding me, I fixed the trace post.
  4. Other way, the assign and compare function not the best. I make a quick test: var m:Array; var test:Array = [1,2,3]; trace(true && (m = test)); // output: 1,2,3 trace((true && (m = test) && true)); // output: true trace((true && (m = test) && false)); // output: false
  5. Hm. Okay, maybe the warnings are flashdevelop problems. But I was attach an fla version qiuck test. If I push the killAll button, tweens doesn't stop! If I use the v12 version, killAll restart the tweens.
  6. And yes, sorry, I doesn't wacth the subtitle. This is a flash as3 problem!
  7. Ah, I download from here: http://www.greensock.com/tweenmax/ I download the v12, but there are more warnings (from flashdevelop): com\greensock\TweenMax.as:1636: Warning: Assignment within conditional. Did you mean == instead of =? com\greensock\TweenMax.as:1636: Warning: Assignment within conditional. Did you mean == instead of =? com\greensock\plugins\TweenPlugin.as:158: Warning: Assignment within conditional. Did you mean == instead of =? com\greensock\plugins\TweenPlugin.as:285: Warning: Assignment within conditional. Did you mean == instead of =? com\greensock\plugins\TweenPlugin.as:290: Warning: Assignment within conditional. Did you mean == instead of =? if (allTrue || (tween is SimpleTimeline) || ((isDC = (TweenLite(tween).target == TweenLite(tween).vars.onComplete)) && delayedCalls) || (tweens && !isDC)) { ^ if ((ar = this._autoRotate)) { ^ if (end != null && (c = (typeof(end) === "number" || end.charAt(1) !== "=") ? Number(end) - start : int(end.charAt(0)+"1") * Number(end.substr(2)))) { ^ if ((pt._prev = pt2 ? pt2._prev : last)) { ^ if ((pt._next = pt2)) { ^ Build halted with errors (fcsh). Ok, I add a test with the old version. The new version upload skiped (too big file). old.zip
  8. "When you say the tween isn't killed, do you mean that it continues to run?" Yes. Or that it doesn't fire its onReverseComplete? Yes. I made a test for you, but where can I attach? PS. that isDC = (...) was definitely not the cause of the problem. Okay, I'm just read into the code quickly... Ps. I found one another bug. I download again the as3 version. (last changelog date is 2012-06-30) There is a warning in the Tweenlite.as: com\greensock\TweenLite.as:406: Warning: Assignment within conditional. Did you mean == instead of =? (siblings = masterList[this.target]) I fixed it to: (siblings == masterList[this.target])
  9. Hi guys, I have a problem with The TweenMax.killAll(true) method. Here is my example: TweenMax.to(targetQ, 2, { scaleX : 2, scaleY : 2, reversed : true, yoyo : true, repeat : 1, x : targetQ.x + (targetQ.width - 2 * targetQ.width) / 2, y : targetQ.y + (targetQ.height - 2 * targetQ.height), ease : Back.easeOut, onReverseComplete : function onReverseComplete():void { trace("complete this tween ;)"); } } ); If you make a reversed tween, it's never call the onComplete function. The tweenax documentation write this: " onComplete : Function – A function that should be called when the tween has completed. To sense when a tween has reached its starting point again after having been reversed, use onReverseComplete." If I call TweenMax.killAll(true), tween not killed!!!!! As I see, the problem is in the killAll method. Inside this, here's a line: isDC = (a.target == a.vars.onComplete); Unfortunately, if you set a reverse to a tween, onComplete callback ignored! cheers, jax
×