View Full Version : compiling actionscript (from scratch)
tiagoh
02-01-2009, 11:05 AM
hi guys,
this is my first post here, but this forum has been very useful for me many times.
i have a very specific question that i can't find any clear and effective answer on google.
what i want to do is to compile an actionscript 3 project with the command line.
this will be an Adobe AIR application, but i don't want to use flex sdk or flex compiler. can u give me any idea on how to do that ?
this i really getting me crazy, because theoricaly both flash and air are just runtimes and flex a framework, so i should be able to compile my as3 classes together with my app-settings.xml for air.
looking forward for your help..
t
fx.barrett
02-01-2009, 11:28 AM
Then use the AIR SDK to compile it... Anyway, why are you running from Flex and Flash ? I can't think of any reason why one would do something like this...
tiagoh
02-01-2009, 11:45 AM
thanks for your quick reply fx.barrett.
i am not running from Flex or Flash.
But in this situation i don't really need any thing from flex framework. i am coding by my self all the components i need for the interface.
also what i really want is to deeply undertand the mechanism behind air/flash + flex. because i have been using flex builder until now for flash or air applications but there i can't really understand what compiler binaries are called there neither the passed parametrs. i hope you can understand me! ;)
i have already tried to compile with the air sdk... but i can't get succeeded at all.
anyway... how can i compile as3 classes independently from using flash or air (or even flex) ? it should be possible to generate an SWF from my source an then choose if i want to run it on air or flash run time, no ?
thanks once more,
t
fx.barrett
02-01-2009, 11:53 AM
There are a few apps out there that might compile your AS source files but not really sure if any can compile to Flex or AIR. You could try reading up on haXe ( http://www.haxe.org ) and maybe ask the haXe community if they know a tool that can compile raw .as files into a working AIR app. I never used haXe and from what I know it can only compile to Flash but since I am not experienced with it, I can't say anything for sure...
Just visit the haXe site and see where you can go from there.
Good luck.
tiagoh
02-01-2009, 12:05 PM
thanks once more for you question.
i'll check if this haxe solution can do the job... anyway it does not seem to be able to compile SWF using the app-config.xml (without flex compiler).
anyway... i still can't find anywhere in the web were all this concepts are deeply explained! adobe as so much documentation but can't make it completetly clear.
if there are two diferent runtimes for Adobe Flash Technologies and one Flex Framework, why can i find 3 diferent SDK's ? just thougths anyway.
if anyone else feels like help or explain this topic it would be great.
thank you,
t
senocular
02-01-2009, 02:31 PM
The Flex SDK doesn't require that you use the Flex framework. You can use it as a standalone compiler as well.
tiagoh
02-01-2009, 03:44 PM
thanks for your reply senocular!
how am i supose to do that ?
the compiler will work as a normal as3 compiler if i don't have the .mxml config file ? just that ?
thanks!
wvxvw
02-01-2009, 05:03 PM
MXML isn't a config file... MXML is just another language that can be compiled to ABC (Actionscript Byte Code) and further to SWF / AIR.
You compile by running the compiler and passing it a set of parameters that defines what and how you compile.
See this link on MXMLC syntax:
http://www.senocular.com/flash/tutorials/as3withmxmlc/
|
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.