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