I have a flex business application and need to create some control that will show a small picture symbol of given user's MSN messenger status (online, away etc.)
Alternatively, how to insert an html page inside flex form?
There is a HTML code snippet on MSN site (supposed to be) doing exactly what I want, here it is:
<a target="_blank" href="http://settings.messenger.live.com/Conversation/[email protected]&mkt=ru-RU">
<img style="border-style: none;" src="http://messenger.services.live.com/users/[email protected]/presenceimage?mkt=ru-RU" width="16" height="16" />
</a>
(it can be found here: http://settings.messenger.live.com/Applications/CreateHtml.aspx)
Also I'll need to replace eb892994c712bb83 in this snippet with user's cid code. How to find user's cid knowing his/her MSN account name is one more question...
The HTML support within Flex (outside of AIR) is quite limited.
Another option is to use an Image control:
where
initStatus
andopenMSNLive
are defined along the following lines:The polling is optional. The anonymous function for the listener is used for brevity only, and not recommended for production.