diff --git a/.actionScriptProperties b/.actionScriptProperties
new file mode 100644
index 0000000..5f99f1b
--- /dev/null
+++ b/.actionScriptProperties
@@ -0,0 +1,25 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/.flexProperties b/.flexProperties
new file mode 100644
index 0000000..01928ba
--- /dev/null
+++ b/.flexProperties
@@ -0,0 +1,2 @@
+
+
diff --git a/.project b/.project
new file mode 100644
index 0000000..7e175d0
--- /dev/null
+++ b/.project
@@ -0,0 +1,25 @@
+
+
+ chatpod
+
+
+
+
+
+ com.adobe.flexbuilder.project.flexbuilder
+
+
+
+
+
+ com.adobe.flexbuilder.project.flexnature
+ com.adobe.flexbuilder.project.actionscriptnature
+
+
+
+ bin
+ 2
+ C:/podz
+
+
+
diff --git a/.settings/org.eclipse.core.resources.prefs b/.settings/org.eclipse.core.resources.prefs
new file mode 100644
index 0000000..3bf01c5
--- /dev/null
+++ b/.settings/org.eclipse.core.resources.prefs
@@ -0,0 +1,3 @@
+#Tue May 01 12:10:58 EDT 2007
+eclipse.preferences.version=1
+encoding/=utf-8
diff --git a/Chat.mxml b/Chat.mxml
new file mode 100644
index 0000000..004c635
--- /dev/null
+++ b/Chat.mxml
@@ -0,0 +1,175 @@
+
+
+
+
+
+ " + txt + "";
+ }
+ //The TextArea needs to re-compute its size to update
+ //maxVerticalScrollPosition but is optimized to wait until the
+ //next drawing pass. Therefore we call validateNow() to
+ //force the update before we try to update the scroll position
+ log.validateNow();
+ log.verticalScrollPosition=log.maxVerticalScrollPosition;
+ }
+ break;
+ case 2:
+ if (body.userId != userId) {
+ user = "";
+ usersList.addItem(new XML(user));
+ }
+ var message:AsyncMessage = new AsyncMessage();
+ message.headers['cmd'] = 3;
+ message.body = {
+ userId: userId,
+ tuid: body.userId
+ };
+ producer.send(message);
+ break;
+ case 3:
+ if (body.tuid == userId) {
+ user = "";
+ usersList.addItem(new XML(user));
+ }
+ break;
+ case 4:
+ for (i = 0;i < usersList.length;i++) {
+ if (body.userId == usersList[i].@userName) {
+ usersList.removeItemAt(i);
+ }
+ }
+ break;
+ }
+ }
+
+ private function doReconnect():void {
+ //Alert.show("FDS: Failed");
+ consumer.subscribe();
+ }
+ ]]>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/chatpod.mxml b/chatpod.mxml
new file mode 100644
index 0000000..333f712
--- /dev/null
+++ b/chatpod.mxml
@@ -0,0 +1,39 @@
+
+
+
+
+
+
+
+
+
+