AS to just one layer

Hi, Im wondering, is it possible to apply an AS to just “one layer” so that all the objects in the layer will be controled? (something like coloring all objects in layer 1 red…)