Discussion list for Unity developers.
unity-dev at moock.org
Thu Mar 8 20:30:08 CST 2007
Hi,
Been using Unity for about a month now and so far all is going well,
except one bitty problem.
Compiling my subclass of UClient keeps giving me 18 compile errors
(e.g. "The class or interface 'org.moock.unity.URoom' could not be
loaded." ) for various Unity Core classes. I'm pretty sure I have all
the import statements needed. In fact, i'm just editing a copy of your
demo USimpleChat.as file. (But the same happens when I try to compile
that USimpleChat.as file, too...)
The funny part is that it all works. I can compile my .fla file with no
errors and and the client connects to unity w no problems. But I just
can't get the .as file to compile, which makes it harder to find my own
errors or auto-format the code.
Any ideas? Hopefully i'm just missing something? I have pasted the
complete error text from the output window below, if that helps.
Thanks!
d
===== ERROR TEXT FROM OUTPUT WINDOW ======
**Error**
/Users/ddd/Documents/Work/dev/HyattProject/client/source/classes/org/moock/unity/simplechat/v4/ChatRoomView.as:
Line 6: The class or interface 'org.moock.unity.URoomView' could not be
loaded.
class org.moock.unity.simplechat.v4.ChatRoomView extends URoomView {
**Error**
/Users/ddd/Documents/Work/dev/HyattProject/client/source/classes/org/moock/unity/simplechat/v4/ChatRoomView.as:
Line 13: The class or interface 'org.moock.unity.URoom' could not be loaded.
public function ChatRoomView (room:URoom) {
**Error**
/Users/ddd/Documents/Work/dev/HyattProject/client/source/classes/org/moock/unity/simplechat/v4/ChatRoomView.as:
Line 20: The class or interface 'org.moock.unity.URoomEvent' could not
be loaded.
public function onJoin (e:URoomEvent):Void {
**Error**
/Users/ddd/Documents/Work/dev/HyattProject/client/source/classes/org/moock/unity/simplechat/v4/ChatRoomView.as:
Line 42: The class or interface 'org.moock.unity.URoomEvent' could not
be loaded.
public function onAddClient (e:URoomEvent):Void {
**Error**
/Users/ddd/Documents/Work/dev/HyattProject/client/source/classes/org/moock/unity/simplechat/v4/ChatRoomView.as:
Line 44: The class or interface 'org.moock.unity.RemoteClient' could not
be loaded.
var remoteuser:RemoteClient =
client.getRemoteClientManager().getClient(e.getClientID());
**Error**
/Users/ddd/Documents/Work/dev/HyattProject/client/source/classes/org/moock/unity/simplechat/v4/ChatRoomView.as:
Line 60: The class or interface 'org.moock.unity.URoomEvent' could not
be loaded.
public function onRemoveClient (e:URoomEvent):Void {
**Error**
/Users/ddd/Documents/Work/dev/HyattProject/client/source/classes/org/moock/unity/simplechat/v4/ChatRoomView.as:
Line 73: The class or interface 'org.moock.unity.URoomEvent' could not
be loaded.
public function onUpdateClientAttribute (e:URoomEvent):Void {
**Error**
/Users/ddd/Documents/Work/dev/HyattProject/client/source/classes/org/moock/unity/simplechat/v4/SimpleChatNamespaceView.as:
Line 8: The class or interface 'org.moock.unity.NamespaceView' could not
be loaded.
extends NamespaceView {
**Error**
/Users/ddd/Documents/Work/dev/HyattProject/client/source/classes/org/moock/unity/simplechat/v4/SimpleChatNamespaceView.as:
Line 13: The class or interface 'org.moock.unity.NameSpace' could not be
loaded.
public function SimpleChatNamespaceView (namespace:NameSpace) {
**Error**
/Users/ddd/Documents/Work/dev/HyattProject/client/source/classes/org/moock/unity/simplechat/v4/SimpleChatNamespaceView.as:
Line 20: The class or interface 'org.moock.unity.NamespaceEvent' could
not be loaded.
public function onAddRoom(e:NamespaceEvent):Void {
**Error**
/Users/ddd/Documents/Work/dev/HyattProject/client/source/classes/org/moock/unity/simplechat/v4/SimpleChatNamespaceView.as:
Line 26: The class or interface 'org.moock.unity.URoom' could not be loaded.
var room:URoom = ns.getRoom(e.getRoomID());
**Error**
/Users/ddd/Documents/Work/dev/HyattProject/client/source/classes/UHyattClient.as:
Line 13: The class or interface 'org.moock.unity.UClient' could not be
loaded.
class UHyattClient extends UClient {
**Error**
/Users/ddd/Documents/Work/dev/HyattProject/client/source/classes/UHyattClient.as:
Line 110: The class or interface 'org.moock.unity.SocketEvent' could not
be loaded.
public function onConnectFailure (e:SocketEvent):Void {
**Error**
/Users/ddd/Documents/Work/dev/HyattProject/client/source/classes/UHyattClient.as:
Line 120: The class or interface 'org.moock.unity.SocketEvent' could not
be loaded.
public function onServerKillConnect (e:SocketEvent):Void {
**Error**
/Users/ddd/Documents/Work/dev/HyattProject/client/source/classes/UHyattClient.as:
Line 130: The class or interface 'org.moock.unity.SocketEvent' could not
be loaded.
public function onClientKillConnect (e:SocketEvent):Void {
**Error**
/Users/ddd/Documents/Work/dev/HyattProject/client/source/classes/UHyattClient.as:
Line 140: The class or interface 'org.moock.unity.RoomManagerEvent'
could not be loaded.
public function onAddNamespace (e:RoomManagerEvent):Void {
**Error**
/Users/ddd/Documents/Work/dev/HyattProject/client/source/classes/UHyattClient.as:
Line 145: The class or interface 'org.moock.unity.NameSpace' could not
be loaded.
var ns:NameSpace =
getRoomManager().getNamespace(e.getNamespaceID());
**Error**
/Users/ddd/Documents/Work/dev/HyattProject/client/source/classes/UHyattClient.as:
Line 182: The class or interface 'org.moock.unity.RemoteClient' could
not be loaded.
var remoteuser:RemoteClient =
getRemoteClientManager().getClient(clientID);
Total ActionScript Errors: 18 Reported Errors: 18