# Communicating between classes

**URL:** https://forum.kirupa.com/t/communicating-between-classes/228939
**Category:** flash
**Created:** [June 12, 2007, 7:50pm UTC](https://forum.kirupa.com/t/communicating-between-classes/228939 "2007-06-12T19:50:19Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![sceneshift](https://avatars.discourse-cdn.com/v4/letter/s/5daacb/32.png) [@sceneshift](https://forum.kirupa.com/u/sceneshift)
#### Post date: [June 12, 2007, 7:50pm UTC](https://forum.kirupa.com/t/communicating-between-classes/228939/1 "2007-06-12T19:50:19Z")

</div>

I am sure this is more simple than it seems. Say I have two classes, the main app class (in this instance called Main) and a imageLoader class in com.site.library which has been imported into the Main class via import com.site.libary.imageLoader.

How do I then pass variables from my main class to the imageLoader class, for example in order to tell it which image to load.

I am sorry for the retarded question, I have searched the internet and forums for ages but can’t find any examples of this.
