birds4 Posted September 5, 2011 Share Posted September 5, 2011 Hi! I recently became a greensock member and love it so far. However, I don't have much time to experiment around with things since I am so busy. I have a few questions on how to achieve certain tweening effects (don't worry, they're nothing too complicated). I have access to all the plugins so that isn't an issue. 1. I have a few basic mcs that I want to be invisible from the beginning, and pop in one by one. My code works, but when I test the movie I can see all the frames for a split second (like the blink of an eye) before they disappear and play. I'm not sure if it's just my computer or if it's my code. I'm using tween from alpha of 0 like below: timeline.append(TweenLite.from(frame1_mc, 3, {alpha:0})); 2. SplitTextField is awesome, but how would you make a typewriter effect where each individual letter appears one by one with no special fading, resizing, or anything? 3. I was also wondering how to make an earthquake effect where an mc would shake around for a little bit before stopping. I thought I saw a plugin that can do that, but I forgot the name. Anyways, that's all I have for now. I'm kind of on a tight schedule as this Flash is due in a couple days. It doesn't even need to be in Flash, but I decided to do it because it helps me learn and it gives it an extra bang! Link to comment Share on other sites More sharing options...
Carl Posted September 6, 2011 Share Posted September 6, 2011 1: you shouldn't see the assets on stage at all. test this page: http://snorkl.tv/dev/from/ (do you see a blink?) that is a TimlineMax that just has a bunch of from() tweens in it. the timeline code looks like this: function doStuff() { clips = shuffleArray(clips); var i:int = clips.length; while (--i > -1) { timeline.append(TweenMax.from(clips[i], .3, {alpha:0})); } } all the movie clips are totally visible on the stage in flash/ 2: SplitTextField typewriter, just do a from() tween again with a 0-second duration.... from alpha:0 3: for your earthquake, maybe something like a rough ease http://www.snorkl.tv/2010/10/use-tweenl ... er-effect/ http://www.greensock.com/roughease/ Link to comment Share on other sites More sharing options...
birds4 Posted September 7, 2011 Author Share Posted September 7, 2011 Hi Carl, thanks for your reply. You're right about #1, it was just my computer being slow. It doesn't happen on another computer or online. And I think I got the text part working well enough. Yes, RoughEase was exactly the effect I was looking for. It works, but it moves my mc upwards after it finishes. I want it to stay in the center of the stage. How can I do this? Here's the code: TweenLite.to(bg1, 6, {y:0, ease:RoughEase.create(1.5, 200)}); Thanks in advance! Link to comment Share on other sites More sharing options...
Carl Posted September 7, 2011 Share Posted September 7, 2011 you could move it away real quick, and then roughEase it back OverwriteManager.init(2) //tween it away TweenLite.to(bg1, .5, {y:100)}); //tween it back after the first tween finishes (note delay) //make sure the y prop is the centered positioned you are seeking TweenLite.to(bg1, 6, {y:0, ease:RoughEase.create(1.5, 200), delay:.5}); 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