You could create separate sprites for each rectangle and apply the smaller one as a mask to whatever content is meant to show through the window.
--- In [email protected], "Christoph Leva" <[EMAIL PROTECTED]> wrote: > > Hi all, > > I am trying to cut a smaller rectangle (name: cutout) out of a rectangle, > which has the screen size. I read, that u can do it when you draw the cutout > reverse, but I don't know how to do it. > > I use the flash.display.graphics class. I created both rectangles, using the > drawRect() method. All commands to draw the rectangles are between > beginFill() and endFill() methods and I can see them both on stage. > > Can I do the cutting out with the drawRect() Method, or is there another > way? > > Christoph >

