need help with OOP in AS2
Hello, I've been trying to find a tutorial to use OOP to create vectors that hold an X & Y variable... Then create a function that can loop through all vectors created to update or view them.
I know how to create a Class that can hold the variables, but I don't quite understand how I would manage the vectors...
I'd like to (for example) create a function that adds a new vector...
addVector(x,y);
a function to read all the vector positions...
readVectors(); <-loops through all vectors created
Then finally, a function to remove all vectors...
clearVectors();
Could anyone help me out or point me in the right direction?
Thankyou very much for reading.