Thanks dpizzle
for your reply. I have thought so. So I redesigned the slider. In the first layer I have a SPQuad object which is filled with some color. In the second layer (higher) I have a PNG texture with a rectangle with rounded corners. The texture is transparent inside and outside it has a color. The width of the SPQuad object is the same as the texture. When the user touches the screen, SPQuad object scales according to the user finger position. I have no need for clipping mask anymore.