# Call a function in another class

**URL:** <https://forum.kirupa.com/t/call-a-function-in-another-class/272715>\
**Category:** flash\
**Created:** [October 7, 2008, 11:02pm UTC](https://forum.kirupa.com/t/call-a-function-in-another-class/272715 "2008-10-07T23:02:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Samurai](https://avatars.discourse-cdn.com/v4/letter/s/bc79bd/32.png) [@Samurai](https://forum.kirupa.com/u/Samurai)\
**Post date:** [October 7, 2008, 11:02pm UTC](https://forum.kirupa.com/t/call-a-function-in-another-class/272715/1 "2008-10-07T23:02:10Z")

</div>

Hey I just threw myself into the as3 fire this past monday on a project at work, not only that but I decided to be cool and use classes, which I have only a small amount of experience with, anyways, I couldn’t really find an answer to my question so hopefully some kind soul could help me out.

basically, I want to call a function that is in an external class:

so I have my main class which is good, but then I want to call a function in another class, in as2 you’d do it like this foldername.foldername.asfile.functionname, but it doesn’t seem to want to work in as3.

any thoughts?
