Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Object IReflection in ActionScript 2 ?

Status
Not open for further replies.

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
 
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top