# Access other class' variables

**URL:** <https://forum.kirupa.com/t/access-other-class-variables/273228>\
**Category:** Uncategorized\
**Created:** [October 13, 2008, 12:00pm UTC](https://forum.kirupa.com/t/access-other-class-variables/273228 "2008-10-13T12:00:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![spir](https://avatars.discourse-cdn.com/v4/letter/s/c4cdca/32.png) [@spir](https://forum.kirupa.com/u/spir)\
**Post date:** [October 13, 2008, 12:00pm UTC](https://forum.kirupa.com/t/access-other-class-variables/273228/1 "2008-10-13T12:00:25Z")

</div>

Hello Everyone,

I am making a tileMap class which copies bitmapdata from one location to another. I am storing all my tile-sheets as static bitmapdata objects in an Assets class. Would it be faster/ better practice to copy the tile-sheet I am using to the tileMap class instead of referencing the assets class multiple times every frame? Also the map array which stores the tile reference is stored as a static property in a map class, could I achieve better performance by duplicating this array in the tileMap class?

Thanks

Spir
