Hello
If my as1 extension is linked to Zone i can call handleInternalRequest for this extension:
var targetExtension = zone.getExtension("myExtension")
var responce = targetExtension.handleInternalRequest("Hello");
(And i cant find zone method getExtension() in docs ..)
But is extension is linked only to room how can i call handleInternalRequest for this extension ?
HandleInternalRequest to room extension HOW ?
-
kotbegemot
- Posts: 82
- Joined: 21 Nov 2010, 05:05
- Location: Saint-Petersburg
Hi. Yes the getExtension method isnt in the ass docs, as they're deprecated. You should use the java docs for these methods.
To get an extension that is attached to a room, you simply do:
room.getExtension("extension name");
This method is available for both zone and room. The rest is the same.
To get an extension that is attached to a room, you simply do:
room.getExtension("extension name");
This method is available for both zone and room. The rest is the same.
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.
Portfolio: https://rjgtav.wordpress.com/
SFS Tutorials: http://sfs-tutor.blogspot.com/ - Discontinued. Some examples may be bugged.
-
kotbegemot
- Posts: 82
- Joined: 21 Nov 2010, 05:05
- Location: Saint-Petersburg
You're right... strange... I'll see if i find a way...
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.
Portfolio: https://rjgtav.wordpress.com/
SFS Tutorials: http://sfs-tutor.blogspot.com/ - Discontinued. Some examples may be bugged.
-
kotbegemot
- Posts: 82
- Joined: 21 Nov 2010, 05:05
- Location: Saint-Petersburg
So after some search, and as i already suspected, you need to use the ExtensionManager.
Check this topic, as it is about the same issue:
http://forums.smartfoxserver.com/viewto ... textension
Check this topic, as it is about the same issue:
http://forums.smartfoxserver.com/viewto ... textension
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.
Portfolio: https://rjgtav.wordpress.com/
SFS Tutorials: http://sfs-tutor.blogspot.com/ - Discontinued. Some examples may be bugged.
-
kotbegemot
- Posts: 82
- Joined: 21 Nov 2010, 05:05
- Location: Saint-Petersburg
http://forums.smartfoxserver.com/viewto ... textension
PostPosted: Wed Apr 30, 2008 10:35 am Reply with quote
Joined: 04 Aug 2006
Posts: 42
NP! It would probably be a good idea to update the docs with the AS code for talking between rooms and zones as I'm sure this feature will be used extensively.
Best
Guys now 2011 year
PostPosted: Wed Apr 30, 2008 10:35 am Reply with quote
Joined: 04 Aug 2006
Posts: 42
NP! It would probably be a good idea to update the docs with the AS code for talking between rooms and zones as I'm sure this feature will be used extensively.
Best
Guys now 2011 year