# Basic Custom classes errors

**URL:** <https://forum.kirupa.com/t/basic-custom-classes-errors/292369>\
**Category:** flash\
**Created:** [July 13, 2009, 5:06pm UTC](https://forum.kirupa.com/t/basic-custom-classes-errors/292369 "2009-07-13T17:06:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mothmann](https://avatars.discourse-cdn.com/v4/letter/m/71c47a/32.png) [@mothmann](https://forum.kirupa.com/u/mothmann)\
**Post date:** [July 13, 2009, 5:06pm UTC](https://forum.kirupa.com/t/basic-custom-classes-errors/292369/1 "2009-07-13T17:06:18Z")

</div>

I followed the tutorial on here ([http://www.kirupa.com/developer/as3/classes\_as3\_pg1.htm](http://www.kirupa.com/developer/as3/classes_as3_pg1.htm))  
I have 2 files. test.fla and test.as in the same folder. test.fla has one layer and one frame only. the code is place on this frame on the main timeline.

test.as code

```auto
package
{
public class Name
{
private var firstName:String;
private var lastName:String;
 
function Name()
{
 
}
 
public function SetFirstName(val:String):void
{
firstName = val;
}
 
public function SetLastName(val:String):void
{
lastName = val;
}
 
public function GetFullName():String
{
return firstName + " " + lastName;
}
}
}

```

test.fla code

```auto
var test:Name=new Name();

```

returns this

```auto
1046: Type was not found or was not a compile-time constant: Name.
1180: Call to a possibly undefined method Name.

```
