Return to Snippet

Revision: 20110
at November 7, 2009 19:34 by adrianparr


Initial Code
private function percentToValue($percent:Number, $min:Number, $max:Number):Number {
	var myValue:Number;
	var difference:Number = $max - $min;
	myValue = (difference * $percent) + $min;
	return myValue;
}

Initial URL

                                

Initial Description

                                

Initial Title
AS3 Convert a Percentage to a Value

Initial Tags

                                

Initial Language
ActionScript 3