# Urgent package problem seeks solution

**URL:** <https://forum.kirupa.com/t/urgent-package-problem-seeks-solution/276290>\
**Category:** Uncategorized\
**Created:** [November 25, 2008, 2:21pm UTC](https://forum.kirupa.com/t/urgent-package-problem-seeks-solution/276290 "2008-11-25T14:21:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![john\_paparis](https://avatars.discourse-cdn.com/v4/letter/j/ea5d25/32.png) [@john\_paparis](https://forum.kirupa.com/u/john_paparis)\
**Post date:** [November 25, 2008, 2:21pm UTC](https://forum.kirupa.com/t/urgent-package-problem-seeks-solution/276290/1 "2008-11-25T14:21:59Z")

</div>

hi, i read all adobe documentation plus some books nut i am about to throw my pc out of the window. they describe simple things as rocket science to make them hard to understand. can someone help me with the following ?  
i have a folder named artistica. inside this folder is the fla of the application. the classes of the application reside in a folder named site\_classes which ofcourse is inside artistica folder. in my fla i have set the path of the main class in the publish settings as site\_classes.main.Main\_Class, because Main\_Class is inside main folder which is inside site\_classes. also the source path in the advanced actionscript settings is set as I:\sites under development\site ag. personal\site aggelikh\artistica . all my classes are inside site\_classes which is inside artistica. ofcourse whenever i test the movie i get the same old errors .  
(i have also tried to set the source path in the advanced actionscript settings as I:\sites under development\site ag. personal\site aggelikh\artistica.site\_classes.  
)

one error is : TypeError: Error #1034: Type Coercion failed: cannot convert site\_classes.main::Main\_Class@df45239 to Main\_Class.  
at site\_classes.main::Main\_Class()[I:\sites under development\site ag. personal\site aggelikh\artistica\site\_classes\main\Main\_Class.as :17]

another error is package name 5001 error and it tells me to change the position of classes. but why since the classes reside exactly in the folder structure as described in the package name ?  
Another thing. if i delete all references to class folders from the source path at publish settings itworks, but then when i try to instantiate new class instances with the use of getDefinitionByName i get the following error : ReferenceError: Error #1065: Variable Graphic\_space is not defined. but the class Graphic\_space is imported as import site\_classes\_pages; .

can someone help me bring rocket science to middle human level of thinking ?
