I uploaded the file to: http://dustyjewett.com/wp-content/uploads/2007/01/drawerdemo.zip <http://dustyjewett.com/wp-content/uploads/2007/01/drawerdemo.zip>
The original code is good, but my additions are pretty messy, I apologize... I've fixed one problem I was having (with Viewstacks, the first block of code in "getPosition()"... ), but the damn thing won't hide when switching tabs.... I'm subscribed the the hide/show events, but those don't bubble down. Thanks for the help guys! -Dusty --- In [email protected], "dustyjewett" <[EMAIL PROTECTED]> wrote: > > Hello, > > I'm attempting to extend the "Drawer" component found here: > http://kuwamoto.org/2006/05/11/example-code-updated-for-beta-3/ > > I've made changes so that: > A) it's a bottom-of-the-screen only component > B) it doesn't expand to the full width of the screen, only the width > of the Container it's in... this allows multiple drawers to be on the > screen. > > Unfortunately, there's one thing I can't figure out. The previous > code assumes that the parent will be the component that is > shown/hidden... However, if you have the Drawer attached to a > component nested deep down inside other components, you can't > determine if the parent component is really appearing on screen! > > If I do the equivalent of "trace(parent.visible)" (in this code, it's > "realParent" not "parent"), it always appears true, even though the > TabNavigator is on a completely different tab. How can I determine if > the parent component really is being displayed on the screen? >
