A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Getting all properties of an object

  1. #1
    Senior Member
    Join Date
    Mar 2001
    Posts
    246
    I'm looking for a way to retrieve all the properties of an object, not necessarily knowing what the properties are called.
    Something like a 'getpropertylist'-function.

    Anybody know how I can do this?
    Any help or ideas are highly appreciated!

  2. #2
    Junior Member
    Join Date
    May 2002
    Posts
    7
    Code:
    for(x in tObject){
    			trace("prop = " + x);
    			trace("value = " + tObject[x]);
    }
    Hope this helps
    [Edited by internecin on 09-06-2002 at 06:22 PM]

  3. #3
    Senior Member
    Join Date
    Mar 2001
    Posts
    246
    Just what I needed, thanks a lot!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center