Found a posting that used attachMovie, but the same thing goes for
createClassObject. Here's what I found out using the 'content' keyword and
invalidating the scrollpane after assigning content to it. Sorry for the
bother everyone.

[code]
var scroller_sp = this.createClassObject(ScrollPane,'scroller_sp',0,{_x:5.3
,_y:6.3,_width:428,_height:195,hScrollPolicy:'on'});
scroller_sp.contentPath = 'listholder';
var modinit:Boolean = false;
function getEvents(eObj){
               for(var j=0;j<xmlDoc.firstChild.childNodes
[i].childNodes.length;j++){
                   var headliners = [];
                   headliners.addItem({image:xmlDoc.firstChild.childNodes
[i].childNodes[j].attributes.image,celllabel:xmlDoc.firstChild.childNodes
[i].childNodes[j].firstChild.nodeValue,data:xmlDoc.firstChild.childNodes
[i].childNodes[j].attributes.articleurl});
                   var sec = 'sec' + j + '_list';

scroller_sp.content.createClassObject(List,sec,0+j,{_x:(j *
143),_y:3,_width:143,_height:180});
                   scroller_sp.content.sec.hScrollPolicy = "off";
                   scroller_sp.content.sec.vScrollPolicy = "off";
                   scroller_sp.content.sec.dataProvider = headliners;
                   scroller_sp.content.sec.cellRenderer =
"CustomCellRenderer";
                   scroller_sp.content.sec.rowHeight = 180;
                   .......
       }
   }
   scroller_sp.invalidate();
[/code]
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to