Jump to content
Search Community

CantinaDan

Members
  • Posts

    13
  • Joined

  • Last visited

CantinaDan's Achievements

0

Reputation

  1. Oh my gosh, thank you, Carl! For whatever reason, I DID have a bunch of extra frames on a number of layers. Deleted them all and I'm back in business. Thanks so much!
  2. Hi! Forgive my rudimentary coding skills and understanding. I'm building out a small banner ad. Very straighforward fades in and out. For some reason this animation keeps resetting to the beginning before its done playing. Can anyone troubleshoot my code and see if I'm missing something? Thanks so much! It seems to be jumping to the beginning a few lines into // phase 2: function repeatAd(e:Event=null):void { whiteBox_mc.scaleX=.1; whiteBox_mc.scaleY=.1; copy1_mc.scaleX=.2; copy1_mc.scaleY=.2; copy3_mc.scaleX=.2; copy3_mc.scaleY=.2; copy4_mc.scaleX=.2; copy4_mc.scaleY=.2; copy5_mc.scaleX=.2; copy5_mc.scaleY=.2; copy6_mc.scaleX=.2; copy6_mc.scaleY=.2; var theArray:Array = new Array(bkgd2_mc, copy1_mc, copy2_mc, copy3_mc, copy4_mc, copy5_mc, copy6_mc, copy7_mc, DMBlogo_mc, greyBox_mc, learnMore_mc, whiteBox_mc); for (var i:int = 0; i < theArray.length; i++) { theArray[i].alpha = 0; } var imageAni1:TimelineLite = new TimelineLite({onComplete:repeatAd}); // phase 1 imageAni1.append(TweenLite.to(whiteBox_mc, 1, {alpha: .8, scaleY: 1, scaleX: 1, ease:Expo.easeOut, delay:1})); imageAni1.append(TweenLite.to(copy1_mc, 1, {alpha: 1, scaleY: 1, scaleX: 1, ease:Expo.easeOut}), -.5); imageAni1.append(TweenLite.to(copy1_mc, 1, {alpha: 0, ease:Expo.easeOut}), 1); imageAni1.append(TweenLite.to(copy2_mc, 2, {alpha: 1, ease:Expo.easeOut}), -.5); // phase 2 imageAni1.append(TweenLite.to(bkgd2_mc, 2, {alpha: 1, ease:Expo.easeOut})); imageAni1.append(TweenLite.to(copy3_mc, 2, {alpha: 1, scaleY: 1, scaleX: 1, ease:Expo.easeOut}), -.5); imageAni1.append(TweenLite.to(greyBox_mc, 2, {alpha: 1, ease:Expo.easeOut}), -2); imageAni1.append(TweenLite.to(copy3_mc, .5, {alpha: 0, ease:Expo.easeOut})); imageAni1.append(TweenLite.to(copy4_mc, 2, {alpha: 1, scaleY: 1, scaleX: 1, ease:Expo.easeOut})); imageAni1.append(TweenLite.to(copy5_mc, 2, {alpha: 1, scaleY: 1, scaleX: 1, ease:Expo.easeOut})); imageAni1.append(TweenLite.to(copy6_mc, 2, {alpha: 1, scaleY: 1, scaleX: 1, ease:Expo.easeOut})); } repeatAd();
  3. Hello! I've created a small animation sequence in a Nested Timeline. I've interspersed this at various points in my main Timeline but only the last instance actually plays. Can you only call a Nested Timeline once? Thanks!!!
  4. I'm working on a Tweening sequence that I've built in TimelineLite. Goes kinda like this: function rockOn():void { var setA:TimelineLite = new TimelineLite({onComplete:rockOn}); setA.append(TweenLite.to(typeA_mc, 1, {alpha:1})); setA.append(TweenLite.to(typeA_mc, 2, {alpha:0}), 2); setA.append(TweenLite.to(backgroundA_mc, 2, {alpha:0}), -2); setA.append(TweenLite.to(typeB_mc, 1, {alpha:1})); setA.append(TweenLite.to(typeB_mc, 2, {alpha:0}), 2); setA.append(TweenLite.to(backgroundB_mc, 2, {alpha:0}), -2); setA.append(TweenLite.to(typeC_mc, 1, {alpha:1})); setA.append(TweenLite.to(typeC_mc, 2, {alpha:0}), 2); setA.append(TweenLite.to(backgroundC_mc, 2, {alpha:0}), -2); setA.appendMultiple(TweenMax.allTo([backgroundA_mc, backgroundB_mc, backgroundC_mc], .01, {alpha:1})); } As all of that is happening I want another Tween to happen that starts as soon as this one starts and has its duration set to the duration of setA, whatever that ends up being. The Tween I want to overlay looks like this: var SW:TimelineLite = new TimelineLite(); SW.append(TweenLite.to(SW_mc, .01, {x:-350})); SW.append(TweenLite.to(SW_mc, 20, {x:938})); What would be the best way of accomplishing that? Is there a way I can insert this additional Tweening sequence in the original Timeline? Thanks VERY much!
  5. Just one more question related to this I'd like to use the number that is calculated in my distance vars as a relative amount to move a movieClip in my TimelineLite. (I actually just recently realized that by putting a number in quotes it moves it that amount of pixels. Yeah, I'm slow.) If I have the actual number in quotes it functions properly. But if I put the var in quotes ("distanceV") it doesn't work properly. In this case it doesn't travel far enough? If I trace "distanceV" and "distanceH" I get the proper number in the output. var distanceV:Number = stage.stageHeight + wipe1_mc.height; var distanceH:Number = stage.stageWidth + wipe2_mc.width; rockOn(); function rockOn():void { var imageAni:TimelineLite = new TimelineLite({onComplete:resetPositions}); imageAni.append(TweenLite.to(wipe1_mc, .3, {y:"distanceV", delay:2, ease:Linear.easeNone})); imageAni.append(TweenLite.to(mask1_mc, .3, {y:"distanceV", ease:Linear.easeNone}), -.3); imageAni.append(TweenLite.to(wipe2_mc, .3, {x:"542", ease:Linear.easeNone}), 2); imageAni.append(TweenLite.to(mask2_mc, .3, {x:"542", ease:Linear.easeNone}), -.3); imageAni.append(TweenLite.to(wipe3_mc, .3, {y:"-674", ease:Linear.easeNone}), 2); imageAni.append(TweenLite.to(mask3_mc, .3, {y:"-674", ease:Linear.easeNone}), -.3); imageAni.append(TweenLite.to(wipe4_mc, .3, {x:"-542", ease:Linear.easeNone}), 2); imageAni.append(TweenLite.to(mask4_mc, .3, {x:"-542", ease:Linear.easeNone}), -.3); }
  6. Yes! Thank you, Jack. I was fiddling around with it and did find that if I put, like, .1 for the duration it solved the issue. Thanks for clueing me into the immediateRender:false option. I'll go with that!
  7. For some reason the code below is not functioning the way I assume it should. I'm sure the mistake is mine but I can't figure it out. I want the pic1_mc to disappear after the wipe1_mc does its thing. ie - first a 1.5 sec delay, then a .5 sec wipe, then the pic's alpha goes to zero. But when I test the movie the pic's alpha is zero right from the get go. Can't figure out why its not waiting until after that first append line of code. Any insight would be much appreciated! var imageAni:TimelineLite = new TimelineLite(); imageAni.append(TweenLite.to(wipe1_mc, .5, {y:324, delay:1.5})); imageAni.append(TweenLite.to(pic1_mc, 0, {alpha:0}));
  8. Perfect, that solved it. Thanks much! More than once. (I'm kinda slow.)
  9. Hi. I'd like to be able to target a series of movieclips based on the name of the clip that was clicked. I tried this but it didn't work: TweenLite.to(e.currentTarget.name + "Arrow", .3, {x:1200}); When I trace e.currentTarget.name + "Arrow" I get the appropriate name string. Here is the output error: ReferenceError: Error #1069: Property x not found on String and there is no default value. On an unrelated note: I've just used TimeLineLite for the first real time. OMG - it rocks hard! So many times I'd program a complex series of tweens only to have someone want to change an early timing issue. I'd then have to laboriously recalculate all my delays. THANK YOU!
  10. Ah, got it by reading through some of the other threads. So if you put a value in quotes it becomes relative to the objects current position? New code: var timeline:TimelineLite = new TimelineLite(); timeline.insertMultiple( TweenMax.allTo([type1_mc, type2_mc, type3_mc, type4_mc, type5_mc, type6_mc, type7_mc, type8_mc], 1, {delay:6, y:"-50"}), timeline.duration );
  11. I've got a bunch of movieclips on the stage in different positions. I'd like to have them all jump at the same time and the same relative distance. I came up with this code but "target" is an undefined property. Could someone help me out? Thanks much. var timeline:TimelineLite = new TimelineLite(); timeline.insertMultiple( TweenMax.allTo([type1_mc, type2_mc, type3_mc, type4_mc, type5_mc, type6_mc, type7_mc, type8_mc], 1, {delay:6, y:target.y + 10}), timeline.duration );
×
×
  • Create New...