Thanks for your answer!
I used the first method and that will do the trick (by rotating the tiled BG since my bar has a specific shape).
<img src="https://dl.dropbox.com/u/39121175/spritemasked02.png" border="0" />
But still, I'd really like to know how to hide/reveal a sprite with a mask, that's an information I'd really like to acquire... Could someone explain or show me an existing tutorial/example?