Skip to content

Instantly share code, notes, and snippets.

@junwatu
Created August 18, 2011 03:29
Show Gist options
  • Save junwatu/1153231 to your computer and use it in GitHub Desktop.
Save junwatu/1153231 to your computer and use it in GitHub Desktop.
BookList component
<?xml version="1.0" encoding="utf-8"?>
<mx:VBox xmlns:mx="http://www.adobe.com/2006/mxml" width="100%" height="100%">
<mx:Script>
<![CDATA[
import mx.events.ListEvent;
import com.developmentarc.core.utils.EventBroker;
[Bindable]
public var dataOne:Array = ["Beginning Adobe AIR","Essential ActionScript 3.0"];
public function handleChangeEvent(e:ListEvent):void {
EventBroker.broadcast(e);
}
]]>
</mx:Script>
<mx:List id="listBuku" dataProvider="{dataOne}" width="100%"
height="100%" itemClick="handleChangeEvent(event)"/>
</mx:VBox>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment