# Importing Class from different directories

**URL:** https://forum.kirupa.com/t/importing-class-from-different-directories/321654
**Category:** Uncategorized
**Created:** [April 26, 2011, 8:54pm UTC](https://forum.kirupa.com/t/importing-class-from-different-directories/321654 "2011-04-26T20:54:24Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![groupof1](https://avatars.discourse-cdn.com/v4/letter/g/0ea827/32.png) [@groupof1](https://forum.kirupa.com/u/groupof1)
#### Post date: [April 26, 2011, 8:54pm UTC](https://forum.kirupa.com/t/importing-class-from-different-directories/321654/1 "2011-04-26T20:54:24Z")

</div>

Hi all, this is my first post, though I have found many useful posts on this site in the past. I am working on a project and have run into a bit of trouble. First off, I am not a developer by nature, I’m a graphic designer with some actionscript knowledge. Just enough to get into messes like this.

The easy version of my question is this. I have a main.swf that calls and loads smaller swfs. There is a text field in the main clip that holds descriptions (descriptionText). What I am trying to do is to be able to change that text with a string (feedback) from the loaded clips. So in other words, pass a string value from the loaded clip to the main clip and set the descriptionText.text = feedback.

I have worked out (unless there is another way I am not aware of) that I need to use an external class to do this. The issue is that the smaller clips have to live in a folder called “images” to function on our LMS and I can’t figure out how to import the classes into my large clip and smaller clips because they are in different directories. I can post some code if needed.
