Jump to content
GreenSock

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

viaria

Members
  • Posts

    31
  • Joined

  • Last visited

viaria's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Hi, Experimenting with js version. I wonder if there is a js version of overwrite manager? I am having weird behavior sometimes. And right now i guess we should not use tweenlite/max for production. ?
  2. I don't know if it is updated but, this works without using CSSPlugin. On Firefox it is really smooth, IE9 it is ok. But Chrome something weird happening. Image being choppy, sometimes doesn't do anything while event works.
  3. You are right, in the future maybe. dart release => 2013.
  4. AS3 Devs will love Dart rather than JS. Is there any plan for dart port?
  5. How could this work even i havent activate TintPlugin, is TweenMax activating plugins in itself? TweenMax.to(mc, .5, {tint:0xffffff, ease:Cubic.easeOut});
  6. is there a way to do this. for example: One object's alpha tween in 1 second, at the same time the same object's rotation property tweens in 2 seconds. thanks
  7. i made a simple example but it works as expected. i could not find any bug again, i guess it is my stupid mistake somewhere in code. do you never make mistakes man? sorry for taking your time. one question: first trace returns 0, does that mean false or index 0.
  8. for detail, i made a timelinemax and made a couple of tween in it that is where things did not work as expected.
  9. hi jack, just try this line of code, there can be a bug in overwritemanager, it took my 2 weeks to catch. import com.greensock.*; import com.greensock.easing.*; trace("before:", OverwriteManager.mode); // returns 0 // 2 is default -> http://www.greensock.com/overwritemanager/ TweenMax.to(box, .5, {x:100}); // just a simple tween. trace("after:", OverwriteManager.mode); //returns 2
  10. i solved it. the problem is gaia changes tweenlite's overwriteManager default settings. so i changed it back to auto default mode . i hope something else will not explode. jack thanks for interest.
  11. //so my code. goPlace(cubes[7], ["r","r","r","u","u","r","r"]); private function goPlace(c:CubeSprite, dirs:Array):void{ var total:uint = dirs.length; var i:uint = 0; var sx:Number = c.x; var sy:Number = c.y; var timeline:TimelineMax = new TimelineMax({align:TweenAlign.SEQUENCE}); for(i; i < total; ++i){ switch(String(dirs[i])){ case "l": sx -= SIZE; timeline.append(TweenMax.to(c, .5, {frame:60, x:sx, onInit:setRotation, onInitParams:[c, 180], ease:Linear.easeNone})); break; case "r": sx += SIZE; timeline.append(TweenMax.to(c, .5, {frame:60, x:sx, onInit:setRotation, onInitParams:[c, 0], ease:Linear.easeNone})); break; case "u": sy -= SIZE; timeline.append(TweenMax.to(c, .5, {frame:60, y:sy, onInit:setRotation, onInitParams:[c, -90], ease:Linear.easeNone})); break; case "d": sy += SIZE; timeline.append(TweenMax.to(c, .5, {frame:60, y:sy, onInit:setRotation, onInitParams:[c, +90], ease:Linear.easeNone})); break; default: trace("default dir: "+dirs[i]); break; } } } private function setRotation(c:CubeSprite, r:int = 0):void{ c.gotoAndStop(1); c.rotation = r; }
×