danielwanja / railsconf2008

Powering AIR with Rails samples.

Daniel Wanja (author)
Sat Nov 01 20:46:42 -0700 2008
commit  05f008f3414c68ee042a8942275ab8ae0f23a1e1
tree    7605886d23a39d9e279e303851fca90995a144b1
parent  27f798f8343203a132d97526c996219b5085343c
railsconf2008 / 01_AIRBrowser / air / src / main_simple.mxml
100644 9 lines (8 sloc) 0.463 kb
1
2
3
4
5
6
7
8
9
<?xml version="1.0" encoding="utf-8"?>
<mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical" defaultButton="{goBtn}">
<mx:HBox>
<mx:TextInput id="addressBar" width="100%" />
<mx:Button id="goBtn" label="Go" click="browser.location = addressBar.text; title='Loading...'"/>
</mx:HBox>
<mx:HTML id="browser" width="100%" height="100%" complete="title=event.currentTarget.domWindow.document.title" />
</mx:WindowedApplication>