Page 1 of 1

How to put as1 extension in folders to sort it by games and

Posted: 27 Jul 2011, 08:01
by kotbegemot
How to put as1 extension in folders to sort it by games and call it from these folders.
for example:

I Have to big games(these games have Mini Games inside) ant these games have zone extensions and room extension, now i put all these extensions in one folder sfsExtensions, but its not very usefull, and i want to put all game's extensions in same folder:

BigGame1 folder
Minigame1 folder
MiniGame2 folder

BigGame2 folder
MiniGame1 folder
MiniGame2 folder

And most Question is how can i call this extension ?

Posted: 27 Jul 2011, 21:49
by rjgtav
Hi. To attach those extensions to the room, you simple do:

<extension name="myExtension" className="MyFolder/myExtension.as" type="script" />

and to interact with it you do it like in a simple extension. smartfox.sendXtMessage("myExtension",...)

This setting works for both config and dynamically created room extensions.

Hope this helps

Posted: 28 Jul 2011, 06:36
by kotbegemot
Very Thanks. You are the Best :) !