# \*.as function collection

**URL:** <https://forum.kirupa.com/t/as-function-collection/294662>\
**Category:** flash\
**Created:** [August 18, 2009, 9:43am UTC](https://forum.kirupa.com/t/as-function-collection/294662 "2009-08-18T09:43:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![artheus](https://avatars.discourse-cdn.com/v4/letter/a/87869e/32.png) [@artheus](https://forum.kirupa.com/u/artheus)\
**Post date:** [August 18, 2009, 9:43am UTC](https://forum.kirupa.com/t/as-function-collection/294662/1 "2009-08-18T09:43:36Z")

</div>

Hey!

I’ve just got a question… I want to make a \*.as file or similar where I just collect alot of functions I like. And so I just kan import it to my projects, so I don’t have to declare every function for every project…

I know about how to make this making some kind of object like

```auto

Class name : funcCollection (extends Sprite)
(declared a lot of functions in the class)

var fC:funcCollection = new funcCollection();

var useful = fC.useful("some text");

trace(useful);

```

Instead I just want to write so that I don’t have to create the fC variable, and then write fC.functionName. I want to only import the class “funcCollection” and just write the “useful('some text)” instead of “fC.useful(‘some text’)”.

Is this possible, or do I have to use the objectmethod?

Cheers,  
Artheus
