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

mysql - FireDac error 314 - but DLLs are in program directory -

git - How to list all releases of public repository with GitHub API V3 -

c++ - Getting C2512 "no default constructor" for `ClassA` error on the first parentheses of constructor for `ClassB`? -