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