“Be inspired, enjoy your work, keep learning and never forget to play.” — gskinner

AIR 2 Features and Enhancements

Posted: March 30th, 2010 | Author: nuno | Filed under: AIR 2 | No Comments »

InsideRIA has a good overview of the AIR 2.0 features and enhancements. The new version will be deployed on Flash player 10 using Flex 4 SDK.

http://www.insideria.com/2009/10/air-2-enhancements-complete-ov.html


Compiling with mxmlc (using external libraries) on Mac OS X

Posted: March 29th, 2010 | Author: nuno | Filed under: Actionscript3 | No Comments »

Recently I set myself to compile an Actionscript3 project by hand using the mxmlc tool on the command-line and wanted to share that in case you ever need to do something similar. It's no biggie and it might be useful for a number of things (making automatic builds, building on machines without the Flash IDE or Flash Builder, etc).

1. Open a console and go to the directory of your project

2. Export the PATH to include the flex sdk binaries, e.g. run:

export PATH=/Users/youruser/Desktop/yourproject/flexsdk/4.0.0/bin:$PATH

3. Invoke the compiler to produce the swf, e.g. run:

	mxmlc -static-link-runtime-shared-libraries \
	-sp ../externals/externlib \
	-l example.swc ../../flexsdk/4.0.0/frameworks/libs \
			 ../../flexsdk/4.0.0/frameworks/locale/en_US \
	-output output.swf \
	-locale en_US \
	-use-network=false \
	-file-specs MyExampleClass.as

Note: For those of you that don't know it already, the Flex SDK is a free of charge Actionscript3 library that allows the development of Flex & Actionscript 3-based applications, without the need to purchase Flex Builder/Flash Builder.