Jump to content
Search Community

Liquid Area Stage Mask

gjacob test
Moderator Tag

Recommended Posts

"mask the preview area"? I'm not quite sure what you mean. If you can avoid using a mask, that'll definitely help improve your performance (masks in Flash are slow). You could position a rectangle on each side/edge of the screen that covers the unwanted content instead. Just an idea. And you can use LiquidStage to move or resize just about anything automatically when the stage resizes.

Link to comment
Share on other sites

Oh, I see. Two things to note:


1) LiquidArea (and AutoFitArea) has a "crop" special property that you can set to true when you attach() any object to it, and that causes the object to be cropped appropriately. See the ASDocs on the attach() method for details. This, of course, won't work for the entire stage, though, because you don't attach() the stage.


2) LiquidArea (and AutoFitArea) extends Shape, so you should be able to simply turn preview on and then use it as a mask for any DisplayObject. Like myObject.mask = myLiquidArea; I haven't tried that specifically with the stage though.


Does that help?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...