# Importing Functions, Possible?

**URL:** <https://forum.kirupa.com/t/importing-functions-possible/257418>\
**Category:** flash\
**Created:** [April 14, 2008, 5:50am UTC](https://forum.kirupa.com/t/importing-functions-possible/257418 "2008-04-14T05:50:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alpha\_eX](https://avatars.discourse-cdn.com/v4/letter/a/838e76/32.png) [@Alpha\_eX](https://forum.kirupa.com/u/Alpha_eX)\
**Post date:** [April 14, 2008, 5:50am UTC](https://forum.kirupa.com/t/importing-functions-possible/257418/1 "2008-04-14T05:50:17Z")

</div>

I want to make an external as file that will have a set of functions in, I want to be able to include these functions to a class without having to rewrite them, is this possible?

For example

Game.as (will contain functions)

```auto
package Game{

function test(){
trace("hello");
}

}

```

Character.as

```auto
package{

public class Character
{
import Game;

public function Character()
{
test(); //hello
}

}
}

```

I know my code may be wrong, it is just an example of what I would like to achieve.

Thanks for reading and in advance for any replies.
