# Whats wrong with my class!

**URL:** <https://forum.kirupa.com/t/whats-wrong-with-my-class/219492>\
**Category:** Uncategorized\
**Created:** [March 16, 2007, 10:46pm UTC](https://forum.kirupa.com/t/whats-wrong-with-my-class/219492 "2007-03-16T22:46:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Simpel](https://avatars.discourse-cdn.com/v4/letter/s/35a633/32.png) [@Simpel](https://forum.kirupa.com/u/Simpel)\
**Post date:** [March 16, 2007, 10:46pm UTC](https://forum.kirupa.com/t/whats-wrong-with-my-class/219492/1 "2007-03-16T22:46:40Z")

</div>

Hi!

can someone PLEASE tell me why this isn’t working:

Box.as

```auto

class com.joelfinnstrom.Box {
    private var w_i:Number;
    public function set klas(w:Number):Void {
        w_i = w;
    }
}

```

my fla:

```auto

import com.joelfinnstrom.Box;
var b:Box = new Box();
b.klas = 20;
trace(b.klas);

```

the error:  
**Error** Scene=Scene 1, layer=Layer 1, frame=1:Line 3: There is no property with the name ‘klas’.  
b.klas = 20;

**Error** Scene=Scene 1, layer=Layer 1, frame=1:Line 4: There is no property with the name ‘klas’.  
trace(b.klas);
