Prototype

hi,

here’s a question… if i do something like that on some prebuilt class:


Object.prototype.func = function() {
  //do smthng
}

//and then

var asd = {};
for(var i in asd) trace(i+" = "+asd*); //traces smthng like "function66 - function Function"

this is sortof a problem, as I use for-loops a lot… now as I understand prototype creates a dynamic variable - any chance there’s a fix to that, so the prototype reference wouldn’t be visible if I loop the object?

dnx