This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private function map(value:Number, low1:Number, high1:Number, low2:Number = 0, high2:Number = 1):Number { | |
//El valor, valor min del original, valor máx del original, valor min, valor max | |
//myBox.x = map(mouseX, 0, 550, 100, 200);v | |
//http://lab.joelgillman.com/archives/87_map-function | |
//if the value and the 1st range low are equal to | |
// the new value must be low2 | |
if (value == low1){ | |
return low2; | |
} | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var description:XML = describeType(miObjeto); | |
trace(description); |
NewerOlder