# Weird class error

**URL:** <https://forum.kirupa.com/t/weird-class-error/157299>\
**Category:** Uncategorized\
**Created:** [July 31, 2005, 11:41pm UTC](https://forum.kirupa.com/t/weird-class-error/157299 "2005-07-31T23:41:48Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![OM2](https://avatars.discourse-cdn.com/v4/letter/o/3ab097/32.png) [@OM2](https://forum.kirupa.com/u/OM2)\
**Post date:** [July 31, 2005, 11:41pm UTC](https://forum.kirupa.com/t/weird-class-error/157299/1 "2005-07-31T23:41:48Z")

</div>

I’ve got some code in a file called kitchenVideo.as.

The code starts as follows:

```auto
function initialisation()
{
    kitchenVideo = "kitchenVideo.flv";
        ...
        ...
    

```

There are a few insignificant lines aboe the kitchenVideo = … line…  
And there are other bits of code below.

The compiler just throws an error saying something about AS2 classes.

But… after much time and ■■■■ effort…  
I’ve tracked down the problem to this line.

I’ve read Penner’s book. I can’t remember, but I think he mentions something about a class referencing itself or something by calling it’s own name??

I’ve got Moock’s AS2 book… just starting to read…

The problem is that even if the line kitchenVideo = … isn’t the same as the file name, it still throws an error. It’s only when I call the variable a completely non related name does it stop throwing an error.

WHAT’S HAPPENING!? ☹

Thanks.

OM
