# Using classes and creating new variables

**URL:** <https://forum.kirupa.com/t/using-classes-and-creating-new-variables/311219>\
**Category:** Uncategorized\
**Created:** [June 30, 2010, 11:55am UTC](https://forum.kirupa.com/t/using-classes-and-creating-new-variables/311219 "2010-06-30T11:55:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![12sea21](https://avatars.discourse-cdn.com/v4/letter/1/ed8c4c/32.png) [@12sea21](https://forum.kirupa.com/u/12sea21)\
**Post date:** [June 30, 2010, 11:55am UTC](https://forum.kirupa.com/t/using-classes-and-creating-new-variables/311219/1 "2010-06-30T11:55:33Z")

</div>

I went to [this](http://www.ahfx.com/basic4.php) site, and I got this code:

```auto
import com.ahfx.Product;
var myProduct = new Product();
myProduct.setQuantity(3);
myProduct.setPrice(2.99);
myProduct.setDesc("Teddy Bear");

trace(myProduct.getDesc());
trace(myProduct.getPrice());
trace(myProduct.getQuantity());
trace(myProduct.getTotal());

```

i have this code

```auto
import sea.sea1.Me;

var myMe = new Me();
myMe.setQuantity(2);
myMe.setPrice(249.99);
myMe.setDescription("iPhone");

trace(myMe.getDescription);
trace(myMe.getQuantity);
trace(myMe.getPrice);

```

It says that it cannot be loaded… i have also put it in (en/First Run/Classes/…)  
and i dont see the problem… ☹  
I am a beginner and trying to learn how to make classes… and it doesnt work… but this is the first website that showed me probably.
