Jump to content
Search Community

eOne

Members
  • Posts

    9
  • Joined

  • Last visited

Posts posted by eOne

  1. I use TweenMax with Animate CC. Latest GSAP added as external script in AnimateCC.

     

    My animation code is in external file which is loaded at the end.

    When I access objects property (myObj.x += 100), it is moved OK. However, if I try TweenMax(myObj, 1, {x:100}) I get this errror:

     

    TypeError: undefined is not an object (evaluating 'this.vars=b=b||{}') TweenMax.min.js:16:26351

     

    	testBtn = exportRoot.legenda.testBtn
        testBtn.lgnBtnHighlight.alpha = 0.5 // works, alpha is set to 0.5
        TweenLite(testBtn.lgnBtnHighlight, 1, {alpha:1}) // throws that error

     

    If I write animation code within Animate's code (this.myObj) animations works.

     

    TweenMax library seem to be loaded fine, and object is instantiated on the exportRoot stage and is accessible.

     

    Any idea, help?

  2. I exported objects from AnimateCC and doing some HTML5 canvas animation.

    Basically all works as expected, but I have problem with getting movieclip being tweened by stagger method.

     

    I tried some solutions I've found, but for index I get undefined, "{{this}}" or some other combination like that just didin't do for me.

     

     

    How to I target currently tweened movieclip ?

    var tlm = new TimelineMax()
    	tml.staggerFrom( mcArray, 1, {alpha:0, onStart:function(){console.log(mcArray[index])}}, 1)
    

    Error I get here is that "Can't find variable index"

     

    Thank you guys!

  3. How can I force each segment of TimelineMax to be TweenMax instead of TweenLite as it seems it is happening now.

     

    I have:

    var tl:TimelineMax = new TimelineMax();
    tl.to(mc, 1, {x:100});

    if I check this with 

    trace ( tl.getActive(false,true,false)[0]; )

     I will get TimelineLite.

     

     

    do I have to do tl.add ( TweenMax.... ) or there is a way to make TweenMax to be default for each addition to TimelineMax if lined with .to, .from, .fromTo ... ?

  4. Hi ppl,

     

    first of all, great work greensock!

     

    As soon as I've heard it about, I've switched my current project I am working on, from jquery animations to tweenlite. Of course, everything is working fine while testing in browsers, but when compiled in Eclipse and tested in emulator device things started to get weird.

     

    I get sliding, alpha works, but not in all situations, and rotation doesn't work at all.

     

    Is minified version supposed to work ok with PhoneGap and be ported to mobiles ?

  5. As it is possible to use TweenLite/TweenMax on anything ( :D ) I am trying to tween text property of text field.

    However, I need it to tween by round values eg. 0, 1, 2, 3 ... 100. For now I am getting 0.01, 0.02 ...

     

    Is there some magic switch inside Tweenlite/Tweenmax lib that I've missed?

     

    Thank you for help and for a such a great plugin.

×
×
  • Create New...