2 Replies Latest reply on Aug 13, 2008 2:29 PM by javamonjoe

    mask problem

    javamonjoe
      I have a simple mask added to a UIComponent as follows:
      var clipMask : Sprite = new Sprite();
      clipMask.graphics.beginFill(0x000000);
      clipMask.graphics.drawRect(x, y, width, height);
      clipMask.graphics.endFill();
      addChild(clipMask);
      this.mask = clipMask;

      This mask works fine when the component is housed on a simple application->canvas, but when I take that same canvas and place it as part of a tab-navigation my mask's width and height always remain at zero. This makes for a very small mask indeed! I've attempted to reset the height/width in the updateDisplayList and other places, but it does no good.

      Any ideas as to why this is so and how it may be corrected?

      thanks in advance.