# Importing dynamic classes

**URL:** <https://forum.kirupa.com/t/importing-dynamic-classes/270687>\
**Category:** flash\
**Created:** [September 12, 2008, 11:27am UTC](https://forum.kirupa.com/t/importing-dynamic-classes/270687 "2008-09-12T11:27:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![RebuiltJorge](https://avatars.discourse-cdn.com/v4/letter/r/94ad74/32.png) [@RebuiltJorge](https://forum.kirupa.com/u/RebuiltJorge)\
**Post date:** [September 12, 2008, 11:27am UTC](https://forum.kirupa.com/t/importing-dynamic-classes/270687/1 "2008-09-12T11:27:49Z")

</div>

ok so i have a package called “gallery”, inside i have a couple dynamic classes that help build an xml gallery, outside i have the main class “Porfolio.as”. From Porfolio.as, I am trying to call a class inside the package (GalleryContainer.as). Before I do so, I imported like this

import gallery.GalleryContainer (also tried import gallery.\*)

then i call the class like so

var xmlGallery:GalleryContainer = new GalleryContainer();  
addChild(xmlGallery);

however this doesn’t work, i tried throwing a trace statement inside the GalleryContainer constructor but no luck, it isn’t even being called, i tried doing a search and couldn’t find anything, the only thing i could think of is that all these classes inside the package are dynamic, and that might be causing the problem, any ideas
