Skip to main content

My first Adobe Flex application

I have always liked learning about new programming tools and am always on the lookout for which tools would do best which job.  From time to time, I check on the status of rich internet applications, and in particular Adobe Flex (or Adobe AIR), which is a great framework in case you want nice user interfaces.

Finally, my chance came. My wife needed a software to record and analyze the trend of prices of various products on the market. So, basically, she needed a convenient way to store information into a database and display it on a chart, a use some statistical tools to come up with business decisions. And most importantly, she needed soon -- in about a week's time.

Adobe Flex first came to my mind and after a quick research, I determined that it's the right tool for the job.  It's very convenient for making graphical controls (text input, buttons, tables), data visualization (charts), and -- after a bit of clarification -- it handles local file databases (sqlite). These can all be done with just a single XML file with a sprinkling of ActionScript in places.

For my first attempt, I spent a whole weekend (2 days) to come up with something almost complete.  However, I was not satisfied with how my code looked.  So I rewrote the whole code, specially user interface, for another day. Not bad for someone who's never programmed in Flex before. And my wife was happy as a clam -- she even showed it to her boss :-)

I called TrendViewer and here are some snapshots.




Of course, there are still some tiny bugs to be fixed, and there might be some performance issues with bigger data sets in the future, but this weekend I'll take a well-deserved rest.

Related reading(s):
Hello! Flex 4 Flex 4 Cookbook: Real-world recipes for developing Rich Internet Applications (Oreilly Cookbooks)  Flash Builder 4 and Flex 4 Bible

Comments

Popular posts from this blog

Oh! Kinabuhi (Oh, Life!)

I've just seen that video of famous boxer Manny Pacquiao singing a sort of medley of Visayan songs so I thought I'd post the lyrics and translation of one of them here. This song is called "Oh! Kinabuhi" by Filipino singer Victor Wood.



Oh! Kinabuhi
Victor Wood

Inig sidlak sa adlaw sa sayo sa kabuntagon
Masud-ong ta ang katahoman ning kalibutan
Gidayandayan sa nahigmata nga kalanggaman
Nga nanag-awit ning kabukiran

Ug mopadulong sa pagsalop sa kahapunon
Ug sa dughan nga walay naglaylay
Sa kasing-kasing nga way nagsapnay
Sama kanako nga sinalikway ay magamahay

Chorus:

Oh kinabuhi sama ka sa usa ka gapnod
Nga gianod-anod sa bul-og ning mga luha
Way kinutoban way hunong ang iyang guidulngan
Ayayay-ayayay nganong sakiton man.
Here's the English translation:

Oh Life!
by Victor Wood
(translated by Allister Sanchez)

When the sun shines early in the morning
We'll see the beauty of this world
Adorned by the awoken birds
That sing in these mountains

And it heads to set i…

Finally!

I'm so happy with myself today. Why? Well, simply because after months of preparation I finally finished my first 10km running race!

It all started when my former team leader at work gave me a copy of Jogging International, a French-language magazine on running, early last year. It was a special edition on marathons, with various articles from training programs to diet and foot injuries. I don't know why exactly, but it spurred my interest in running. I actually had tried to run before that but holding that magazine in my hand made me more determined to really finish a marathon.

However, by summer (around June 2010) I realized that I was too heavy. A very slow run or even a brisk walk was enough to raise my heart rate to very high levels. So I started looking around for ways to lose weight.

An online friend introduced me to the P90X training program. This program was extremely difficult for me and it took me weeks to finally decide to commit to this program. I had to try some …

Paris

It's been a while since my last post on this blog and I felt kinda sad about it.  I still don't have much to post, although that doesn't mean that there isn't much going on in my life right now -- quite the contrary!

Anyway, the reason I'm blogging again (and hopefully it'll be more frequent) is because I heard Yael Naim's song, Paris. Actually, I've heard it for some time now but I didn't know the lyrics. A Google search today finally gave me something (from a web forum) that's understandable and readable (not just Hebrew characters).  So here it is, Yael Naim's Paris with lyrics:

Paris
by Yael Naim




Barachti lemakom acher kol kach maher hachi rachok sherak hitslachti veani bepariz
Haorot dolkim afor veananim ani smecha vetov li aval kol kach kar li bepariz
Mistovevet schor uschor besimtaot ksumot mechushafot bol’ot oti ani bepariz
Binyanim yafim atem zkenim veatsilim kol kach aval haim techamemu oti bepariz

Hmmm... Loin de ma maison à Paris