I have a problem accessing a memberfunction of a class I made.
Simplified, this is the class:
class class_ANIMATION {
// Define variables here
// Constructor here
// Member functions here:
function cfn_Play():Void{
trace ("cfn_Play was called");
}
}
This creates the class-instance cl_AVATAR:
var cl_AVATAR:class_ANIMATION = new class_ANIMATION();
So far so good. Heres where the problem arises - when trying to call the member-function cfn_Play() from the FLA-file:
cl_AVATAR.cfn_Play();
That should work, right?