actionscript 3 - Flash AS3 suddenly unable to delete values from objects -


this interesting. flash cs6 has lost ability iterate through objects , delete values (which did work before)

delete values object keys

for each(var key:string in scorekeep.scorecard)     scorekeep.scorecard[key] = 0; 

the object (scorekeep.as)

static public var scorecard:object = {       "fish":6, "golfball":2, "gloves":8, "boot":4,  }; 

you can trace object key. value still there.

you using wrongly, not supposed for each for. for each take value, not key.

you have "," after last prop in object, assume that's typo (and should result in compile-time error).


Comments

Popular posts from this blog

html - Firefox flex bug applied to buttons? -

html - Missing border-right in select on Firefox -

python - build a suggestions list using fuzzywuzzy -