/ Published in: ActionScript 3
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
private function valueToPercent($value:Number, $min:Number, $max:Number):Number { var myPercent:Number; var difference:Number = $max - $min; myPercent = (($value - $min) / difference); return myPercent; }