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

Post here your questions about Actionscript and Java server side extensions development.

Moderators: Lapo, Bax

User avatar
kotbegemot
Posts: 82
Joined: 21 Nov 2010, 05:05
Location: Saint-Petersburg

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

Postby kotbegemot » 27 Jul 2011, 08:01

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 ?
User avatar
rjgtav
Posts: 2813
Joined: 19 Apr 2009, 11:31
Location: Lisbon, Portugal

Postby rjgtav » 27 Jul 2011, 21:49

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
Skills: SFS Pro, SFS2X, AS2.0/AS3.0, Java, HTML5/CSS3/JS, C#
Portfolio: https://rjgtav.wordpress.com/
SFS Tutorials: http://sfs-tutor.blogspot.com/ - Discontinued. Some examples may be bugged.
User avatar
kotbegemot
Posts: 82
Joined: 21 Nov 2010, 05:05
Location: Saint-Petersburg

Postby kotbegemot » 28 Jul 2011, 06:36

Very Thanks. You are the Best :) !

Return to “Server Side Extension Development”

Who is online

Users browsing this forum: No registered users and 56 guests