# Error #1172 - CS4 Import Trouble

**URL:** <https://forum.kirupa.com/t/error-1172-cs4-import-trouble/301188>\
**Category:** flash\
**Created:** [December 4, 2009, 6:52pm UTC](https://forum.kirupa.com/t/error-1172-cs4-import-trouble/301188 "2009-12-04T18:52:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![talon\_swift](https://avatars.discourse-cdn.com/v4/letter/t/8c91f0/32.png) [@talon\_swift](https://forum.kirupa.com/u/talon_swift)\
**Post date:** [December 4, 2009, 6:52pm UTC](https://forum.kirupa.com/t/error-1172-cs4-import-trouble/301188/1 "2009-12-04T18:52:32Z")

</div>

Hey all,

I’m having trouble importing a very simple class as I’m new to CS4 and AS3.

I set a source path in my document’s AS3 publish settings as ‘com’. I have a folder structure: com/example/ at the root of my document’s project folder.

The source file in the example folder is TestClass.as with source:

```auto

package com.example {
    public class TestClass {
        public function TestClass() {
            trace("Hello World!");
        }
    }
}

```

And on the first frame of my document’s main timeline I have this import statement:

```auto

import com.example.TestClass;

```

When I compile the FLA file I get two compiler errors stating the same thing:  
1172: Definition com.example:TestClass could not be found.

I’ve Googled and massaged the settings as many ways as I can think of but all to no avail. I’ve even read a few threads here about the problem and while those people had their issues resolved, mine still remains.

Any help is greatly appreciated.
