chatCount = chatCount + 1; var child:Canvas = new Canvas(); child.label = ujid; child.id = "chat" + chatCount; chatWindows1.addChild(child);