# Flash n00b with questions

**URL:** <https://forum.kirupa.com/t/flash-n00b-with-questions/226387>\
**Category:** Uncategorized\
**Created:** [May 21, 2007, 2:04am UTC](https://forum.kirupa.com/t/flash-n00b-with-questions/226387 "2007-05-21T02:04:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Loof](https://avatars.discourse-cdn.com/v4/letter/l/7ab992/32.png) [@Loof](https://forum.kirupa.com/u/Loof)\
**Post date:** [May 21, 2007, 2:04am UTC](https://forum.kirupa.com/t/flash-n00b-with-questions/226387/1 "2007-05-21T02:04:33Z")

</div>

Can someone please tell me what exactly “getBounds” does? I’ve been reading about it and I don’t understand. I learned about it from this line of code:

> if (\_root.walls.hitTest(getBounds(\_root).xMax, \_y, true)) {

(The rest of the if statement isn’t important)

Also, can someone tell me how to add cheats to games? For example, if I want the game to spit out an extra life when you type “extralife”, what would I do?

Thanks!
