# Classes \> onEnterFrame doesnt work?

**URL:** https://forum.kirupa.com/t/classes-onenterframe-doesnt-work/147123
**Category:** Uncategorized
**Created:** [May 7, 2005, 9:34am UTC](https://forum.kirupa.com/t/classes-onenterframe-doesnt-work/147123 "2005-05-07T09:34:58Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![maverick\_xj](https://avatars.discourse-cdn.com/v4/letter/m/6a8cbe/32.png) [@maverick\_xj](https://forum.kirupa.com/u/maverick_xj)
#### Post date: [May 7, 2005, 9:34am UTC](https://forum.kirupa.com/t/classes-onenterframe-doesnt-work/147123/1 "2005-05-07T09:34:58Z")

</div>

Hey

disclaimer: have been working too hard, too long - so if this is as simple as abc , please excuse … but do help ☹  
This is a simplified vesion of the problem :

I made a class named “fo” :

```auto
class fo {
	function onEnterFrame(){
	 trace("HERE");	
	}
}

```

the swf file calling this file had:

```auto
var tr:fo = new fo();

```

Now when i run this swf … it traces nothing … ???

( The as file is named fo.as and is in the same foledr as the swf file )
