# Calling class-functions

**URL:** <https://forum.kirupa.com/t/calling-class-functions/51407>\
**Category:** flash\
**Created:** [May 12, 2004, 5:38pm UTC](https://forum.kirupa.com/t/calling-class-functions/51407 "2004-05-12T17:38:04Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Danneman](https://avatars.discourse-cdn.com/v4/letter/d/b19c9b/32.png) [@Danneman](https://forum.kirupa.com/u/Danneman)\
**Post date:** [May 12, 2004, 5:38pm UTC](https://forum.kirupa.com/t/calling-class-functions/51407/1 "2004-05-12T17:38:04Z")

</div>

I have a problem accessing a memberfunction of a class I made.

Simplified, this is the class:

```auto
 
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:

```auto
 
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:

```auto
 
cl_AVATAR.cfn_Play();

```

That should work, right?
