Confused about classes and packages

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:


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:


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.