# Object properties (kinda)

**URL:** <https://forum.kirupa.com/t/object-properties-kinda/236228>\
**Category:** flash\
**Created:** [August 18, 2007, 6:13pm UTC](https://forum.kirupa.com/t/object-properties-kinda/236228 "2007-08-18T18:13:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mx781](https://avatars.discourse-cdn.com/v4/letter/m/54ee81/32.png) [@mx781](https://forum.kirupa.com/u/mx781)\
**Post date:** [August 18, 2007, 6:13pm UTC](https://forum.kirupa.com/t/object-properties-kinda/236228/1 "2007-08-18T18:13:03Z")

</div>

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

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?
