handleInternalEvent evt.name
Posted: 08 Aug 2008, 14:34
Not sure if it's a bug, but the serverside evt.name taken from handleInternalEvent(evt) acts strange with the switch:
with this code nothing is traced
but if i use switch (String(evt.name)) it traces the login request.
this makes me thing that evt.name is not a string but if before the switch i trace(evt.name == "loginRequest") the output is true
with this code nothing is traced
Code: Select all
function handleInternalEvent(evt) {
switch (evt.name) {
case "loginRequest":
trace("login requested")
break
}
}
this makes me thing that evt.name is not a string but if before the switch i trace(evt.name == "loginRequest") the output is true