//This class receives an array to walk in //Methods returns generic strings class util.IteratorCat{ private var current:Number //current position of the current private var lista:Array //filtered list of photos private var nombres:Array //filtered list of names private var cat:Array //lista de categories private var photoNames:Array //total list of names private var photoList:Array //total list of photos //Constructor function IteratorCat(photos:Array, cats:Array, names:Array){ this.cat = cats //list of categories this.photoNames = names //total list of names this.photoList = photos //save the total list of photos not filtered //Initialize lista and nombres whitout filter by default lista = new Array() nombres = new Array() //Copy to avoid values by reference var largo = photoList.length for(var i=0; i