AIM status indicator

I would like to put an AIM status indicator on my flash site and am wondering if anyone has seen any tuts, or can tell me how to do it straight in flash. I found an HTML way of doing it and could just do the getURL to load the appropriate image, but i’m looking for a more elegant solution. Any advice?