Photogallery slider problems

I tried at actionscript forums however unsuccessfully.

I have piece of actionscript working that has a master button, in which pictures go and are arranged dyanimically on the screen. When clicked each button attaches the corrisponding larger version of the pic within it.

I also have a niffy little search function, which attaches coloured markers, to the corrisponding pictures, ie. animals to pictures of animals according to an array.

The problem is… i don’t really know how I did it :puzzle:

For example, if I try to add the search function to a set of buttons so that ‘animals’ button attaches only ‘animals’ markers, it says the array element is undefined, or even I have to put “animal !=true” in stead of " animals ==true" to make the search function to work, which doesn’t make sense.

I suppose this is acadamic as there are more impressive actionscripts like loading from and xml… http://www.kirupa.com/forum/showthread.php?t=79647&page=10

but its bugging me…

if anyone has any ideas,

heres the fla…

http://hermes.hud.ac.uk/c0568903/***2.fla

(i have just stuck the search function in so any of the bottom button activates it):puzzle: