Jump to content
Search Community

TweenNewbie

Members
  • Posts

    3
  • Joined

  • Last visited

TweenNewbie's Achievements

0

Reputation

  1. Hello all, Sorry if this is a stupid question.....still new to all this. How do I calculate the total duration of my animation in seconds if I use the delay property? Do I just add the seconds I'm assigning to each line? Below is my code. Any help would be greatly appreciated! Thank you! import com.greensock.*; import com.greensock.easing.*; mini_mc.alpha = 0; amazonLogo_mc.alpha = 0; copy1_mc.alpha = 0; copy2_mc.alpha = 0; copy3_mc.alpha = 0; TweenMax.to(mini_mc, 2, {alpha:1}); TweenMax.to(artistName_mc, 1, {x:10.95}); TweenMax.to(title_mc, 2, {x:10.95}); TweenMax.to(line1_mc, 1, {x:49.25, delay:2}); TweenMax.to(copy1_mc, 1, {alpha:1, scaleX:0.45, scaleY:0.45, x:19.15, y:354.65, delay:2.5}); TweenMax.to(line2_mc, 1, {x:49.25, delay:3}); TweenMax.to(copy2_mc, 1, {alpha:1, scaleX:0.45, scaleY:0.45, x:33.1, y:434.3, delay:3.5}); TweenMax.to(line3_mc, 1, {x:49.25, delay:4}); TweenMax.to(copy3_mc, 1, {alpha:1, scaleX:0.53, scaleY:0.53, x:13, y:475.1, delay:4.5}); TweenMax.to(line4_mc, 1, {x:49.25, delay:5}); TweenMax.to(amazonLogo_mc, 2, {alpha:1, delay:5.5}); TweenMax.to(snow_1, 5, {y:650}); TweenMax.to(snow_2, 5, {y:650, delay:1}); TweenMax.to(snow_3, 5, {y:650, delay:2}); TweenMax.to(snow_4, 5, {y:650, delay:3}); TweenMax.to(snow_5, 5, {y:650, delay:4}); TweenMax.to(snow_6, 5, {y:650, delay:5}); myClickTag_btn.addEventListener(MouseEvent.MOUSE_UP, function(event: MouseEvent): void { var sURL: String; if ((sURL = root.loaderInfo.parameters.clickTag)) { navigateToURL(new URLRequest(sURL), "_blank"); } });
  2. Carl, thank you so much for your help! This totally works. I can't believe it was you who answered my question. I've been watching your tutorials on your site and am a big fan!! Yes, you're right, the conditional statements are a bit out of my league but I'll keep checking your site to see if you post a tutorial about it. Thanks again!
  3. Hello all, I'm new in Flash and have (I think) a simple question. I have 2 buttons that move a long movie clip to the right or left across the stage. What I'd like to do is to lock the buttons once a certain x position is reached so that the movie clip doesn't move once it reaches either the beginning or end of the movie clip length. This is the code I have so far: nxtBtn.addEventListener(MouseEvent.CLICK, _onClickNext); prevBtn.addEventListener(MouseEvent.CLICK, _onClickPrev); function _onClickNext(event: MouseEvent):void{ TweenMax.to(timeline_mc, 0.5, {x:"-960"}); } function _onClickPrev(event: MouseEvent):void{ TweenMax.to(timeline_mc, 0.5, {x:"+960"}); } I just don't know how to write an if/else statement. Any help will be much appreciated!! TweenMax_If_Else.zip
×
×
  • Create New...