Hi
i'm trying to create a function where when i pass a variable to it it displays both the var and the value...
like:
sex = "yes please";
checker = function(var){
trace([var] +"=" + var);
}
checker(sex);
//should output "sex=yes please"
but ofcourse the above function wont output the variable name.. how do i accomplish what i want? any ideas?
regards
TJ