# setInterval() and object method

**URL:** <https://forum.kirupa.com/t/setinterval-and-object-method/16127>\
**Category:** Uncategorized\
**Created:** [March 21, 2003, 4:33am UTC](https://forum.kirupa.com/t/setinterval-and-object-method/16127 "2003-03-21T04:33:00Z")\
**Posts on this page:** 3\
**Page:** 2

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [March 21, 2003, 9:18pm UTC](https://forum.kirupa.com/t/setinterval-and-object-method/16127/21 "2003-03-21T21:18:05Z")

</div>

I have no clue what pointers are.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [March 21, 2003, 9:21pm UTC](https://forum.kirupa.com/t/setinterval-and-object-method/16127/22 "2003-03-21T21:21:24Z")

</div>

they’re just references. Basically, in Flash, an array variable is a pointer. A number variable is not. Why? Consider the following

myArray = myOtherArray;  
myNumber = myOtherNumber;

if you change myArray, you are also changing myOtherArray since array variables are references - or pointers - to the array in memory. changing myNumber wont affect myOtherNumber at all since myNumber is a direct copy and not the same position in memory as the original myOtherNumber.

Having pointers gives you direct control over what you use as a copy and what you use as a reference.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [March 22, 2003, 8:26am UTC](https://forum.kirupa.com/t/setinterval-and-object-method/16127/23 "2003-03-22T08:26:52Z")

</div>

AHHHHHHHHHHHHHHHHHHHHHHHHHHH…

Why are you torturing me, senocular???

AHHHHHHHHHHHHHHHHHHHHHHHHHHH…

[Previous page](https://forum.kirupa.com/t/setinterval-and-object-method/16127.md?page=1)
