Another client problem
Posted: 13 Apr 2007, 20:07
I have this:
And get this.
any idea?
Code: Select all
function onUserVariablesUpdate(userObj:User, changedVars:Array)
{
trace("onUserVariablesUpdate:" + userObj + ", changed vars: " + changedVars)
var variables:Object = userObj.getVariables()
var px:Number = variables["ypos"]
var py:Number = variables["ypos"]
trace("User: " + userObj.getName() + " is now located at " + px + ", " + py)
}seems that the smartfox client is receiving the vars, but they are not been legible or associable to the object.[Received]: <msg t="sys"><body action="uVarsUpdate" r="7"><vars><var n="xpos" t="n">3879</var><var n="ypos" t="n">3296</var></vars><user id="5" /></body></msg>
onUserVariablesUpdate:undefined, changed vars: xpos,ypos
User: undefined is now located at undefined, undefined
any idea?