# Accessing a Class

**URL:** <https://forum.kirupa.com/t/accessing-a-class/297553>\
**Category:** flash\
**Created:** [October 5, 2009, 9:57am UTC](https://forum.kirupa.com/t/accessing-a-class/297553 "2009-10-05T09:57:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![four4swords](https://avatars.discourse-cdn.com/v4/letter/f/87869e/32.png) [@four4swords](https://forum.kirupa.com/u/four4swords)\
**Post date:** [October 5, 2009, 9:57am UTC](https://forum.kirupa.com/t/accessing-a-class/297553/1 "2009-10-05T09:57:07Z")

</div>

Hi,

I’ve got a class with this in it:

```auto

package localAS3{
    public class Glo {
        static public function Glo():void {
            trace("dosomething");
        }
    }
}

```

and in my fla. On the first frame in the timeline I have this:

```auto
import localAS3.Glo;

```

It doesn’t throw any errors, so I know the path to the file is correct. However, shouldn’t that trace “dosomething” into my output when I publish my flash movie?

It doesn’t, could someone tell me why?

Thanks.
