Tomeo Posted November 8, 2009 Share Posted November 8, 2009 Alpha doesn't go from 0-100, it emidietly jumps to 100! Can someone tell me what is wrong? Thank you! var pictureLoader:MovieClipLoader = new MovieClipLoader(); var pictureLoaderListener:Object = new Object(); pictureLoader.addListener(pictureLoaderListener); pictureLoader.loadClip("mySwf.swf", mcPictureLoader); pictureLoaderListener.onLoadInit = function(targetPicture:MovieClip):Void { targetPicture._alpha = 0; TweenLite.to(targetPicture,.2,{_alpha:100, ease:Quad.easeIn}); }; Link to comment Share on other sites More sharing options...
GreenSock Posted November 9, 2009 Share Posted November 9, 2009 It's been a while since I worked with AS2 in depth, but have you tried using a trace() to make sure your targetPicture is what you think it is? I also remember there being issues with the onLoadInit getting called before the object was fully instantiated, so the _alpha property might be getting reset a millisecond after you set it to 0. In that case, try adding a slight delay before doing your tween. Or use TweenMax.fromTo() which allows you to set your starting and ending values. Link to comment Share on other sites More sharing options...
Tomeo Posted November 9, 2009 Author Share Posted November 9, 2009 Thank you,... FromTo and Delay is not working either. I tried this with custom fadeIn - onEnterFrame function and its working OK (alpha 0-100). TweenMax only works for me, when content is already in the browsers cache, or when I preview my swf without "simulate download". Otherwise, it looks like object properties are set to end values, when content is freshly loaded. My guess, I should start working in AS3 Link to comment Share on other sites More sharing options...
GreenSock Posted November 9, 2009 Share Posted November 9, 2009 I'd need to see an FLA that demonstrates the issue. I'm not aware of any problems in TweenLite/Max that could possibly cause this, but maybe you stumbled across something that nobody else did. I'd love to see an example in a super-simple FLA if you could post one. Again, please don't post your whole project - just isolate the issue in a separate, SUPER simple FLA. Don't forget to zip it before posting too. Thanks! Link to comment Share on other sites More sharing options...
Tomeo Posted November 9, 2009 Author Share Posted November 9, 2009 Try "simulate download" at lower bandwidth speed. Thanks for your time!!! Link to comment Share on other sites More sharing options...
GreenSock Posted November 10, 2009 Share Posted November 10, 2009 Aha! I believe I found the problem. Please download the latest version and let me know if that fixes it for you (it did when I tested it). http://www.tweenmax.com. Thanks for the sample FLA - that was very helpful. Link to comment Share on other sites More sharing options...
Tomeo Posted November 10, 2009 Author Share Posted November 10, 2009 Everything is working OK now. I just joined the GreenSock Club. It is the least I can do... Link to comment Share on other sites More sharing options...
GreenSock Posted November 10, 2009 Share Posted November 10, 2009 Everything is working OK now. I just joined the GreenSock Club. It is the least I can do... Hey, that's great! Thanks so much for the support. You didn't have to join, but I sure hope the membership serves you well and the bonus plugins make your life easier (and a little more fun). Cheers! Link to comment Share on other sites More sharing options...
Tomeo Posted November 10, 2009 Author Share Posted November 10, 2009 of course, I was going for the bonuses too 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