AIM indicator

There are indicators you can integrate into HTML that tells people if you are logged into AIM, so now I’m trying to figure out how to integrate one into my Flash site. Does anyone have any ideas, or have you seen a tut on how to do this? Thanks all.