ScrollControlBase does have a .mask property. It is inherited from DisplayObject
________________________________ From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Nayan Savla Sent: Wednesday, March 26, 2008 4:58 PM To: [email protected] Subject: Re: [flexcoders] making custom component scrollable I am using the scrollcontrolbase and it doesn't have any mask property. messing with themashShape variable didn't yield good results as well. thanks for your suggestions. Nayan On Wed, Mar 26, 2008 at 4:47 PM, Alex Harui <[EMAIL PROTECTED] <mailto:aharui%40adobe.com> > wrote: > > > > > > > > > > You have to set the mask as the .mask property on some internal container of > your children. For TextArea, the TextField does the masking, for ListBase, > it is the listContent property that gets masked and all children are within > it. > > > > ________________________________ > > > From: [email protected] <mailto:flexcoders%40yahoogroups.com> [mailto:[email protected] <mailto:flexcoders%40yahoogroups.com> ] On > Behalf Of Nayan Savla > Sent: Wednesday, March 26, 2008 3:04 PM > To: [email protected] <mailto:flexcoders%40yahoogroups.com> > Subject: Re: [flexcoders] making custom component scrollable > > > > > > > > > I looked at those classes and then extended my component from > ScrollControlBase, the scrollbar shows up fine but it doesn't mask the > child contents. The height of scrollbar also adjusts itself to the > height of my component children but they just don't get masked. > > i see that updateDisplayList is the function in ScrollControlBase > which sets the mask width and height. I am overridding > updateDisplayList in my component. > > maybe i am missing something fundamental here. > > thanks > Naayan > On Wed, Mar 26, 2008 at 1:25 PM, Alex Harui <[EMAIL PROTECTED] <mailto:aharui%40adobe.com> > wrote: > > > > > > > > > > > > > > > > > > > > You can look at how TextArea and ListBase use the setScrollProperties > method > > and respond to scroll events. > > > > > > > > ________________________________ > > > > > > From: [email protected] <mailto:flexcoders%40yahoogroups.com> [mailto:[email protected] <mailto:flexcoders%40yahoogroups.com> ] On > > Behalf Of Nayan Savla > > Sent: Wednesday, March 26, 2008 12:07 PM > > To: [email protected] <mailto:flexcoders%40yahoogroups.com> > > Subject: [flexcoders] making custom component scrollable > > > > > > > > > > > > > > > > > > Hi All, > > > > I have a class extending UIComponent and i want to add a dynamic > > scrollbar to it. I could extend this class from ScrollControlBase > > instead but not sure how it will make it scrollable. Can I do an > > addChild in the createChildren of scrollcontrolbase and will it > > determine the child which is scrolled? > > > > I tried using this component inside HBox and make the box scrollable > > but it doesn't work. > > > > any help will be appreciated. > > > > thanks > > Nayan > > > > > >

