Jump to content
GreenSock

Search In
  • More options...
Find results that contain...
Find results in...

snowscarecrow

Members
  • Posts

    11
  • Joined

  • Last visited

Everything posted by snowscarecrow

  1. Hi Carl That was exactly what I was looking for! Thanks a bunch! :grin:
  2. Hi Im trying to make an animation with random number to animate in different time in timlelinemac, so long everything is fine. Then I have so sync several animations and make labels at different time stops. The problem Im having after that is - I made random numbers between 1-11 and then I want to make a tween to a label with a number "1", "2" and so on. var tlCC:TimelineMax = new TimelineMax({paused:true}); tlCC.addLabel("1",1.2); tlCC.addLabel("2",2.14); tlCC.addLabel("3",3.14); tlCC.append(animateInReverse(mc_02)); btn.onRelease = function() { tlCC.timeScale = 10; var kalle = random(11) + 1; tlCC.tweenTo(kalle); // How do I get the random number kalle between 1-11 to animate to the same variable 1 to 11. // As it is now it's animating in time not to a variable with a timename. // couldn't make a dynamic reference with [] either... trace(kalle); }; Or should I consider a different solution, like store all the variables in a array and random through all of them and tweenTo that array? Probably easier to understand if you look at the attached file. Really stuck here, and help would be great random_label_question.zip
  3. Hi Carl A huge thank you for the help, that was exactly what I was trying to achieve. You are right, animateIn and Out methods are great, just discovered that way to animate. Cheers
  4. Hi I have made a banner with in and out functions connected to a timelinemax in AS2 Everything works smooth, the problems is that i want it to loop seamlessly, there is a glitch between the last animation and the first. Any hints on how to solve this? See attached file. Thanks banner_loop.zip
  5. Thanks guys!! Seems like the code I pasted from the forum was wrong. I knew It was easy, you guys are great, talk about fast help! Thanks a bunch!
  6. test_3.zip Hi Just became a member and are trying to get the Motion blur to work without luck. This is probably the easist thing in the world but I just can't make it work. Grateful for any hints on this, have searched the forums, pasted some code but no luck yet. Thanks.
  7. Great!! Now everything is a bit more clear for me, it works and I can move on experimenting with the code. Thanks a lot Carl for explaining!
  8. tween_test.fla.zip Heres the file. Zipped in mac. Really appreciate the help, Im quite stuck on this... I have the latest version of the platform.
  9. Hi I just cant get this to work,neither with TimeLineLite or TimelineMax, what am I doing wrong? I want it to loop - a couple of times or infinite.( replay -1, from what I've seen on the forums), It plays only once - and then stops. This is my code import com.greensock.*; import com.greensock.easing.*; mc_01.stop(); mc_02.stop(); mc_01._alpha = 0; mc_02._alpha = 0; var myTween:TimelineLite = new TimelineLite({onComplete:repeatTimeline}); //var myTween:TimelineMax = new TimelineMax({repeat:2}); myTween.append(new TweenMax.to(mc_02, .3, {frameLabel:"endFrame", _alpha:100, ease:Cubic.easeIn, delay:3})); myTween.append(new TweenMax.to(mc_01, .3, {frameLabel:"endFrame", _alpha:100, delay:2})); myTween.append(new TweenMax.to(mc_02, .3, {frameLabel:"startFrame", _alpha:100, ease:Cubic.easeIn, delay:5})); myTween.append(new TweenMax.to(mc_01, .3, {frameLabel:"startFrame", _alpha:100, delay:4})); function repeatTimeline() { myTween.restart(); } This is one way i found out to make it loop for small banners(example it youre making small banners with around 20 kb) import com.greensock.*; import com.greensock.easing.*; mc_01.stop(); mc_02.stop(); mc_01._alpha = 0; mc_02._alpha = 0; function myFunction() { var myTween:TimelineLite = new TimelineLite(); myTween.append(new TweenMax.to(mc_02, .3, {frameLabel:"endFrame", _alpha:100, ease:Cubic.easeIn, delay:3})); myTween.append(new TweenMax.to(mc_01, .3, {frameLabel:"endFrame", _alpha:100, delay:2})); myTween.append(new TweenMax.to(mc_02, .3, {frameLabel:"startFrame", _alpha:100, ease:Cubic.easeIn, delay:5})); myTween.append(new TweenMax.to(mc_01, .3, {frameLabel:"startFrame", _alpha:100, delay:4, onComplete:myFunction})); } myFunction(); Thanks for any help on this
  10. Hi Carl and thanks for clarifying this. If I'm using from, to, or fromTo - then I can skip using "new"? All of a sudden everything stopped working, including all of my earlier files form today...nothing helped - downloaded the greensock package again then everything is back on track ...puh..is this happening often to users? Anyway, this i great!! really like this system. Thanks for the help!
  11. Hi This reverse button is working for me: import com.greensock.*; import com.greensock.easing.*; var myTween:TweenMax = new TweenMax(mc_02, 1, { _y:250}); //myTween.pause(); btn_01.onRelease = function():Void { myTween.reverse(); trace("btn_01"); }; ---------------- When I add a from or fromTo or to - the reverse isn't working, does anybody now why? Like this: import com.greensock.*; import com.greensock.easing.*; var myTween:TweenMax = new TweenMax.from(mc_02, 1, { _y:250}); //myTween.pause(); btn_01.onRelease = function():Void { myTween.reverse(); trace("btn_01"); }; Sorry for the rookie question, just starting out, seems like a great add-on to flash anyway. Cheers
×