I’m sure this has been blogged about before, but you can use AIM commands to interact with AOL Instant Messenger from Flash. IF you’re familiar with calling javascript from flash, you’ll be comfortable with calling the aim commands. Here’s some code for changing a buddy icon:
bc[as]. myButton.onPress = function(){
getURL(”aim:buddyicon?src=http://www.domainName.com/downloads/aim1.gif”);
}
See the extended entry for list of aim commands.
Send a Message
aim:goim
aim:goim?screenname=screen+name
aim:goim?screenname=screen+name&message=message
Send a chat Invitation
aim:gochat
aim:gochat?roomname=room
aim:gochat?roomname=room&exchange=4
aim:gochat?roomname=room&exchange=4&instance=1
Add Buddy
aim:addbuddy
aim:addbuddy?screenname=screen+name
Buddy Icon
aim:buddyicon
aim:buddyicon?src=image_source
aim:buddyicon?screenname=screen+name
aim:buddyicon?src=image_source&screename=screen+name
Get and Send Files
aim:getfile?screename=(sn)
aim:sendfile?screename=(sn)
Register User
aim:RegisterUser?ScreenName=sn&Password=pw&SignonNow=False
Check Mail
aim:CheckEmail
aim:CheckEmail?Address=what@what.com
Add Game
aim:addgame
aim:addgame?name=Game
aim:addgame?name=Game&hideIMs=true
aim:addgame?name=Game&hideIMs=true&multiplayer=true
aim:addgame?name=Game&hideIMs=true&multiplayer=true&url=www.url.com
aim:addgame?name=Game&hideIMs=true&multiplayer=true&url=www.url.com&dir=c:/
Away Message
aim:goaway?message=brb+or+something
AIM Today
aim:aimtoday?url=http://www.google.com
reprinted from http://www.blurrydesigns.com/aimcommands.htm
Very nice, alas, the external protocol pop up bothers me a bit, not for myself but i guess clients might think its a bug in the site or whatever,
any way to prevent/allow this pop up?
cheers
peter