Newb code question

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.

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
:slight_smile:

*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:

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

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

pom :asian:

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