1 Reply Latest reply on Feb 24, 2015 7:40 PM by resdesign

    Animate to custom variable

    barryh46566004

      Hello,

       

      I'm trying animate a bar chart. I want to scale the bars vertically from a value of 0 to a certain height defined by a variable. Is there any way I can do this?

       

      My initial thought was to create a symbol with a bar keyframed from 0 to 1 (100%), but then somehow change that final value using code. This way I could have different sets of data and present them with a click of a button.

       

      I can think of many other uses for this, perhaps a user selects a value from options on the screen and an object rotates or moves by that value. This would save having to create animations for each different option. Is this possible?

       

      Many thanks

       

      Barry