I am new to flex, so I apologize if this is a simple question. I have created several components that I have placed inside of a Group Container in my application. The Group container does not fill up the whole application. I want to be able to slide components outside of the "width" and "height" parameters of the Group container and no longer be visible, almost like the container was a viewport. I created a simple application as an example. I have created a button inside of a group container in the application, but moved the x and y coordinates of the button outside of the bounds of the group container. What do I need to do to make it so that you can no longer see the button when it is outside the bounds of the container? Thanks.
<?xml version="1.0" encoding="utf-8"?>
xmlns:mx="library://ns.adobe.com/flex/mx" width="1024" height="768">
<s:Group width="500" height="400" horizontalCenter="0" verticalCenter="0" color="0x121212" >
<s:Button x="-200" y="0" label="Bills Button"/>
Take a look at the mask property of DisplayObjects - should do the trick.
Thanks, mask is exactly what I needed!
Set clipAndEnableScrolling="true" on the Group