# Import library question

**URL:** <https://forum.kirupa.com/t/import-library-question/270119>\
**Category:** Uncategorized\
**Created:** [September 5, 2008, 9:29am UTC](https://forum.kirupa.com/t/import-library-question/270119 "2008-09-05T09:29:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![one\_way\_7](https://avatars.discourse-cdn.com/v4/letter/o/dec6dc/32.png) [@one\_way\_7](https://forum.kirupa.com/u/one_way_7)\
**Post date:** [September 5, 2008, 9:29am UTC](https://forum.kirupa.com/t/import-library-question/270119/1 "2008-09-05T09:29:25Z")

</div>

I’m trying to use code libraries made by other people. I don’t know if their called libraries, packages, or something else in AS3.

The problem I am running into is having my root being able to reference a library that is deeply located in the file structure.

For example i’ll be using a test ‘library’ .

```auto
package com.awebsitename.test 
{ 
   public class test
   {
        function test()
        {
             trace('helloworld');
        }
   }
}

```

File structure com/awebsitename/test

.fla first frame, root code.

```auto

import com.awebsitename.test ;

```

I get some sort of error like: “Definition com.awebsite:test could not be found.” It should just output ‘helloworld’. I have tried placing everything in a project, but to no luck.

Any thoughts? Thanks!  
:drink:
