[Flash8]Help with Kirupa squirrel finder

http://www.kirupa.com/web/xml/examples/squirrelfinder.htm

The above is the excellent tutorial I am using. I am pretty sure on the topics it covers now. I wanted to extend this method a little and am not getting anywhere yet.

I want to put a limit on the squirrels, so that only the ones you want will appear. Say you wanted Abert, Fox and Pine squirrels to appear, and the rest to be ignored when the for loop creates the menu, how do you do this?

My idea was to use an array based on the species node which you could specify the squirrels you want on your menu, this would be hardcoded at the beginning of the AS. Then in the ‘CreateMenu’ function there would be something that checks the species node against the array, and if it exists in the array, to continue and build the menu element. I want to keep the AS as clean and reusable as possible, so for instance it can be replicated on multiple frames, if different squirrel menus were needed.

I hope I’ve made myself clear, and any help on the subject is most welcome.