Making a mask

Is that possible to make a mask using setMask() in an empty movie which is loading an external xml file? If yes, does anyone have an example with it?

I read somewhere the mask is only working in a full pic or Movie clip…

thanks in advance,