Jump to content
Search Community

djkencloud

Members
  • Posts

    5
  • Joined

  • Last visited

djkencloud's Achievements

  • Week One Done
  • One Month Later
  • One Year In

Recent Badges

1

Reputation

  1. Thanks, that's fantastic. I'll give it a whirl today and let you know how I go. (And I'll renew my individual membership, I noticed it lapsed). You've floored me with your generosity, I wasn't expecting that at all. As we say in Australia 'cheers mate, your a bloody legend !' K.
  2. Sorry... this is my fault, its not in the documentation, I've got my as/js windows mixed up... please delete... My question is now, with the above case scenario, can I easily destroy nested tweens of my el property/dom element, without referencing them specifically, using a method that actually exists in Tweenmax JS. K.
  3. Hi, I went to call this function today... killChildTweensOf() in TweenMax JS but it doesn't seem to exist. Its in the documentation. I couldn't see anything on the forums so I posted. I have been known to miss things on a regular basis, so if I'm being a bit thick, please let me know. While I'm here, I will just check I'm wanting to use it the correct way. I have a view in backbone with a html template getting created off the el property. I'm wanting to call killChildTweensOf($(this.el)). to kill any tweens on any nested Dom element on the view. Will this work? Cheers... Ken.
  4. Thanks for your reply Carl, I am aware of the Liquid Stage classes, but I'd already written all my stage resize code for this project before discovering them. I have used them on another project and they are extremely handy. Thanks for the reply, I think I will have to restructure my app a little if I want the tween I'm after. Cheers... Ken.
  5. Hello... I have a timeline max instance/sequence. In that instance I have a sprite (_over) that pops on the stage using transformAroundPoint. As per the 2 lines of code below, at first I set its initial values in the first tweenmax inserted, after a 2 second delay I tween 'on' the sprite in the second tweenmax inserted, and pop on it comes. This works fine. _timeline.insert( TweenMax.to(_over, 0, {alpha:0, transformAroundPoint:{point:getNewPoint(), scaleX:0.9, scaleY:0.9, shortRotation:{rotation:20}}}) ) _timeline.insert( TweenMax.to(_over, 1, { delay:2, alpha:1, transformAroundPoint: { point:getNewPoint(), scaleX:1, scaleY:1, shortRotation:{rotation:0}}, ease:Elastic.easeOut } ) ); My problem is that when the stage resizes, the point gets changed, and when you navigate back to that page and the timeline max sequence goes through its motions, (I use timelinemax for the initial tweens on each page) the point is different so the tween seems off balance compared to the original tween. I put a trace statement in my getNewPoint function and I noticed that it doesn't get recalled when I subsequently do additional _timeline.restart(). Now, I've had a look at the DynamicProps plug in, and I think my solution lies there, but I can't work out the syntax to get it working with a new dynamic point. I've tried this... _timeline.insert( TweenMax.to(_over, 0, {alpha:0, transformAroundPoint:{dynamicProps:{point:getNewPoint}, scaleX:0.9, scaleY:0.9, shortRotation:{rotation:20}}}) ) or/and _timeline.insert( TweenMax.to(_over, 0, {alpha:0, dynamicProps:{transformAroundPoint:{point:getNewPoint}, scaleX:0.9, scaleY:0.9, shortRotation:{rotation:20}}}) ) But both throw errors, and I'm a little bit unsure of the correct syntax or even if what I'm doing is possible. Any help is greatly appreciated, thanks. Ken.
×
×
  • Create New...