I want to be able to loop through the layers in my map, and return the names of layers that are time-enabled.
I understand that I will need to check TimeInfo and this could be enabled on a dynamic, feature or Image service within the map.
I am looking for the tidiest way of doing this, in its own function that can be called and a name of a layer returned. I have been messing about with some If statements within a 'for each' loop, but I keep struggling and making it more complicated than it needs to be.
Any advice/pointers/snippets on how to code this up in Flex would be appreciated.