flex实现类似QQ聊天的list(将SharedObject已登录服务器的用户取出来放入list中显示)

来源:百度知道 编辑:UC知道 时间:2024/05/06 17:47:55
flex+fms做的聊天系统,现在登陆1名用户,我都要将他们记录下来,然后放入list中。怎么搞?
什么盗号的。。那么没技术的事情我怎么会干。我说的是自己制作的聊天系统。。然后将自己服务器中的SharedObject对象中的用户取出来。。。晕死

<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600" creationComplete="init()">
<fx:Declarations>
<!-- 将非可视元素(例如服务、值对象)放在此处 -->
</fx:Declarations>

<fx:Script>
<![CDATA[
import mx.controls.Alert;
private var cookie:SharedObject;

private function login():void{

cookie = SharedObject.getLocal("asCookie");
if(remember_user.selected){
cookie.data.user = user.text;
}else{
cookie.data.user = null;
}

if(remember_pass.selected){
cookie.data.pass = pass.text;
}else{
cookie.data.pass = null;