i remember seeing an example where one can assign additional functions to the math class.
Dose anyone know how exactly to do that?
I tried:
class Math {
function get phi():Number {
return (1+Math.sqrt(5))/2;
}
}
in a math.as
flash outputs
The class ‘math’ needs to be defined in a file whose relative path is ‘math.as’.
class math {