Hi,
Today while debugging an application I found a really strange behaviour.
Here it is what I have found:
Create a new as3 FLA and type this in the first frame:
var p:Object = new Object();
p[“052”] = “052”;
p[“002”] = “002”;
for (var a in p){
trace(a)
}
if you run it from Flash IDE it will trace:
52
002
Then publish the html and run it from inside a browser.
If you have flashtracer installed, you will see that this time it will trace:
052
002
I know, you can ask “why the hell you create a property named with numbers?”
The answer is that these properties are created on the fly by reading from a webservice but I don’t really know why this was the choice.
However it’s a bug, unfixable in the IDE.