h1

Flex 3 for Dummies

August 10, 2008

The book is out.. and I hope that it is as good as any other book of the Dummies series! Its available at Amazon for $19.79…

Visit Amazon

Advertisements
h1

Two Input Boxes in DataGrid’s ItemEditor

August 10, 2008

Alex has created a wonderful workaround in scenarios where you will need two or more input boxes in a single itemEditor in a DataGrid. Have a look:

See it on Alex’s Blog

Thanks Alex!

h1

DataGrid Showing Date Difference in ToolTip

July 13, 2008

Again a request from Flex India group, I created a DataGrid which has two columns showing dates. And the tooltip for these colums show the difference between the dates in days as a ToolTip.

Run Demo
Download Source

h1

Column Chart with XML

June 10, 2008

Yesterday at Flex India asked how to read an XML and prepare a ColumnChart from it. I wanted to tell that guy how to do it, but I was feeling so lazy that I just gave him the complete code. Here is the application:

Run Demo
Download Source

h1

Cross Domain Woes

May 3, 2008

Cross domain has been something that has been nagging the developer fraternity since time eternity. The first time I heard about this term – cross domain was way back during my early days in e-learning. We were making simple e-learning courses and our client got over ambitious and wanted to use clustered servers to host the courses. They wanted the courses to reside on a different server and the Learning Management System (LMS) to be on a different server. And the best thing was that he did not even tell us before he did this.

What happened was an expectant collapse. The courses ran fine but did not track any data in the LMS. And since we did not have any clue about what the client did and even otherwise, atleast I did not have any clue what cross-domain policies are, we were all in deep trouble! Then after doing a lot of research and thankfully a timely information from the client that they had hosted the course on a different server as the LMS, it helped us zero in on this issue.
The reason I wrote this blog today is because it has been almost 4 years for the above mentioned incident to have occurred. And today after these four years, cross domain issue has haunted me again. I was making my website in Flex and till the time I was publishing the project locally, everything was working like a charm. And the moment I hosted it on the net, a few of the sections started breaking. There was an RSS feed on the home page from my blog, and then there was a complete section for Blog and Photos (from Picasa) and both these sections collapsed.

I am disappointed now that I did not realize this when I was designing my website and was finalizing on its contents. Now I am looking for some alternate solutions like a web service that can route the data to my website.

I seriously hope I get something 😦

h1

Useful Sites

March 10, 2008

Since the day I started learning Flex, I have been fascinated by some of the amazing sites that have been made using Flex. And then there are some that are useful for Flex developers. I finally decided to archive these sites so that it would be useful to all…

…More to come…

h1

The Good Ol’ indexOf

March 7, 2008

For those of you who might have come from programming in JavaScript, I’m sure indexOf is a pretty handy method when playing around with strings. Flex extends its usage to Arrays too. You can use indexOf in a similar way as you do with strings. In this case, it matches the exact string in all the substrings and returns the substring position in the array.

Usage:


var arr:Array = new Array("apple","mango","orange","banana") ;

var num:uint = arr.indexOf("orange");

trace (num)  //returns 2