Okay, so I'm building a small game in AS3, and I have a lot of helper functions, so I've created Helper.as, just to clean it up.
Now, my problem is that I'm not allowed to access these functions. Here is what I have so far.
Helper.as
//
public static function colorTransformer(obj, color)
{
var colorTransform:ColorTransform = new ColorTransform();
colorTransform.color = color;
obj.transform.colorTransform = colorTransform;
}
And calling the function in Main.as
import Helpers;
Helpers.colorTransformer(myObj, myColorVar);
ERRORS:
Helpers.as, Line 24 1046: Type was not found or was not a compile-time constant: ColorTransform. Helpers.as, Line 24 1180: Call to a possibly undefined method ColorTransform.