# AS3 - using JSON and other external classes inside external classes

**URL:** https://forum.kirupa.com/t/as3-using-json-and-other-external-classes-inside-external-classes/332493
**Category:** flash
**Created:** [July 2, 2014, 5:34am UTC](https://forum.kirupa.com/t/as3-using-json-and-other-external-classes-inside-external-classes/332493 "2014-07-02T05:34:15Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Nofar\_Shaked](https://avatars.discourse-cdn.com/v4/letter/n/7ab992/32.png) [@Nofar\_Shaked](https://forum.kirupa.com/u/Nofar_Shaked)
#### Post date: [July 2, 2014, 5:34am UTC](https://forum.kirupa.com/t/as3-using-json-and-other-external-classes-inside-external-classes/332493/1 "2014-07-02T05:34:15Z")

</div>

Hey,

I have a main project in Flash CS6 using external classes.  
Inside one of the classes I created (located in C:\com\classes\classTestManager.as) I use other class such as JSON (located in C:\com\adobe\serialization\json\JSON.as) and another class I created (located in C:\com\classes\classTest.as).  
None of these classes are in the project directory but the main project is set to know C:\ directory.

In the main code I can use classTestManager, classTest and JSON, but \*\*classTestManager \*\*functions fails when they use classTest and JSON…

in classTestManager the class are imported as:\* import com.adobe.serialization.json.JSON;\*

- import com.adobe.serialization.json.JSONParseError;\*
- import com.class.classTest;
- 

I tried movin the classes to the same directory as classTestManager:\* import JSON;\*

- import JSONParseError;\*

- import classTest;

- 

functions still fail.  
I suspect other other imports may not work in this class, such as **flash.events.Event**.

What can I do to make this work? I couldn’t find a similar case anywhere online and no solutions.  
ThanksC:-)
