Jump to content
Search Community

eOne

Members
  • Posts

    9
  • Joined

  • Last visited

Everything posted by eOne

  1. forgive me ... messy day. TweenLite.to(... solves all problems
  2. 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?
  3. Thank you Carl. I will see how I can redefine my code to use cycle.
  4. 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!
  5. 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 ... ?
  6. eOne

    > PhoneGap > Android

    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 ?
  7. Can please someone post code for tinting backgroundColor poperty of TLF TextField. I have tryed using colorTransform, tint, hexColors ... I managed to change color to some defined, but tinting I cannot get to work. Alpha is not option. thank you
  8. I am speechless not because it can be done, not even of ways it can be done - but with your effort. Thank you! Of course ... it's working like a charm
  9. As it is possible to use TweenLite/TweenMax on anything ( ) 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...