Share Posted October 6, 2011 I was wondering if there is a way to mask to the preview area other then setting a listener and resizing a shape. thanks greg Link to comment Share on other sites More sharing options...
Share Posted October 6, 2011 "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 More sharing options...
Author Share Posted October 6, 2011 you can show the preview area of a liquid area with liquidArea.preview = true; it would be nice to use that red shape that is shown as as a mask. im not to concerned about performance on this project. Link to comment Share on other sites More sharing options...
Share Posted October 6, 2011 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 More sharing options...
Author Share Posted October 7, 2011 Oh Thanks, Thats exactly what I wanted. I dont know how i oversaw that option Thanks for the help. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now