sv en en en en en en en en en en en en en en en fa en en fr hbs_lat en en en es en en en ms en de en fr en en en ca en en en en en en en ms ms en en sv en en en en en en en en en en en en en en en it en nb en it en en en en en en en en en en en nb en en en en en en en en en en en nb en en en en en en en en en en en nb en en en en en en en en en pt ca nb en pt ca en en en en en en en en pt ca nb en pt ca en en en en en en en en en en nb en en en en en en en en en en en en nb en en en en en en en en en en en en en en ms en eu en en en en en fr en en en fr en fr en es en es en en en en en en en fr cv es tr es en en en en ms en en en en en en fr en hbs_lat en en en en en en en fr cv es tr es en en en en de en en en ca en en en en en
Draggable - How to check if Object is disable or not
FAKS replied to FAKS's topic in GSAP
Nice! Thank you Jack, you and your team did an amazing work Bravo!
Thank you Jonathan. You right, I tried, your solution could do the trick If there is no other way to check the state of a draggable div, I will do like this. Have a good day!
FAKS posted a topic in GSAP
Hello, I am using your amazing Draggable classes to drag and drop divs and I'm looking for a way to detect if a draggable object is enabled or not... This is my list of draggables divs: var DraggableList = Draggable.create(myDivsArray, { type:"xy"}); After some user actions, I need to disable divs, so I use: DraggableList[divIndex].disable(); But how can I check if a div is enabled or not? // Something like that for example: if(DraggableList[divIndex].enabled){ // this div is enabled for the drag... }else{ // this div is NOT enabled for the drag... } I checked the Draggable object and I didn't se any "enabled" properties... Do you know if there is way to check the state of a Draggable div? If there isn't, it could be great to add this feature to the Draggable object. Thanks!
Last v12 release problem with old swf using v11
FAKS replied to FAKS's topic in GSAP (Flash)
Thanks for your answer Carl. I will do it like you said.
Last v12 release problem with old swf using v11
FAKS posted a topic in GSAP (Flash)
Hello, I created a FLA file few years ago using your v11 release. Last week I downloaded your v12 release and started new projects. But I got a problem when I reopened and reexported my old FLA file (built with v11). Some stuff are broken during the animation, maybe because of the "overwrite:" parameter set to "true" or "false" but I'm not sure... So I need : - to use the v11 release for my old project (because I can't fix all bugs in it). - to use the v12 release for my new project. In all my FLA files (old and new), I import your greensock classes from a unique folder "AS3-classes". So I never put the "com/greensock/" folder to the root of my swf. My question is : How can I import the v11 for my old project and the v12 for my new project ? Is it possible for those folders to cohabitate ? Thanks a lot for your help.
TimelineMax delayedCall a function with other TweenMax
FAKS replied to FAKS's topic in GSAP (Flash)
Thank you Jack, You are right, it's exactly what it's supposed to do Of course, I thought about your solution and for this particular case I can do it this way. But I would find another system because since I use your tweenMax Classes I took the habits to use a lot of delayedCall for big animations with lot of tweenMax... For example, imagine I have to play a sound at 3 seconds inside my timeline. So I need to call a function at 3 seconds. If I set the start time of my timeline a 5, does the sound will be played immediately? Which code would you use for this case? PS : thanks for the V12 trick, I will switch!
function with other tweenmax
TimelineMax delayedCall a function with other TweenMax
FAKS posted a topic in GSAP (Flash)
Hello, I'm using the TimelineMax ans it works great. But I have a problem with something. I want to use a delayedCall function. In this function, I have other tweenMax. Something like this : var tl:TimelineMax = new TimelineMax(); tl.insert(TweenMax.to(camion, 8,{x:700, ease:Linear.easeNone})); tl.insert(TweenMax.to(nuage, 20,{x:"-100", ease:Linear.easeNone})); tl.insert(TweenMax.delayedCall(3,enleverTexte)); // function enleverTexte() { TweenMax.to(txt1, 0.7,{y:"-40", alpha:0, ease:Quint.easeIn}); TweenMax.to(txt2, 0.7,{y:"-40", alpha:0, ease:Quint.easeIn, delay:0.2}); } Now, I want to start my animation with a gap starting. Like this : tl.currentTime = 5; Normaly, I should not see the movieClip txt1 ans txt2 when my animation start (because I launch the animation at 5 seconds, and inside my timeline I hide the mc txt1 and txt2 at 3 seconds). But it doesn't works... When the animation start, even if I start at 15 seconds, I see the mc txt1 and txt2 and the function enleverTexte() is executed... How can I do this kind of manipulation ? Thank you.
function with other tweenmax
killAll() only in a loaded mc
FAKS posted a topic in GSAP (Flash)
Hello, I have a problem with TweenMax.killAll(). I have 2 swf. swf_parent and swf_child. I load swf_child in swf_parent. I have a function in my swf_child killing all tweens (delayed, tweens, etc). It works great. But the problem is that kill also the tweens of the swf_parent. And I don't want to do that. Can I launch a function in my swf_child killing only his own tweens but not the tweens of his parent ? Thank you !
“Sincerely, the people behind GSAP are sorcerers”
“I really need to commit to using GSAP more in my daily work & demos. I love pushing native CSS animation as far as I can but every time I use GSAP I’m just blown away. Keep up the great work!”
“GSAP and CSS Transitions: I've done both, and its like comparing an F16 to a horse. Take like 10 minutes to try.”
“I will never say it enough but @greensock you are absolutely amazing and you have no idea how much time and brain cells I have spared thanks to you 🥰”
“The depth of GSAP blows me away like all the time. It seems like I stumble on something new and amazing every time I peek at the docs.”
“Truly, you folks on this forum are the nicest, least judgmental, helpful people I've ever encountered.”
“GSAP should be the default when it comes to Javascript animations. It should literally be part of the next Javascript update.”
“I’ve long felt like GSAP is the best kept secret in JavaScript.”
“With the incredible functionality, and the mind-blowing customer service, the price of Club GreenSock admission is well worth it!”
Sign Up For Our Newsletter
Get the latest updates on GreenSock products, exclusive offers, and more right in your inbox.
Your information will always be kept confidential.
Thanks for signing up!
Now you'll begin receiving the latest GreenSock updates, exclusive offers, and more right in your inbox. Welcome aboard.