Hello boys. Long time no see. You've catch my eyes with the new release containing RedBox. I'm very enthusiastic about this, but I've encountered a problem installing / starting up the module. It might be a trivial problem with Java... but it beats me. I'm hoping for some help. Here's the output whe...
A quote from Lapo's answers' on an old thread var rVars = roomObject.getVariables() // We cycle through the HashMap and trace each variable for (var i = rVars.entrySet().iterator(); i.hasNext();) { var rVar = i.next() var varName = rVar.getKey(...
What I am trying to say is that you still send irrelevant messages, even if now it's better because you send a message every 2 seconds. But all can be done better :). And you can rise the interval to 1 second, because messages won't be sent each second... except it there's a change in the user's beh...
Why kill the interval? This is what I was thinking about //this is the main boolean checked in the key listener var isTyping:Boolean = false; var lastWasTyping = false; smartfox.onObjectReceived = function(obj:Object, sender:User){ // you'll need to separate the objects it you want to u...
Hey, mnkyhead, you got it almost right. Your problem is simple. You don't check in the keylistener wheter the user is typing or not, because you already KNOW he's typing. You are doing this in the key listener when a key is pressed so, dooh, he's typing, you can bet on it :) - (maybe check if the cu...
Nobody sugested that you send a message each time a key is pressed. No way !!! You need to check when the user starts typing and when it stops, with a precission of like 500 milliseconds. If no keypress occures between 2 intervals, then the user stoped typing. If at least one keypress occurs, then t...
And here's what the docs say about the setUserVariables method Stores data on the server side. When you set/update/delete one or more User Variables all the other users in the room will be notified. User variables are usefull to store user profile data that can be shared across other users. I pasted...
getAllUsers() is a method of the Room Class In order to get all users from a room you must call it like var allUsersArray = _server.getCurrentRoom().getAllUsers() or var allUsersArray = _server.getCurrentZone().getRoom(someId).getAllUsers() and not just getAll...