Loop through object properties

/ Published in: ActionScript 3
Save to your folder(s)

see http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/statements.html?filter_flex=4.1&filter_flashplayer=10.1&filter_air=2#for..in for details

Copy this code and paste it in your HTML
  1. for (var prop in myObject) {
  2. trace("myObject."+prop+" = "+myObject[prop]);
  3. }

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.