# Error:1046

**URL:** <https://forum.kirupa.com/t/error-1046/313543>\
**Category:** flash\
**Created:** [September 2, 2010, 8:55am UTC](https://forum.kirupa.com/t/error-1046/313543 "2010-09-02T08:55:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![glisando](https://avatars.discourse-cdn.com/v4/letter/g/e47c2d/32.png) [@glisando](https://forum.kirupa.com/u/glisando)\
**Post date:** [September 2, 2010, 8:55am UTC](https://forum.kirupa.com/t/error-1046/313543/1 "2010-09-02T08:55:54Z")

</div>

Hi guys…

I am getting the following two errors:

1046: Type was not found or was not a compile-time constraint: GetSet.  
1180: Call to a possibly undefined method GetSet.

I believe if 1046 is solved, 1180 will no longer be a problem. Here are the codes:

File: GetSet.FLA:

```auto
 
var myGetSet: GetSet = new GetSet();
myGetSet.publicAccess = "hello";
trace(myGetSet.publicAccess);

```

File: Driver.as:

```auto
 
package
{
     public class GetSet
     {
          private var privateProperty:String;
 
               public function get publicAccess ( ) String
               {   
 
                    return privateProperty;
               }
 
               public function set publicAccess():String
               {    
 
                    privateProperty = setValue;
 
               }
     }
}

```

Both these files are in the same folder. I dont understand why I am getting this error as the class ‘GetSet’ already exists.
