Fill shape layer with an image (after effects) How can I fill a shape, with an image in After effects? 

For example, something like this:
http://upload.wikimedia.org/wikipedia/commons/b/bc/Europe_flags.png

I found an answer somewhere that I need to create two layers, and texture layer to parent the shape layer, and use alpha matte. I cannot find alpha matte in my AE CC. but that does not seem to work 

Any link to tutorial will be accepted.
If what you want to have as an end result is a flag texture inside a non-standard shape, can I suggest instead that you import the flag texture, and use a matte to change its shape? If you've already created a shape that you want to use, you could convert it into your matte by adding a key frame to the matte's path control, adding a keyframe to the shape, copying that key frame, and then pasting the key frame over the matte's path keyframe. 
This is probably easier than using unnecessary alpha channels etc.