Modified: trunk/sandbox/arcticChat/ArcticChatMain2.hx
===================================================================
--- trunk/sandbox/arcticChat/ArcticChatMain2.hx 2006-11-24 12:58:26 UTC (rev 2232)
+++ trunk/sandbox/arcticChat/ArcticChatMain2.hx 2006-11-24 13:32:34 UTC (rev 2233)
@@ -61,16 +61,11 @@
var root = arcticView.display(parent, true);
var inputRaw = arcticView.getRawMovieClip("inputWindow");
- //trace(inputRaw.ti);
- //inputRaw.ti.border = false;
-
- chatLineRaw = arcticView.getRawMovieClip("chatLine");
- //trace("chatLineRaw : " +me.chatLineRaw);
-
+ var chatLineRaw = arcticView.getRawMovieClip("chatLine");
var screen2Raw = arcticView.getRawMovieClip("screen2");
+
+ flash.Selection.setFocus(inputRaw.ti);
-
-
var keyListener = {
onKeyDown : function() {
if (flash.Key.getCode() == flash.Key.ENTER) {
Modified: trunk/sandbox/arcticChat/ChatManager.hx
===================================================================
--- trunk/sandbox/arcticChat/ChatManager.hx 2006-11-24 12:58:26 UTC (rev 2232)
+++ trunk/sandbox/arcticChat/ChatManager.hx 2006-11-24 13:32:34 UTC (rev 2233)
@@ -16,14 +16,23 @@
public function show() {
//trace("chatManager.show started: " + Controller.get().AppState.getCurrentState());
chatMovie = flash.Lib._root.createEmptyMovieClip("chat",flash.Lib._root.getNextHighestDepth());
//trace("chatMovie.width: " + chatMovie.width);
//ac = new ArcticChatMain(chatMovie,allMessages,broadcast);
var chatMovie2 = chatMovie.createEmptyMovieClip("chat2", flash.Lib._root.getNextHighestDepth());
ac = new ArcticChatMain2(chatMovie2);
Controller.get().AppState.pushState(States.chatting);
//trace(Controller.get().AppState.getCurrentState());
var me = this;
chatKeyListener = {
public function show() {
//trace("chatManager.show started: " + Controller.get().AppState.getCurrentState());
if (flash.Lib._root.chat != null){
flash.Lib._root.chat._visible = true;
flash.Lib._root.chat.chat2._visible = true;
//ac = new ArcticChatMain2(chatMovie2);
Controller.get().AppState.pushState(States.chatting);
//trace(Controller.get().AppState.getCurrentState());
}else{
chatMovie = flash.Lib._root.createEmptyMovieClip("chat",flash.Lib._root.getNextHighestDepth());
//trace("chatMovie.width: " + chatMovie.width);
//ac = new ArcticChatMain(chatMovie,allMessages,broadcast);
var chatMovie2 = chatMovie.createEmptyMovieClip("chat2", flash.Lib._root.getNextHighestDepth());
ac = new ArcticChatMain2(chatMovie2);
Controller.get().AppState.pushState(States.chatting);
//trace(Controller.get().AppState.getCurrentState());
}
var me = this;
chatKeyListener = {
@@ -52,7 +61,9 @@
//allMessages = ac.getAllMessages(); //!!!
flash.Key.removeListener(chatKeyListener);
//trace("chat: " + flash.Lib._root.chat.chat2);
flash.Lib._root.chat.chat2.removeMovieClip();