Share Posted November 25, 2014 Hi guys, so about a year ago i used teenmax v 1.12, and it worked fine. I updated to the latest version somehow the same code doesn't work anymore. Can someone point me to the new changes in the codes. Or maybe if my code is wrong.Thx. TweenMax.to($("#cover"), 5, {css:{alpha:0}}) The above is the code. If i replace v 1.14 to the old version, somehow it works. By the way i'm using this in adobe Air HTML. Link to comment Share on other sites More sharing options...
Share Posted November 25, 2014 Hi yudhie_z_k autoAlpha is correct , and you don't need to use css:{} anymore : TweenMax.to($("#cover"), 5, {autoAlpha:0}) Link to comment Share on other sites More sharing options...
Share Posted November 25, 2014 Sorry to hear you are having problems. Your code that worked with 1.12.0 is fully compatible with 1.14.2 http://codepen.io/anon/pen/raVmep the css{} object is optional, but will still work. technically, opacity is the css property that is being changed with alpha, but Flash users are used to alpha, so we left it in. autoAlpha manages the visibility while tweening the opacity. ' Can you provide a demo that illustrates the issue outside of AirHTML? I'm not at all familiar with that. 1 Link to comment Share on other sites More sharing options...
Author Share Posted November 28, 2014 I'm really really sorry for the late reply. I kept on looking on my account and topics there, and tought there was no answer. I'm really really sorry. Well from the command prompt. The error i got is as below: TypeError: Result of expression 'e.style' [null] is not an object. at app:/assets/app/js/TweenMax.min.js : 15 at app:/assets/app/js/TweenMax.min.js : 15 at app:/assets/app/js/TweenMax.min.js : 16 at app:/assets/app/js/TweenMax.min.js : 16 at app:/assets/app/js/TweenMax.min.js : 16 at app:/assets/app/js/TweenMax.min.js : 16 at app:/assets/app/js/TweenMax.min.js : 17 I use command prompt to run the app. Link to comment Share on other sites More sharing options...
Share Posted November 30, 2014 It almost sounds like you're trying to animate either a null object or an object that's not a DOM element (thus, the target's "style" property is null). Pretty tough to diagnose blind, though. Like Carl, I'm unfamiliar with Air HTML. If you're still having trouble, the best thing to do would be to create a reduced test case in codepen or something. Or at the very least, try running it with the production (uncompressed, non-minified) version of TweenMax and tell us what line the error is on. That might give us a clue, but it's still gonna be tough to diagnose without seeing it in context. I wonder if it's a problem with the Air HTML stuff you're using? Link to comment Share on other sites More sharing options...
Author Share Posted December 1, 2014 Ok, i'm going to try the non-minified one. I'll get back as soon as i can. But so far everything is fine (since i'm using the old version one, v 1.12). 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