Jump to content
GreenSock

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

Search the Community

Showing results for tags 'random label'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • GreenSock Forums
    • GSAP
    • Banner Animation
    • Jobs & Freelance
  • Flash / ActionScript Archive
    • GSAP (Flash)
    • Loading (Flash)
    • TransformManager (Flash)

Product Groups

  • Club GreenSock
  • TransformManager

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests

Found 1 result

  1. 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
×