# Importing custom classes

**URL:** https://forum.kirupa.com/t/importing-custom-classes/232527
**Category:** flash
**Created:** [July 15, 2007, 3:49am UTC](https://forum.kirupa.com/t/importing-custom-classes/232527 "2007-07-15T03:49:25Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![BetaWar](https://avatars.discourse-cdn.com/v4/letter/b/e79b87/32.png) [@BetaWar](https://forum.kirupa.com/u/BetaWar)
#### Post date: [July 15, 2007, 3:49am UTC](https://forum.kirupa.com/t/importing-custom-classes/232527/1 "2007-07-15T03:49:25Z")

</div>

Okay I am having an issue getting my custom made classes imported to the flash movie. It seems to ave a problem importing (or using) the class. Here is the as code I am attempting to use to import and call to a function inside of a class:

```auto
import form_classes.as;
var Contr:Controller = new Controller("testt");

```

It always pops up an error of

```auto
**Error** Scene=Scene 1, layer=Layer 1, frame=1:Line 3: The class or interface 'Controller' could not be loaded.
     var Contr:Controller = new Controller("testt");
Total ActionScript Errors: 1 Reported Errors: 1

```

and I am not sure why. So if anyone could help me out here that would be great.
