You can build the majority of your application with HTML, Javascript and CSS against a single rendering engine - webkit, requiring very little knowledge of Flex or AS3.
Seriously.
<mx:HTML id="html" width="100%" height="100%" location="http://www.yourapp.com/version/app.html" />
<?xml version="1.0" encoding="utf-8"?>
<s:WindowedApplication
xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx">
<mx:HTML id="html" width="100%" height="100%" location="http://www.yourapp.com/version/app.html" />
<fx:Script>
<![CDATA[
// AS3 code goes here.
]]>
</fx:Script>
</s:WindowedApplication>
// AIR
public var airBridge:Object = {
photoUploads: {
uploadPhotos: uploadPendingPhotos // uploadPendingPhotos is an AS3 method
},
// ...etc
}
// javascript
window.airBridge.photoUploads.uploadPhotos();
AIR can call out to Javascript via html.domWindow. You'll recall that "html" is the id of the mx:html object we set up earlier.
html.domWindow.alert("oh hai!");
//or even better
var element:Object = html.domWindow.getElementById("foo");
element.className = "active";
// also cool
var userName:String = html.domWindow.ls.util.getUserId();
Thanks for coming!