Jump to content
Search Community

ulrich sinn

Members
  • Posts

    5
  • Joined

  • Last visited

Posts posted by ulrich sinn

  1. It appears that the declaration file has:

     

    time(value:number, suppressEvents?:boolean):any;

     

    but should it rather be:

     

    time(value?:number, suppressEvents?:boolean):any;

     

    since it functions as a getter as well?

     

    the web storm compiler throws an error in the first case, not in the second.

  2. This works:

     

    TweenMax.to("#topLogo",2,{opacity:0,onUpdate:function(){

    console.log("update")
    }})

     

    This doesn't:

     

    this._tl.add(TweenMax.to("#topLogo",2,{opacity:0,onUpdate:function(){

    console.log("update")
    }}), 4);

     

    I can see it work in the timeline, just no onUpdate.

     

    How would I do such a thing? I actually want to tween a dummy object to send the value to a diferent module that blurs a canvas image/createjs.

     

    Thank you!

×
×
  • Create New...