My document class:
package {
import math.mathFuncs;
import flash.display.MovieClip;
public class project extends MovieClip {
public function project () {
var myArea:area = new area();
trace(myArea(2,5));
}
}
}
My math class:
class math.mathFuncs {
static function area(l:Number, h:Number) {
return l*h;
}
}
How would I use the area function from my master document class?