0 Replies Latest reply on Jul 20, 2011 8:44 AM by flexillu10

    Is it possible to resize the children of a viewstack(coverflow)

    flexillu10 Level 1

      I am using a coverflow component which extends a viewstack: http://dougmccune.com/blog/2007/11/03/coverflow-flex-component/

       

      I can add children (canvas with an image)  fine by explicity setting the width and height of the canvas. Then i can align the children in the centre of the canvas.

       

      However if i specify a different size of canvas when adding a new child all the previosuly added children become unaligned.

       

      So is there any way to resize the children of a viewstack? Or does anyone have any other solutions?

       

      here is my add child code:

       

      var tmpchild:Canvas = new Canvas();
      
      //These can't be changed without un aligning other children already present in the viewstack
      tmpchild.height=170;
      tmpchild.width=170;
                               
      var tmpimage:Image = new Image();                         
      tmpimage.source=imageSource;
      tmpimage.horizontalCenter=0;
      tmpimage.verticalCenter=0;
                          
      tmpchild.addChild(tmpimage);
      tmpchild.verticalCenter = 0;
                                    
      coverflow.addChild(tmpchild);
                          
      
      

       


      Thanks