But, to answer your question:
will iterate over all properties of v and set the property name as p within the loop. [ February 15, 2008: Message edited by: Bear Bibeault ]
That's because you haven't created a JavaScirpt object.
When you declare a variable as such:You have created a variable with undefined contents.
You then attempted:which tried to created a property named A on undefined content. No can do.
By the way, when defining properties such as A, which are valid identifiers, it's good practice to use the simpler dot notation rather than the general  notation: They are completely equivalent. [ February 19, 2008: Message edited by: Bear Bibeault ]