# Communication between classes

**URL:** <https://forum.kirupa.com/t/communication-between-classes/250419>\
**Category:** flash\
**Created:** [January 29, 2008, 1:19pm UTC](https://forum.kirupa.com/t/communication-between-classes/250419 "2008-01-29T13:19:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![JYCaR](https://avatars.discourse-cdn.com/v4/letter/j/b9bd4f/32.png) [@JYCaR](https://forum.kirupa.com/u/JYCaR)\
**Post date:** [January 29, 2008, 1:19pm UTC](https://forum.kirupa.com/t/communication-between-classes/250419/1 "2008-01-29T13:19:43Z")

</div>

Hey…

Well… i have another problem…  
I can’t call a function within a document class from another document class whose movie is loaded inside this first “document class”.  
So that you can better picture my problem, here is a sketch ![](http://forum.kirupa.com/uploads/kirupa/4273/fd79aef96ec5bacd.gif)

![](http://www.jurezilavec.com/stuff/problem.png)

Well this is the main problem…

Second problem… i did solve it but i am still wondering if there is a better way… so… i have a FLA file… and two classes (ClassOne, ClassTwo)… i create an instance of both clases in my main FLA, now i would like to call a function form one class in another…  
i did it this way… in my FLA i gave a name form document class… Main, and than in ClassTwo i called: Main(parent).instanceNameOfClassOne.functionName();  
Is it possible to just call class directly… like:  
form ClassTwo: ClassOne.functionName();

I hope someone will enlighten me ![](http://forum.kirupa.com/uploads/kirupa/1105/8ed432c9025fd9ca.gif)  
thank you in advance…  
J.
