Please tell me whether the following lines of code are correct.
Am creating a room from client side (AS3 code) and I've to attach a .class extension to that room.
$roomData is my room Object.
My .class file is "mixupgame.class". This is stored in the folder:
/root/smarty/SmartFoxServer_PRO_1.6.6/Server/javaExtensions
Code: Select all
var $ext:Object = new Object();
$ext.name = "mixupgame";
$ext.script = "/javaExtensions/mixupgame.class";
$roomData.extension = $ext;