Tuesday, October 9, 2007

AIR Local Database Helper Class

This is a quick little app that showcases a class I created (LocalDatabaseService.as) to take some of the boilerplate code out of dealing with the local database in AIR. You can create an ActionScript object and pass it into the createTable method and it will create the table for you by interrogating the AS object. You can then use the add, update, save, remove, getAll, and getByID methods by passing in an object along with the table name and a responder. There is still a lot I would like to do with this, and there is definitely some refactoring to be done, but I wanted to share just the same.

Requirement: Your ActionScript object must have an id property named "ID".

Next up, I am going to add some code to handle one-to-many and many-to-many relationships between objects. Maybe create some recursive saving and add a little documentation... but not tonight. :)


Sample Application: IdeaBank

Tuesday, August 14, 2007

OnAir Bus Tour Review

I just got back to the hotel room from the Adobe OnAir Bus Tour in Atlanta. If you get a chance to catch it on one of the remaining stops, you owe it to yourself to do so. Kudos to the guys from Adobe for putting on a great show. There was plenty of food, drink, and great presentations. I got the opportunity to meet Mike Chambers, Christian Cantrell, Kevin Hoyt, Ben Forta, Daniel Dura and several local/regional developers. Everyone was very nice, and I got several questions answered straight from the horses mouth, so to speak. It looks like there is some really cool stuff on the horizon AIR.

Monday, August 13, 2007

OnAir Bus Tour

Long time no blog. :( I've been pretty busy at work, and as a result my blog has suffered. Well, time to change that.

I just arrived in Atlanta for the OnAir Bus Tour at the Fox Theater. Really looking forward to a full day of Adobe goodness. If your at the conference, track me down and say hi. I'll blog tomorrow night and let you know how it went.

Monday, June 11, 2007

My First Apollo App Revisited

I have just installed Flex Builder 3 beta and the new AIR runtime beta (that's a little redundant). To kick the tires so to speak, I updated my Apollo Video Player to the new and improved (not really) AIR Flash Video Player. I hope the name "AIR" will grow on me. Right now I'm not too sure about it. :)

Updating the code to jive with beta 1 went surprisingly well. The only code I had to change was one line that referred to "File.appStorageDirectory". The new method name is "applicationStorageDirectory". Piece of cake. Hope all of my other apps upgrade this easily.

Please let me know if you find any issues!

Download AIR Flash Video Player

Download Adobe Integrated Runtime

Thursday, April 19, 2007

Flex 2 Developer Exam

The last few days have been good. First, my Flex/ActionScript posters arrived. Next, my Apollo Pocket Guide was delivered. Then yesterday, I passed the Flex 2 Developer Exam! Good week so far. :)

Funny thing about the posters, I am having trouble finding space on my office walls to put them. They are flipping huge!

Thursday, April 5, 2007

Free Posters!!!

Add a post about flex.org and a image link to your blog and you may receive some Actionscript and MXML posters! What a great advertising idea. Get 'em while they're hot! Check it out here.

Saturday, March 31, 2007

RemoteObject Mapping... again

Ok... I'm posting this as a checklist of possible reasons why an Actionscript object will not properly map to a ColdFusion CFC (or Java object for that matter). I just went through about thirty minutes of debugging trying to track down why I was getting an array of generic Actionscript objects instead of my custom objects. I seem to run into this fairly often. : )

1. Did not include [RemoteClass(alias="YourObjectPath")] in the Actionscript class.
2. Did not import the Actionscript class into the application.
2. Did not include an instance of the Actionscript class into the application.
3. Did not have the same number and name of properties on both the Actionscript object and the server side object.
4. Have import statements after the RemoteClass alias metadata. (This is what happened to me tonight... oops!)

If you can think of something I've missed let me know so I can update the list.