I have a custom package:
package ma601jc {
public class stringUtils {
public function stringUtils() {
}
public function testFunction(input:String):String
{
return input;
}
}
}
I import it into a different class in the same folder:
import ma601jc.stringUtils;
But when I use the testFunction() I get this error:
…anothercalss.as, Line ## 1120: Access of undefined property stringUtils.
To use the function I type:
trace(stringUtils.testFunction('Hello World'));