# Newb code question

**URL:** <https://forum.kirupa.com/t/newb-code-question/998>\
**Category:** flash\
**Created:** [August 5, 2002, 11:42pm UTC](https://forum.kirupa.com/t/newb-code-question/998 "2002-08-05T23:42:59Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Novel\_Idea87](https://avatars.discourse-cdn.com/v4/letter/n/9fc29f/32.png) [@Novel\_Idea87](https://forum.kirupa.com/u/Novel_Idea87)\
**Post date:** [August 5, 2002, 11:42pm UTC](https://forum.kirupa.com/t/newb-code-question/998/1 "2002-08-05T23:42:59Z")

</div>

If I have 3 different things manipulating a data arry (eg. new Object(x,y,z)) how do i distinguish each manipulation and tell it to use x and not y. Keep in mind I am a newb so dont make fun of me 2 much. Thank you.

---

<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:** [August 6, 2002, 2:08am UTC](https://forum.kirupa.com/t/newb-code-question/998/2 "2002-08-06T02:08:59Z")

</div>

You have to define each value ie x,y,z by declaring variable and making a certain function or object equal to that value.

this.\_ymouse = y;  
this.\_xmouse = x;  
this.\_height = z;  
something to that effect I believe.

Hope this helps

Kyle  
🙂

---

<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:** [August 6, 2002, 8:32pm UTC](https://forum.kirupa.com/t/newb-code-question/998/3 "2002-08-06T20:32:23Z")

</div>

> \*Originally posted by Novel\_Idea87 \*  
> **If I have 3 different things manipulating a data arry (eg. new Object(x,y,z))**  
> I’m afraid you’re going to have to explain that once more, man, because I don’t understand what you mean by things MANIPULATING a data array.

And by the way:

```auto
A=new Object(x,y,z); //equivalent to
A={x,y,z}; // but:
B=new Array(x,y,z); //same as
B=[x,y,z];

```

In other words: an object is not an array.

LAst but not least, you access to the data in your array with its index, starting from 0. That’s why

```auto
m=B[0];
// m=x;

```

pom :asian:

---

<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:** [August 7, 2002, 4:44am UTC](https://forum.kirupa.com/t/newb-code-question/998/4 "2002-08-07T04:44:21Z")

</div>

Thanks, uve been alot of help, but i figured a very simple way around it. Ty
