# Using functions in other classes?

**URL:** <https://forum.kirupa.com/t/using-functions-in-other-classes/302689>\
**Category:** flash\
**Created:** [January 6, 2010, 12:11am UTC](https://forum.kirupa.com/t/using-functions-in-other-classes/302689 "2010-01-06T00:11:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![fizzzzzzzzzzzy](https://avatars.discourse-cdn.com/v4/letter/f/eada6e/32.png) [@fizzzzzzzzzzzy](https://forum.kirupa.com/u/fizzzzzzzzzzzy)\
**Post date:** [January 6, 2010, 12:11am UTC](https://forum.kirupa.com/t/using-functions-in-other-classes/302689/1 "2010-01-06T00:11:42Z")

</div>

Hey, so I’m having this problem where one of my classes can’t locate a function. The function it’s trying to use is in another class, so I was wondering if there was something special you had to do. This is what I’m basically doing:  
One class

```auto

package
{
...
public class whatever
{
...
public function dothis
{
...
}
}
}

```

and then the other class is like:

```auto

package
{
...
public class blah
{
...
public function blahlb
{
...
whatever.dothis()
}
}
}

```

How should i fix it?
