# Call a function from another class

**URL:** <https://forum.kirupa.com/t/call-a-function-from-another-class/270628>\
**Category:** flash\
**Created:** [September 11, 2008, 6:30pm UTC](https://forum.kirupa.com/t/call-a-function-from-another-class/270628 "2008-09-11T18:30:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![wanda](https://avatars.discourse-cdn.com/v4/letter/w/e495f1/32.png) [@wanda](https://forum.kirupa.com/u/wanda)\
**Post date:** [September 11, 2008, 6:30pm UTC](https://forum.kirupa.com/t/call-a-function-from-another-class/270628/1 "2008-09-11T18:30:07Z")

</div>

I havent yet tried to call functions from other classes.

Lets say i have a class1 with function called makeBackground()

In class2 i want to call that function how do i do that without caling my constructor.

I have tried the following without any luck.

```auto

var _class1:class1 = new class1()
_class1.makeBackground();

```

And then at the top.

```auto

private var _class1:class1;

```
