Awesome!  Thanks!

Kevin

On 6/22/07, Douglas Knudsen <[EMAIL PROTECTED]> wrote:

Someone asked me about this, sorry name slipped me.  The below are some
code fragments that make it so that when a user clicks the divider, the left
view in teh hdividedbox opens/closes.

private var myDivOpen:Boolean;
[Bindable]
private var myDivPos:int;

private function handleDivUp( event:DividerEvent ):void{
                if( event.delta == 0)    {
                    if(myDivOpen)    {
                        myDivPos = lefty.width;
                        CloseLefty.play();
                        myDivOpen = false;
                    }    else    {
                        OpenLefty.play();
                        myDivOpen = true;
                    }

                }
            }

<mx:Resize id="CloseLefty" targets="{[lefty]}" duration="400"
widthTo="0"/>
    <mx:Resize id="OpenLefty" targets="{[lefty]}" duration="400"
widthTo="{myDivPos}"/>

<mx:HDividedBox  width="100%"
    height="100%" dividerRelease="handleDivUp( event )"   >
        <view:LeftFrameView id="lefty" width="20%" height="100%"
            creationComplete="myDivPos=this.width" />
        <view:RightFrameView width="80%" height="100%"  />
    </mx:HDividedBox>

--
Douglas Knudsen
http://www.cubicleman.com
this is my signature, like it?
-------------------------------------------------------------
To unsubscribe from this list, simply email the list with unsubscribe in
the subject line

For more info, see http://www.affug.com
Archive @ http://www.mail-archive.com/discussion%40affug.com/
List hosted by FusionLink <http://www.fusionlink.com>
-------------------------------------------------------------



-------------------------------------------------------------
To unsubscribe from this list, simply email the list with unsubscribe in the 
subject line

For more info, see http://www.affug.com
Archive @ http://www.mail-archive.com/discussion%40affug.com/
List hosted by http://www.fusionlink.com
-------------------------------------------------------------

Reply via email to