AE : Using a drawn brush as a mask
If you use the brush on a layer, it actually applies the "paint" effect to the layer. If you paint on a layer with the brush and expand the properties for effects>paint>brush 1> you'll see that there is a start and end setting that can be animated, allowing you to animate the stroke.