Dec 18, 2003 #1 vladibo Programmer Sep 14, 2003 161 CA Is there a way to view all the properties of one Object in ActionScript 2 or 1. Something like print_r($obj) in PHP or Reflection classes in Java? Thank you
Is there a way to view all the properties of one Object in ActionScript 2 or 1. Something like print_r($obj) in PHP or Reflection classes in Java? Thank you
Dec 18, 2003 Thread starter #2 vladibo Programmer Sep 14, 2003 161 CA This is the solution: myObj = new Object(); myObj.a = 5; myObj.b = 10; x = new Array(); x[0] = "olala"; x[0] = "tralala"; myObj["c"] = x; for (each in myObj) { trace(typeof(myObj[each])); trace(each + "," + myObj[each]); } I got an answer in flashkit.com Upvote 0 Downvote
This is the solution: myObj = new Object(); myObj.a = 5; myObj.b = 10; x = new Array(); x[0] = "olala"; x[0] = "tralala"; myObj["c"] = x; for (each in myObj) { trace(typeof(myObj[each])); trace(each + "," + myObj[each]); } I got an answer in flashkit.com