Use animate for that.
replace valueneeded with the number you need or from a variable or an array element.
Thanks so much for the reply, redesign.
Could you help me craft that line of code? (I used your suggestion, and it wasn't working). I am trying to hand-code all this on a button. There is a symbol on the stage named, "sum_bluerectangle" with a rectangle within named, "bluerectangle".
How would I target that "bluerectangle" to animate from its current width (say, 86%) to smoothly transition to (say, 34%) over a seconds time with an easeoutback? Since it is a bar graph, I need to anchor the left side of "bluerectangle" and grow only the right side. I will more than likely just hand-code the valueneeded rather than build an array (above my pay scale).
I really appreciate your time!
Your example totally works in 2015. jquery required was something I didn't know I had to do. I lost, however, how it could be wired to separate button on stage — and also control multiple bar graphs. I set up a simple sample file and commented on the button what I'd like to bars to do. Would you mind horribly to wire that up similar to your example?
From there, I think I can extrapolate out the rest of the construct with these few things shown. Thank you so much!
I will look at it later. I think that you would do well to have an array. It would make it much more simple of use $('each'). You can PM me your project or a sample that has all your bars and buttons so I can decide how is the best.
Will do. Thanks!