code behind

8 Feb 2009

If you're using code-behind in your AIR apps, there's a little gotcha you should watch out for: Flex Builder doesn't like it if you include your code behind class in the root package.

For example, if your main MXML file is Main.mxml and your code-behind class is MainClass.as, Flex Builder gets confused and thinks that there should be two application configuration files (one for the MXML file and one for the AS file.) If your app.xml file is named Main-app.xml, you'll get an error along the lines of Adobe AIR application is missing the corresponding MainClass-app.xml.

(more...)

Code-behind gotcha in Flex Builder for AIR apps

24 Apr 2008

I've moved the common base classes for the framework to the actionscript folder in the root of the project. Add this folder to your class path in both Flash and Flex projects.

Note that your document class in Flash projects should extend org.gaeswf.flash.BaseApplication and your Application MXML in Flex should be of type org.gaeswf.flex.BaseApplication (if none of this makes any sense to you, see my Flex 3 Code Behind Quick Start.)

(more...)

The GAE SWF Project version 1.34