are you sure you're using Orbiter and not OrbiterMicro? Orbiter definitely has a RoomModules class. heres' some sample code:
ActionScript (Reactor):
- Code: Select all
var modules:RoomModules = new RoomModules();
modules.addModule("com.business.StockTickerListener", ModuleType.CLASS);
reactor.getRoomManager().createRoom("someRoomID",
null,
null,
modules);
JavaScript (Orbiter):
- Code: Select all
var modules = new net.user1.orbiter.RoomModules();
modules.addModule("com.business.StockTickerListener", net.user1.orbiter.ModuleType.CLASS);
orbiter.getRoomManager().createRoom("someRoomID",
null,
null,
modules);
JavaScript (OrbiterMicro):
- Code: Select all
orbiter.getMessageManager().sendUPC(UPC.CREATE_ROOM, "someRoomID", "_DIE_ON_EMPTY|true|_MAX_CLIENTS|-1|_PASSWORD|", "", "class|com.business.StockTickerListener");
in all three cases, the code sends the server a "u24" UPC message that looks like this:
- Code: Select all
<U><M>u24</M><L><A>someRoomID</A><A>_DIE_ON_EMPTY|true|_MAX_CLIENTS|-1|_PASSWORD|</A><A></A><A>class|com.business.StockTickerListener</A></L></U>
in fact, internally, the "createRoom()" call in both of the preceding Reactor and Orbiter examples ends up calling MessageManager's sendUPC() method. the Reactor and Orbiter calls are convenience APIs for the lower-level UPC message sending performed in the OrbiterMicro example. OrbiterMicro excludes the convenience APIs for the sake of a smaller file size in the codebase (which is ultimately downloaded by the end-user prior to execution).
colin