Farzanmc
Content Type
Profiles
Forums
Store
Blog
Product
Showcase
FAQ
Downloads
Posts posted by Farzanmc
-
-
Hi.
I declarevar cacTimeline;
as global variable.
I then use it like this in function1 for example :function1 () { cacTimeline = new TimelineMax(); cacTimeline.to($linePath,0.5,{height:300}); ...... }
I then want to reverse it in function2 and have a onReverseComplete or some callback at the end. But for the sake of my app , I have to append this callback in function2 , not in the object declaration.
function2 () { cacTimeline.addCallback(callback_function_name,0); cacTimeline.reverse(); }
Fires the callback_function_name twice. One at the start of the tween , one at the end of the sequence.
function2 () { cacTimeline.addCallback(callback_function_name,cacTimeline.totalDuration()); cacTimeline.reverse(); }
callback_function_name never fires.
Can anyone help me.
I'm new to this , maybe there is a better solution for this.
-
Hi guys, i have a problem with easing on drag and rotation the circle, would you pleaaaaaaaaaaaaaaaseeeeeeeeee read this thread i wrote on kirupa ?
http://www.kirupa.com/forum/showthread.php?t=355939
Thank you soooooooooooooooooooooooooooo much for any help.
TimelineMax reverse callback problem
in GSAP
Posted
I don't believe it. It works like a charm.
I tested the 3 of them with sending parameters also. They all works just fine.
It's so look like OOP and I'm so happy to use it. Makes me feel I'm still on AS 3.0
Thank you Jack. you saved me tons of codes.
For any one else who may have the same problem , to complete this forum, I'll write the callbacks with Parameters.
And also for any one who has the same problem as me, you should not write the callback function with " () " , you just write the name of the function and the separately the parameters.