I am only reporting what I have heard on this subject, but the issue is that the mx:Application tage generates a LOT of code the is necessary to the application. If I were trying to do this, perhaps I would crate an empty application and compile it with the -keep-generated(?) switch, then use the generated as code as a starting point.
Tracy ________________________________ From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Brian Sent: Thursday, February 14, 2008 9:48 AM To: [email protected] Subject: [flexcoders] how to start with a dynamic actionscript class instead of mx:Application? I've created a game with Flex, and now I'm trying to integrate MochiAds with it. They give you a preloader to use, but most of their documentation is actionscript-centric and oriented toward Flash developers and the Flash IDE. I tried using the preloader attribute of the mx:Application tag, but they told me that the 'main class' of the application has to be a dynamic class, which they said is impossible with MXML. Any idea how to do this? Seems like most of the Flex docs assume you're starting with an mx:Application tag as your entry point. I've asked on their developer forums as well but haven't gotten many details. Thanks

