# Confused about classes and packages

**URL:** <https://forum.kirupa.com/t/confused-about-classes-and-packages/294024>\
**Category:** Uncategorized\
**Created:** [August 7, 2009, 2:26am UTC](https://forum.kirupa.com/t/confused-about-classes-and-packages/294024 "2009-08-07T02:26:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![spyderfx](https://avatars.discourse-cdn.com/v4/letter/s/c2a13f/32.png) [@spyderfx](https://forum.kirupa.com/u/spyderfx)\
**Post date:** [August 7, 2009, 2:26am UTC](https://forum.kirupa.com/t/confused-about-classes-and-packages/294024/1 "2009-08-07T02:26:26Z")

</div>

I’m just now trying to tackle learning about packages and classes in AS3. I don’t understand how the file path works for calling a class and using functions within the class.

In a file called Tracer.as I have:

```auto

package com.packages {
    public class Tracer{
        public static function traceWords() {
            trace("Testing this ****");
        }
    }
}

```

My .fla and .swf are in a file called “flash”

The Tracer.as file is in “flash/packages”

So in my .fla I have this code on the timeline:

```auto

import com.packages.Tracer;

com.packages.Tracer.traceWords();

```

I just get errors saying

1172: Definition com.packages:Tracer could not be found.  
1120: Access of undefined property Tracer.

All of this is being done locally on my computer btw if that matters.
