Dear All,

I try to make a maxmize function of a chart by making use of the 
swapdepth function. So that a popup dummy can swap the depth of a 
chart within a container. Is it possible. 

I try a little experiment, I find that even simple swap is not 
working for box3 and box4 in the following code. While for box1 and 
box2 is fine. Is there any other way round?

        <mx:Canvas width="100%" height="100%">
                <mx:HBox id="box1" width="100" height="200" 
backgroundColor="#0000FF" creationComplete="MiniDebug.trace('box1 ' 
+ box1.getDepth())"/>
                
                <mx:HBox id="box2" width="200" height="100" 
backgroundColor="#FF0000" creationComplete="MiniDebug.trace('box2 ' 
+ box2.getDepth())"/>
                
                <mx:Button x="200" y="200" click="box1.swapDepths
(box2)" label="swap"/>
        </mx:Canvas>
        
        <mx:Canvas width="100%" height="100%">
                <mx:HBox id="box3" width="100" height="200" 
backgroundColor="#0000FF" creationComplete="MiniDebug.trace('box3 ' 
+ box3.getDepth())"/>
                <mx:HBox>
                        <mx:HBox id="box4" width="200" 
height="100" backgroundColor="#FF0000" 
creationComplete="MiniDebug.trace('box4 ' + box4.getDepth())"/>
                </mx:HBox>
                <mx:Button x="200" y="200" 
click="box3.setDepthAbove(box4)" label="swap"/>
        </mx:Canvas>






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to