Return to Snippet

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


Initial Code
private function valueToPercent($value:Number, $min:Number, $max:Number):Number {
	var myPercent:Number;
	var difference:Number = $max - $min;
	myPercent = (($value - $min) / difference);
	return myPercent;
}

Initial URL

                                

Initial Description

                                

Initial Title
AS3 Convert a Value to a Percentage

Initial Tags

                                

Initial Language
ActionScript 3