Welcome to the new site! Some areas are "Coming Soon!" as the content is being migrated.

Archive for the ‘Adobe Flex’ Category

Adobe Flex: Creating Widgets for the Desktop & Web

Thursday, March 12th, 2009

I presented the following presentation at the first-ever Nevada Interactive Media Summit last week. My presentation consisted mostly of demonstrations in Adobe Flex Builder but if you plug the code below into Flex, you should be able to follow along. A video of the presentation should be available soon.

Demo #1: RSS Reader

<?xml version="1.0" encoding="utf-8"?>

<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">

 <mx:HTTPService id="myRSSFeed" url="{rssURL.text}" />

 <mx:Label x="10" y="12" text="RSS URL:" fontWeight="bold" />

 <mx:TextInput id="rssURL" width="357" x="68" y="10" />

 <mx:Button x="371" y="40" label="GO !!" click="myRSSFeed.send()"/>

 <mx:DataGrid id="myDataGrid" dataProvider="{myRSSFeed.lastResult.rss.channel.item}"

 width="417.5" height="144"

 click="{myTextArea.htmlText =

 myRSSFeed.lastResult.rss.channel.item[myDataGrid.selectedIndex].description}"

 x="7.5" y="70">

 <mx:columns>

 <mx:DataGridColumn headerText="Date" dataField="pubDate" textAlign="left"/>

 <mx:DataGridColumn headerText="Title" dataField="title" textAlign="center"/>

 </mx:columns>

 </mx:DataGrid>

 <mx:TextArea id="myTextArea" width="415" height="162" x="10" y="222"/>

 

</mx:Application>

Demo #2: Twitter Search Application

<?xml version="1.0" encoding="utf-8"?>

<mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml" title = "Twitter @ NIM" layout="absolute">

 <mx:Script>

 <![CDATA[ 

 private function doSearch(e:MouseEvent):void

 {

 twitterService.url = "http://search.twitter.com/search.atom?q=" + twitterKeyword.text;

 twitterService.send();

 }

 ]]>

 </mx:Script>

 

 <mx:HTTPService id="twitterService" />

 

 <mx:Label x="10" y="20" text="Twitter Search Term"/>

 <mx:TextInput id = "twitterKeyword" x="10" y="38" width="295"/>

 <mx:Button click = "doSearch(event)" x="379" y="38" label="Search" width="81"/>

 <mx:List dataProvider = "{twitterService.lastResult.feed.entry}" labelField="title" x="10" y="68" width="450" height="282"></mx:List>




</mx:WindowedApplication>

what i do -

Lively Labs

Web App Shop

visit

Reno Collective

Coworking Space

visit

things you should go to -

Feb 10

NCET's Tech Wednesday

@ Reno Collective

more

Feb 11

Lunch 2.0

@ Amendment 21

more

Apr 10

Reno-Tahoe WordCamp

@ TBA

more