# Import package from a parent folder

**URL:** https://forum.kirupa.com/t/import-package-from-a-parent-folder/276559
**Category:** flash
**Created:** [November 30, 2008, 10:05pm UTC](https://forum.kirupa.com/t/import-package-from-a-parent-folder/276559 "2008-11-30T22:05:15Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![luhter](https://avatars.discourse-cdn.com/v4/letter/l/82dd89/32.png) [@luhter](https://forum.kirupa.com/u/luhter)
#### Post date: [November 30, 2008, 10:05pm UTC](https://forum.kirupa.com/t/import-package-from-a-parent-folder/276559/1 "2008-11-30T22:05:15Z")

</div>

I know it may sound dumb, but a “surfed” alot the net and i didn’t found anything on this,maybe I was doing wrong , anyway:  
How can I import a package that is in a parent folder. For example let’s say:  
I have a big folder named Main with the _Main.fla_ and a _Main.as_ class. Now I have a 2 subfolders with a package named _MPackage1_ and _MPackage2_ and in _MPackage1_ I have another subfolder(package) named _LPackage_ . What I want is in the _LPackage_ package I want to import a class from _MPackage2_, how I do that?

* * *

package Main—|-\>package MPackage1-\>package Package  
…|-\>package MPackage2
