viaria
Members-
Posts
31 -
Joined
-
Last visited
viaria's Achievements
0
Reputation
-
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. ?
-
You are right, in the future maybe. dart release => 2013.
-
AS3 Devs will love Dart rather than JS. Is there any plan for dart port?
-
thanks. saved my time.
-
thanks i got my answer.
-
How could this work even i havent activate TintPlugin, is TweenMax activating plugins in itself? TweenMax.to(mc, .5, {tint:0xffffff, ease:Cubic.easeOut});
-
that simple, thanks.
-
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
-
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.
-
for detail, i made a timelinemax and made a couple of tween in it that is where things did not work as expected.
-
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
-
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.
-
//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; }