Search found 12 matches

by Hatta
14 Feb 2012, 00:11
Forum: Server Side Extension Development
Topic: Conversion JAVA List<JSONObject> in Array AS3 failed
Replies: 4
Views: 12450

I did it! :D
I understand how to convert a Java Collection of elements JsonObject as <JSONObject> List in ActionScript 3 array.

The problem is the type of JSONObject used.
There are two types of JSONObject:
org.json.JSONObject
net.sf.json.JSONException
Which to use?
The confusion is (IMHO ...
by Hatta
13 Feb 2012, 00:50
Forum: Server Side Extension Development
Topic: Conversion JAVA List<JSONObject> in Array AS3 failed
Replies: 4
Views: 12450

Hello and thanks for the answer.
Now I tried to use the structure of JSONArray instead of the List<JSONObject> but nothing, however I get null when I run the cast :(
by Hatta
12 Feb 2012, 21:42
Forum: SmartFoxServer 1.x Discussions and Help
Topic: Debug Flash not working on FlashBug (addon Firefox)
Replies: 2
Views: 8111

Ok, thanks a lot. Sorry for the OT post
by Hatta
12 Feb 2012, 21:39
Forum: Server Side Extension Development
Topic: Conversion JAVA List<JSONObject> in Array AS3 failed
Replies: 4
Views: 12450

Conversion JAVA List<JSONObject> in Array AS3 failed

Hi all,
when I try to convert a Collectio <?> JAVA, in this case a List<JSONObject>, in ActionScript Array, the conversion fails and returs me null.

I have a ServerSide JAVA Extension that sends to the client a message with JSONObject format, composed in this manner (I lightened the code and ...
by Hatta
10 Feb 2012, 10:45
Forum: SmartFoxServer 1.x Discussions and Help
Topic: Debug Flash not working on FlashBug (addon Firefox)
Replies: 2
Views: 8111

Debug Flash not working on FlashBug (addon Firefox)

Hello everyone.

I can not understand why FlashBug, the addon in Firefox, it not shows me the SmartFoxClient's log and even those that I insert with the trace function.

I create a new flash file, the object SmartFoxClient with parameter to true to enable logging and I also added a personal log with ...
by Hatta
07 Feb 2012, 13:11
Forum: SmartFoxServer 1.x Discussions and Help
Topic: How to setUserVariables with false
Replies: 3
Views: 6985

Thanks for clarification.
Although, at this point, I wonder why give the possibility to set the third parameter to false. Since the event is not fired, as you may use the variables set.
Hmmmm .... think about it could be used to pass variables between server side and maybe another precisely without ...
by Hatta
06 Feb 2012, 02:11
Forum: SmartFoxServer 1.x Discussions and Help
Topic: Manage double login of same user
Replies: 2
Views: 6501

Manage double login of same user

Here I am again with another question.

I'm trying to "recover" a user already logged in SFS from another swf file, but I can not.

Let me explain.
I have two swf file that do exactly the same thing:


sfs = new SmartFoxClient(true);
sfs.addEventListener(SFSEvent.onConnection, onConnection);
sfs ...
by Hatta
06 Feb 2012, 01:46
Forum: SmartFoxServer 1.x Discussions and Help
Topic: How to setUserVariables with false
Replies: 3
Views: 6985

How to setUserVariables with false

Hi everyone, I have some questions regarding the method setUserVariables in a server side extension.

If the method setUserVariables i set the third parameter to false, so I avoid that the event onUserVariablesUpdate is fired and that all users receive the update, I guess I have to manage it all by ...
by Hatta
05 Jan 2012, 13:07
Forum: SmartFoxServer 1.x Discussions and Help
Topic: SFS Pro with Jetty/Tomcat, how to?
Replies: 2
Views: 5855

Ok, I solved for Jetty (I don't know this web serve. I simply look a little 'files already exist).

It remains only the problem of using servlets present on another server.
Thx
by Hatta
05 Jan 2012, 01:42
Forum: SmartFoxServer 1.x Discussions and Help
Topic: SFS Pro with Jetty/Tomcat, how to?
Replies: 2
Views: 5855

SFS Pro with Jetty/Tomcat, how to?

Good evening.
I have a little 'in doubt regarding the ability to use:
Embedded Jetty Web Server
External HTTP Web Services with the Java programming language.

Is there any article that shows a practical example? I try to explain. If I wanted to write a servlet and use Jetty, where it creates the ...
by Hatta
05 Dec 2011, 23:22
Forum: SmartFoxServer 1.x Discussions and Help
Topic: DB Manager not work on Ubuntu but work on Win
Replies: 2
Views: 6059

Hi Lapo.
Sorry but the string is correct only that, then copy paste from Ubuntu to forum, automatically (not know why) were added spaces and converted to uppercase letters.

So I thought, since the settings in Ubutnu I have not handwritten but I did copy / paste, in crimes there was some strange ...
by Hatta
04 Dec 2011, 22:53
Forum: SmartFoxServer 1.x Discussions and Help
Topic: DB Manager not work on Ubuntu but work on Win
Replies: 2
Views: 6059

DB Manager not work on Ubuntu but work on Win

Hi, I'm trying to start SmartFoxServer with the DB Manager active on the Linux operating system Ubuntu, but I can not.
The Server works until I configure it to connect to MySQL.

I performed the same tasks on Windows and SFS works!
However, summarize everything here:
- I installed the MySQL DB
- I ...