Compare and replace within objects


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



Copy this code and paste it in your HTML
  1. for (var prop:String in o)
  2. {
  3. if (data[prop] != undefined) {
  4. data[prop] = o[prop];
  5. trace("data prop " + data[prop]);
  6. trace("o prop " + o[prop]);
  7. }
  8.  
  9. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.