<< November, 2017 >>
SMTWTFS
1234
567891011
12131415161718
19202122232425
2627282930
Related Links
Search Blog

Categories
Archives
Photo Albums
RSS

Powered by
BlogCFM v1.1

16 July 2006

I'm on nerd-cation! Learing Flex 2

Nerd-cation - n., similar to vacation, a nerd-cation involves spending time away from family and work to learn new technologies.  May also involve heavy gaming.

So my wife and daughter left for Michigan early Saturday morning, and bless their hears for letting me stay home this week.  I'm still gonna fly up there on Wednesday or Thursday to visit family and stuff, but I really didn't want to spend the whole week.

But I already had the week off.. what to do.. what to do.. I suppose I could just *NOT* take the time off and go to work.. but where would the fun in that be?

No, I've decided to sit at home - alone - and CODE.

That's right, I'm learning Flex 2.  I simply don't have free time anymore, with being an employee, husband, and father.  I mean, learning Flex will help me in my job, but finding the time to do it when I've got so many other things going on, well it just simply cannot be done.

So here I am, at the end of my second day of coding, and I've gotten quite a lot done.  Admittedly, I haven't spent all of both days on it.  I spent part of today recovering from drinking at the bar last night (something you just can't do when your daughter gets up at 7am!)  I also went to see "You, Me, and Dupree" last night with my sister.  3-1/2 stars out of 5.  Not a bad movie at all.

Anyway, I've essentially been going through the Getting Started lessons, and Flex 2 is actually pretty easy.

Here's a fun little app I built in one of the lessons that pulls the most popular posts from the MXNA Blog Aggregator via a public web service, and displays them in a datagrid.  It's a whopping 29 lines of code, which I'll publish just down below the app.




<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" creationComplete="wsBlogAggr.getMostPopularPosts.send()">
    <mx:WebService id="wsBlogAggr"
        wsdl="http://weblogs.macromedia.com/mxna/webservices/mxna2.cfc?wsdl"
        useProxy="false">
        <mx:operation name="getMostPopularPosts">
            <mx:request>
                <daysBack>30</daysBack>
                <limit>{cbxNumPosts.value}</limit>
            </mx:request>
        </mx:operation>
    </mx:WebService>
    <mx:Panel x="10" y="10" width="475" height="400" layout="absolute"
        title="Most Popular Posts">
        <mx:ComboBox x="30" y="26" id="cbxNumPosts" change="wsBlogAggr.getMostPopularPosts.send()">
            <mx:Object label="Top 5" data="5" />
            <mx:Object label="Top 10" data="10" />
            <mx:Object label="Top 15" data="15" />
        </mx:ComboBox>
        <mx:DataGrid x="30" y="75" id="dgTopPosts" width="400" dataProvider="{wsBlogAggr.getMostPopularPosts.lastResult}">
            <mx:columns>
                <mx:DataGridColumn headerText="Top Posts" dataField="postTitle" />
                <mx:DataGridColumn headerText="Clicks" dataField="clicks" width="75" />
            </mx:columns>
        </mx:DataGrid>
        <mx:LinkButton x="30" y="250"
            label="Select an item and click here for full post" click="navigateToURL(new URLRequest(dgTopPosts.selectedItem.postLink));" />
    </mx:Panel>   
</mx:Application>

Posted by rickroot at 4:48 PM | Link | 2 comments
Subscription Options

You are not logged in, so your subscription status for this entry is unknown. You can login or register here.

Re: I'm on nerd-cation! Learing Flex 2
Nerdcation...that's just funny. :D

By the way, you might mention that people need Flash Player 9 to view your demo, but I'm sure most people already know that.
Posted by Jacob Munson on July 16, 2006 at 6:30 PM

Re: I'm on nerd-cation! Learing Flex 2
I don't think I invented the term "Nerdcation" but nobody has ever mentioned it on the internet before - at least not on a google indexed web site!
Posted by rickroot on July 16, 2006 at 7:53 PM

Post a comment (login required)