Jump to content
Search Community

viaria

Members
  • Posts

    31
  • Joined

  • Last visited

Posts posted by viaria

  1. 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.

  2. 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
    

  3. 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.

  4. //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;
    	}

  5. hi jack, i guess i got something.

    my working example using timelinelite v 1.392

    and other one that not working uses v 1.66 latest

     

    i changed the path to old version and it gives verifing error.

     

    VerifyError: Error #1053: com.greensock.TimelineLite -> addChild

  6. just a quick info.

    if you using timelinelite and you set timescale, after all you wanted to tween timelinelite, it is not ganna work unless you use this solution, i figure it out myself.

     

    TweenLite.to(timeline, timeline.totalDuration * timeline.timeScale, {currentTime:timeline.totalDuration});

     

    thanks.

  7. Hi,

    i am trying to make tween pv3d camera according to bezier path, but the camera doesnt have rotation property and give this error. how can i achieve this.

    thanks.

     

    Code:

    timeline.append(new TweenLite(camera, 4, {zoom:600, bezierThrough:[{x:1000, y:0, z:0}, {x:0, y:0, z:1000}, {x:0, y:0, z:-6000}], orientToBezier:true}));

     

    Error:

    ReferenceError: Error #1056: cant make rotation property on org.papervision3d.cameras.Camera3D //i translated this can be wrong but this is the problem.

    at com.greensock.plugins::BezierPlugin/set changeFactor()

    at com.greensock::TweenLite/renderTime()

    at com.greensock::TimelineLite/renderTime()

    at com.greensock.core::SimpleTimeline/renderTime()

    at com.greensock::TweenLite$/updateAll()

  8. this problem is about cs4 blureffect, there are people who have the same problem..

    i tried the same thing on cs5 it works ok for now, i have to install cs5 to all computers.. that is the solution i found..

     

    thanks..

×
×
  • Create New...