Jump to content
Search Community

skywolf

Members
  • Posts

    1
  • Joined

  • Last visited

Posts posted by skywolf

  1. Hi,

     

    I'm trying to do an infinite random tween using the following code

     

    TweenLite.to(box, 2, {left:Math.random() * 600,onComplete:completeHandler, onCompleteParams:box});

     

    and the handler is

     

    function completeHandler(obj) {
        if (obj)
             TweenLite.to(obj, 2, {left:Math.random() * 600,onComplete:completeHandler, onCompleteParams:obj});
    }

     

    but after 2 tweens, the parameter becomes null. I can use this.target instead, but there seems to be

    a bug

     

    thanks

    Jon

     

     

     

×
×
  • Create New...