2 Replies Latest reply on Jul 17, 2009 9:49 AM by rcanulla

    height on dynamic items?

    rcanulla Level 1

      I have a class that extends Box, with text from differint sources so that the items will all have differint height. When I trace _item.height, it gives me "0".

       

      Thoughts?

       

                     for(var i:int=0; i<10; i++){
                          _title = model.data.getItemAt(i).title;
                          _info = model.data.getItemAt(i).pubDate;
                          _abstract = model.data.getItemAt(i).description;
                          _URL = model.data.getItemAt(i).link;
                          
                          _item = new NewsItemView(_title, _info, _abstract);
                          _item.name = "item " + i;
                          //_item.titleText.addEventListener(MouseEvent.CLICK, getURL);
                          addChild(_item);
                          trace(_item);
                     }