From: Doug M. <do...@cr...> - 2003-01-26 01:31:38
|
What you do is have your content layer inside of a clipping layer: The content layer moves up and down (or left to right) "behind" the clipping layer. The Content layer is a child of the clipping layer and can be any size. The clipping layer acts as a "window" into the content layer.. A bit drunk and maybe not too clear.. See example: http://www.richardinfo.com/examples/Doug_Melvin_Examples/myscroll.htm See all the examples: http://www.richardinfo.com/examples/php/examples.html ----- Original Message ----- From: <gl...@fa...> To: <dyn...@li...> Sent: Saturday, January 25, 2003 8:44 AM Subject: [Dynapi-Help] hiding content > hello, i am just starting to learn dynapi, and am in the process of > rigging up a scrolling type of site. I decided to construct my own > scrollbar for the learning process. > > Anyway, my scrollbar is now working ok, problem is, i cant figure out how > to set an invisibility box outside the scrollbar. i.e. if the content > being scrolled isnt in a certain area it needs to be invisible. > > I have tried setClip, but this just clips the content, so i just have > incomplete content sliding up and down. > > I thought maybe if i create a layer and apply the setClip to this, then > have the content as a child this may work.. But i tried this and couldnt > reference to the child to scroll it independantly from the parent. i > tried to reference as in: parent.child.getPageY() etc and > child.getPageY() etc, neither of these worked. > > so, does anybody know how to get this to work? > > thanks in advance > > Rob > --------------------------------- > Robert Oates > web person > Luminate: http://www.luminate.org.uk/ > > -- > http://fastmail.fm - Access your email from home and the web > > > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > http://www.vasoftware.com > _______________________________________________ > Dynapi-Help mailing list > Dyn...@li... > https://lists.sourceforge.net/lists/listinfo/dynapi-help > |