Array in class

I’ve tried to google but to not avail.

For simplicity I want a class to read an array and act accordingly.

any help thanks? (found an as3 example which didn’t work…)