||unity-dev|| problem compiling my UClient subclass

Discussion list for Unity developers. unity-dev at moock.org
Thu Mar 15 12:08:55 CST 2007


hi d,
sorry for the delayed reply.

in order to test the syntax of a standalone class, the compiler needs 
access to the other classes that the standalone class refers to. you can 
provide that access by placing the uClientCore intrinsic files in your 
class path. the uClientCore intrinsics are available here:

http://moock.org/unity/uclientflash/UClientIntrinsics.zip

colin


Discussion list for Unity developers. wrote:
> 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
> --
> you're a unity-dev subscriber. to unsubscribe, visit www.moock.org/mailman/listinfo/unity-dev/
> 
> superb hosting for this list and moock.org is generously provided by Rackspace. See: http://www.rackspace.com/?supbid=moock


More information about the unity-dev mailing list