Object properties (kinda)

Ok, got another problem. Probably a noob question, sorry about that :stuck_out_tongue:

So to prevent many different variables (boxASize, boxBSize, etc.), I’d want to be able to have my Sprites a property that the Sprite class actually doesn’t have. So I could do box1.size, box2.size, box3.size, etc. I know you could do this in AS2, as in box.speed = 3; box.size = 8;, without any problems. But doing box.size = 3 just says it’s an undefined property. Do you have any suggestions or workarounds?