My Source Code and Adogo

Friday June 6thAdogo, Flex 3 Development Category

Brian has posted the June Meeting Wrap-up to the adogo site. I gave a presentation on the first iteration of my last.fm AudioScrobbler Flex App. The meeting was a success; the code camp went well, and I think generally everyone was very pleased.

I’m putting the source code from my app up on a public svn repository, located at http://svn.assembla.com/svn/audioscrobblerflex/. The code is available by hitting that url in a web browser, or using an svn client. Assembla also has a nifty little code browser (powered by Trac) if you’re viewing it through a browser. It’s a public repository, so the code is read-only. If you’d like to make changes and commit them back to the repository, you’ll have to sign up for an Assembla account and be added to the project. The code is licensed under the GNU General Public License.

If you don’t know about Assembla, check it out. They offer free svn repositories, great setup options, and bug tracking with Trac. It’s all free, and it’s all very easy and very well done in the web 2.0 style.

New 2nd Player Video Game Podcast Available

Thursday May 22nd2nd Player Podcast Category

Daniel was really fast with the editing and put up a new 2nd Player Podcast episode the night we recorded it. Yaaaaay Dan! Anyway, here it is, Episode 10: Off the Reservation. Let me know what you think. Ha, like anyone will see this post, much less respond.

Flex 3 Charting Woes

Wednesday May 21stFlex 3 Development Category

Last weekend I set out to add some nice little charting touches to the last.fm Flex 3 application I’m working on only to discover it’s not as easy as the livedocs on charting make it out to be. I looked over a few examples on the docs and thought I had a decent grasp on it, so I set out to create my own pie chart, cause, well, pies are delicious.

I started by trying to write the following code:

<mx:PieChart id="topArtistsPieChart"
             dataProvider="{topCollection}"
             showDataTips="true">
   <mx:series>
      <mx:PieSeries field="playcount"
                    nameField="name"
                    labelPosition="inside" />
      </mx:series>
</mx:PieChart>

I say trying, because as soon as I wrote <mx:Pi I expected Code Assist to jump in and save the day and show me PieChart. Much to my chagrin it didn’t. Being the developer I am, conditioned to trust everything about Code Assist, I immediately stopped coding and thought to myself double yew tee eff!! and started searching for a reason that it wasn’t doing work for me.

I spent the better part of a Saturday morning looking through the LiveDocs and doing google searches, all to no avail. It wasn’t until out of desperation that I emailed the Adogo mailing list and finally got an answer from Brian LeGros aka Yoda. He found this posting from FlexExamples.com explaining what the problem was. If you didn’t click, the problem is that you have to include the datavisualization swc in your project before you can use charting.

This just confused me. First, I’ve never had to include any swcs from any Adobe libraries before, why would I have to now? Second, and more importantly, if I suddenly have to include swcs from Adobe, why the hell didn’t they make that clear in their livedocs? I didn’t see one place in the docs, including the language reference, that mentioned having to include this swc to get the charting functionality. I saw plenty of sentences pimping the professional version by telling me I have to buy it if I don’t want a watermark, but not a single one saying, “FIND THE SWC HERE, STUPID!”

Regardless, as the FlexExamples post says, on Windows, find the swc here: “C:\Program Files\Adobe\Flex Builder 3\sdks\moxie\frameworks\libs\. On OS X, find it at Applications/Adobe Flex Builder 3/sdks/3.0.0/frameworks/libs/. On Linux, ha, Adobe hates you, Linux, good luck.

First

Wednesday May 21stGeneral Category

I’m back on Wordpress, and version 2.5.1 is fantastic. It’s much better than version 2.3.1, which is what Daniel and I are using at 2ndplayer . I’m hoping that I’ll update this semi-regularly with some nuggets of wisdom. If I get any readers, I’ll be genuinely surprised.

Size

Colors