View Full Version : Can i send the flex compiler in memory source?
Is there any way to send the flex/flash compiler in memory structures for compilations
i dont what to generate source files and then compile them
this is for my application that needs to generate swt files .
wvxvw
06-23-2009, 10:56 AM
Depends on the desired level of interaction of your app and the compiler... Technically, the compiler has such option - it would use VirtualFile, but that would be just a string with the text of your AS / MXML file. I'd imagine that would save you some time on compile as IO operations may be slow, but that would matter if you use the compiler as a part of the server. Though, essentially, you may simply use some parts of the compiler, like only the part that generates DoABC tag, or only transcoders and have all the rest of the SWF precompiled... for that you'd need to build your app and embed the compiler sources in it. They are available from here:
http://opensource.adobe.com/svn/opensource/flex/sdk/trunk/modules/
Thanks for the fast reply
when i read the compiler api pdf from your link
it talk about Flex Data Services 2 license , what is it ?
wvxvw
06-23-2009, 03:34 PM
Well.... I'm not a lawyer, I really cannot tell which part of compiler is more or less free to use / modify. Though, it seems like Flex Data Services have very little to do with compiler if at all... it's something specific to Flex SDK + builder, not the compiler...
Peter Cowling
06-23-2009, 03:59 PM
Unless you are using Flex 2, I do not think that the Flex 2 compiler api document remains relevant. The flex 3 version is here (http://livedocs.adobe.com/flex/3/compilerAPI_flex3.pdf).
With regards to the licence requirement: the flex 2 api states that you do need a data services licence when working with the compiler api, but a lot has changed since that document was written. So, I would be asking someone from Adobe for clarification...
|
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.