flash on 2009-9-5

by hacker_9p8x8mco
♥0 | Line 25 | Modified 2009-09-05 16:19:29 | MIT License
play

ActionScript3 source code

/**
 * Copyright hacker_9p8x8mco ( http://wonderfl.net/user/hacker_9p8x8mco )
 * MIT License ( http://www.opensource.org/licenses/mit-license.php )
 * Downloaded from: http://wonderfl.net/c/eQUA
 */

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" backgroundColor="white" layout="absolute">
	<mx:Script>
		<![CDATA[
			[Bindable]
			public var selectedItem:Object;
		]]>
	</mx:Script>
	<mx:Model id="board">
		<states>
			<state label="Anti Hero" data="http://t3.gstatic.com/images?q=tbn:B9ovhbvsVoHEMM:http://www.flatspot.com/store/images/decks/deck_anti_hero_8_ex.jpg"/>
			<state label="creature" data="http://t3.gstatic.com/images?q=tbn:61P7fP_DE0D9rM:http://www.skateparkoftampa.com/spot/productimages/22365large.jpg"/>
		</states>
	</mx:Model>

	<mx:Panel color="#DA70D6" x="20" y="20">
		<mx:Label>
			<mx:htmlText><![CDATA[<h1><b>Select Your Deck</b></h1>]]></mx:htmlText>
		</mx:Label>
		<mx:List width="100%" dataProvider="{board.state}" change="this.selectedItem=List(event.target).selectedItem"/>
		<mx:VBox>
			<mx:Label text="select deck={selectedItem.label}" />
			<mx:Image source="{selectedItem.data}"/>
		</mx:VBox>
	</mx:Panel>

</mx:Application>