Re: [Flashcoders] ScrollRect and masking

2010-07-12 Thread Omar Fouad
What about extending movieClip and overriding the height property to return the mask height On Mon, Jul 12, 2010 at 12:14 AM, Glen Pike postmas...@glenpike.co.ukwrote: currentModule.myMask ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com

Re: [Flashcoders] ScrollRect and masking

2010-07-12 Thread Omar Fouad
Well I will do as Glen suggested, the first option. In my custom class that implements an IModuleConteiner interface, I will add a get fixedHeight():Number function. Thanks everyone for the help On Mon, Jul 12, 2010 at 11:41 AM, Omar Fouad omarfouad@gmail.comwrote: What about extending

Re: [Flashcoders] ScrollRect and masking

2010-07-11 Thread Glen Pike
You should possibly roll your own class which is the list + mask that reports it's height and width as that of the mask. Alternatively, if you are feeling lazy, make the mask a symbol give it an instance name in the IDE, or do it programmatically and access the width / height of that in your

Re: [Flashcoders] ScrollRect and masking

2010-07-10 Thread Omar Fouad
No one? On Thu, Jul 8, 2010 at 10:34 AM, Omar Fouad omarfouad@gmail.com wrote: Thanks for the reply. I'm already doing that, as the list loads its data upon added to stage On Thu, Jul 8, 2010 at 8:25 PM, Ktu ktu_fl...@cataclysmicrewind.comwrote: you could try positioning it before

[Flashcoders] ScrollRect and masking

2010-07-08 Thread Omar Fouad
Hello, I'm working on some project where I have a big container Sprite and based on what I need, I add some ui inside of it. Once I add this ui, and I make sure that everything is there on its place, I align this container sprite to fir in the center of my stage: private var

Re: [Flashcoders] ScrollRect and masking

2010-07-08 Thread Ktu
you could try positioning it before you add the 'list' to the displayList of the container. Ktu; On Thu, Jul 8, 2010 at 12:49 PM, Omar Fouad omarfouad@gmail.com wrote: Hello, I'm working on some project where I have a big container Sprite and based on what I need, I add some ui inside

Re: [Flashcoders] ScrollRect and masking

2010-07-08 Thread Omar Fouad
Thanks for the reply. I'm already doing that, as the list loads its data upon added to stage On Thu, Jul 8, 2010 at 8:25 PM, Ktu ktu_fl...@cataclysmicrewind.com wrote: you could try positioning it before you add the 'list' to the displayList of the container. Ktu; On Thu, Jul 8, 2010