Share Posted December 15, 2015 Hey there. In my Project I use allot of Tweens. At a specific point it wish to reset all current tweens excluding a select few. I wish to store a variable on these Tween to exclude so when resetting all the current tweens these can be tracked an avoided. I've tried this sofar but when assigning the failed tag SStimer return undefined. Yet I can access this tween when using TweenMax.getAllTweens()[index]. Am i Missing something major here? trigger.SStimer = new TimelineMax({delay: 180}) .call(function () { console.log('Slow selection fired'); delete this }); trigger.SSTimer.failedTag = true; Link to comment Share on other sites More sharing options...
Share Posted December 16, 2015 Sorry, but I'm having difficulty understanding your problem and how the code you provided relates. I believe a simple CodePen demo would be very helpful: http://greensock.com/forums/topic/9002-read-this-first-how-to-create-a-codepen-demo/ You mentioned flagging tweens but you seem to be trying to assign a variable to a timeline. I believe you should be ok adding a custom data object to your tween like var t = TweenLite.to("h2", 3, {x:200, data:{isSafe:true}}); console.log("isSafe = " + t.vars.data.isSafe); 2 Link to comment Share on other sites More sharing options...
Share Posted December 16, 2015 Not sure what you are trying to do either. Are you just trying to delete timelines that you've flagged like this... See the Pen ce25436df2475506b91ed90f862ad9db?editors=001 by osublake (@osublake) on CodePen 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now