2 Replies Latest reply on Aug 8, 2010 4:14 PM by Shongrunden

    Z index with clipContent=false?

    andrewthorp Level 1

      <mx:VBox width="100%" height="300" clipContent="false">
      <mx:Canvas id="canvas1" width="500" height="700" backgroundColor="0xffffff" />
      <mx:VBox width="100%" height="300">
      <mx:Canvas id="canvas2" width="100%" height="100%" backgroundColor="0x282828" />


      With the above code, the first canvas (background 0xffffff, canvas1) correctly is drawn past the first vbox, however it is drawn behind the canvas in the 2nd vbox (canvas2, background colx 0x282828). I wanted to know how I can make canvas1 appear on top of canvas2, essentially bringing canvas1 to the front, or changing it's z-index.