I found out that we'll be opensourcing our webtier compiler modules for Apache and IIS, but they may lag behind the compiler itself. Gordon Smith Adobe Flex SDK Team
________________________________ From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of bouiaw Sent: Monday, December 03, 2007 3:30 PM To: [email protected] Subject: [flexcoders] Re: Runtime MXML compiler About the list of imports, I have to discuss more about that with the Graniteds project leader, but from what he says (http://tech.groups.yahoo.com/group/graniteds/message/832 <http://tech.groups.yahoo.com/group/graniteds/message/832> ) and what I can see in the findeDependencies function (http://code.google.com/p/igenko/wiki/RuntimeMxmlCompiler <http://code.google.com/p/igenko/wiki/RuntimeMxmlCompiler> ), I think that's to know more precisely what and when mxml should be recompiled. --- In [email protected] <mailto:flexcoders%40yahoogroups.com> , "Gordon Smith" <[EMAIL PROTECTED]> wrote: > > > Currently, mxmlc is ran as an external java program. > > Where could I find some information/samples to run it > > directly in the servlet container ? > > As far as I know, we haven't disclosed that. The compiler classes are not yet open-source, and I think you'll have to wait a little longer. > > > he couldn't find any way to ask mxmlc to list imports > > in as or mxml files > > You can't get the imports, but the -link-report compilation option produces an XML file with a complete dependency analysis. (You can have dependencies on classes that aren't imported, since you don't have to import a class if it is in the same package.) > > But can you explain why you need to know the dependencies? > > - Gordon > > ________________________________ > > From: [email protected] <mailto:flexcoders%40yahoogroups.com> > [mailto:[email protected] <mailto:flexcoders%40yahoogroups.com> ] On Behalf Of bouiaw > Sent: Monday, December 03, 2007 1:43 AM > To: [email protected] <mailto:flexcoders%40yahoogroups.com> > Subject: [flexcoders] Re: Runtime MXML compiler > > > > Hi, > > It seems my previous answer has never been received, so I send it again. > > You are right, my need is to compile a page when a request comes in. > GraniteDS (http://www.graniteds.org <http://www.graniteds.org> > <http://www.graniteds.org <http://www.graniteds.org> > ) provide a MXMLCompilerServlet > that compile MXML at runtime if the swf does not exist. > > I did some simple test, and it works (source code is available on this > page : http://code.google.com/p/igenko/wiki/RuntimeMxmlCompiler > <http://code.google.com/p/igenko/wiki/RuntimeMxmlCompiler> <http://code.google.com/p/igenko/wiki/RuntimeMxmlCompiler <http://code.google.com/p/igenko/wiki/RuntimeMxmlCompiler> > ). > > Allan, could you say me how this solution is different from yours ? > > Gordon, I plan to improve this MXMLCompilerServlet in order to use it > in Igenko. Could you give me your advice on how it could be improved : > - Currently, mxmlc is ran as an external java program. Where could I > find some information/samples to run it directly in the servlet > container ? > - I have asked to the GraniteDS project leader what was the major > issue with this mxmlc runtime compiler, and he answered me > (http://tech.groups.yahoo.com/group/graniteds/message/832 > <http://tech.groups.yahoo.com/group/graniteds/message/832> <http://tech.groups.yahoo.com/group/graniteds/message/832 <http://tech.groups.yahoo.com/group/graniteds/message/832> > ) that he > couldn't find any way to ask mxmlc to list imports in > as or mxml files. Do you have any idea for that ? > - Any other idea ? > > Regards, > Sébastien Deleuze > > --- In [email protected] <mailto:flexcoders%40yahoogroups.com> <mailto:flexcoders%40yahoogroups.com> , DreamCode <dreamcode@> wrote: > > > > I don't think the result of that is inside the acceptable levels for a > > content management system..... but hey... what do I know.... > > > > I would..... and I did for my project.... choose creating it in AS3 > based on > > database/xml content. > > > > --Allan > > On Dec 2, 2007 7:26 PM, Gordon Smith <gosmith@> wrote: > > > > > > Are you going to compile a page when a request comes in? > > > > > > That's the impression I got of what Sébastien wants to do. > > > > > > > all custom components needed to be referenced once inside my code > > > If you're creating components via their class name, with code like > > > > > > var someClass:Class = Class(getDefinitionByName(someClassName)); > > > var instanceOfSomeClass:Object = new someClass(); > > > > > > there is no way that the MXML compiler/linker can be smart enough to > > > figure out what class names might be encountered at runtime. > Therefore it > > > can't include these classes in the SWF unless you give it some help. > > > > > > One way is to use vars like you show to create dependencies. > > > > > > Another way is to use the -include-classes compilation option. For > some > > > reason that I don't understand, this is only an option for compc > when you > > > make a SWC, not for mxml when you make a SWF. But you can make a > SWC with > > > all your custom classes and then link that SWC in with > -include-libraries. > > > > > > Another possibility is to put all your custom classes into a > module and > > > load it. > > > > > > Gordon Smith > > > Adobe Flex SDK Team > > > > > > ------------------------------ > > > *From:* [email protected] <mailto:flexcoders%40yahoogroups.com> <mailto:flexcoders%40yahoogroups.com> > [mailto:[email protected] <mailto:flexcoders%40yahoogroups.com> <mailto:flexcoders%40yahoogroups.com> ] *On > > > Behalf Of *DreamCode > > > *Sent:* Sunday, December 02, 2007 2:38 PM > > > *To:* [email protected] <mailto:flexcoders%40yahoogroups.com> <mailto:flexcoders%40yahoogroups.com> > > > *Subject:* Re: [flexcoders] Runtime MXML compiler > > > > > > Hey Sebastien/Gordon > > > > > > > > > > > > I'm not sure I understand what you're asking... mxml compilation at > runtime? > > > Are you going to compile a page when a request comes in? > > > > > > > > > > > > As for the dynamic creation of content based on custom xml, that > is quite > > > nice. It's a big part of my current "spare time" project. > > > > > > > > > > > > The only real issue so far I have had, is that in order for me to > > > generate the UI, all custom components needed to be referenced > once inside > > > my code. So even though I have this: > > > > > > > > > > > > import dc.digr.ui.comp.*; > > > > > > > > > > > > I still need this: > > > > > > > > > > > > *var *a:digrButton = *new* digrButton (); > > > > > > *var *b:digrButtonLarge = *new* digrButtonLarge(); > > > > > > *var *c:digrButtonIconOnly = *new* digrButtonIconOnly(); > > > > > > *var* d:digrButtonMini = *new* digrButtonMini(); > > > > > > > > > > > > for all the custom ui components in the beginning of my code to > avoid a > > > runtime error.... > > > > > > > > > > > > Gordon, if you have some wisdom on this.... Spread the joy! J > > > > > > > > > > > > > > > > > >

