# Problem loading flex application

**URL:** <https://forum.kirupa.com/t/problem-loading-flex-application/248932>\
**Category:** Uncategorized\
**Created:** [January 13, 2008, 6:04pm UTC](https://forum.kirupa.com/t/problem-loading-flex-application/248932 "2008-01-13T18:04:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![walterw](https://avatars.discourse-cdn.com/v4/letter/w/e95f7d/32.png) [@walterw](https://forum.kirupa.com/u/walterw)\
**Post date:** [January 13, 2008, 6:04pm UTC](https://forum.kirupa.com/t/problem-loading-flex-application/248932/1 "2008-01-13T18:04:19Z")

</div>

Hi all,

I have another Flex/Flash/Actionscript 3.0 question. I separate my code into several applications. Right now, one is frontpage.mxml and frontpage.as, and the other main one is contactForm.mxml and contactForm.as.

I have both of these files compiled into swf’s and they work when I open their individual file, but I cannot load the contactForm.swf into the frontpage application.

It is reporting a width and height of 0 and even though it is completely loaded (an event fires for that), none of the constructor is actually called as I have logging enabled in there to capture it all.

Is there another way to do this, I want to keep the contactForm a separate entity where I can edit it outside of the frontpage class so it can be a module/element that can be added to any component within my site?

Thanks,  
Walter
