1 person found this helpful
Understanding mathematics, especially basics like percentages, is an integral part of programming. If 50 is supposed to be 50%, then you change it to a percentage value (0.5) and assign that as the scaleY property of the bars. If you want to display relative numeric values, then you calculate them and use textfields tot display them. Whenevr the values change you reassign the new values to the textfields.
One very simple method is to just draw a rectangle with 80% green and 20% red. Make it a movieclip. Then you can just change the scaleX or scaleY property of that movieclip to make its length or height match the selected number. The ratio of red to green doesn't ever change, just the selected number.
Hey nice one guys!
I will make it so!