AS1 addProperty Weirdness: 2nd parameter is a must

Spent the last 3 hours debugging an issue with a few of components that I’m hastily converting from AS2 to AS1. I have to manually use addProperty since AS1 does not support the AS2 way of implementing getters and setters.

I found that if you only define a get method, for AS1 you have to type in null for the setter, even if you don’t want one. This explicitly tells Flash you dont’ want one. If you type in nothing, I think Flash assumes it’s an empty string or something… at any rate, read-only getter variables set this way must have null typed in the second parameter instead of omitted, or you’ll get the wrong value when you trace it out.