Hello all, I resorted to using createClassObject to create lists
inside a scrollpane, simulating a horizontal list. Yes, I imagine it
must be silly to do this - don't know really - but I was wondering if
anyone could tell me how to make the scrollpane scrollable with the
lists not extending outside its boundaries as they are now. Is this
just the completely incorrect method? Do I use createChildAtDepth() or
createObjectAtDepth()? Thanks in advance.
<snip>
var scroller_sp =
this.createClassObject(ScrollPane,'scroller_sp',DepthManager.kBottom +
20,{_x:5.3,_y:6.3,_width:428,_height:195,hScrollPolicy:'on'});
var modinit:Boolean = false;
function getEvents(eObj){
for(var i=0;i<xmlDoc.firstChild.childNodes.length;i++){
if(modinit == false){
if(xmlDoc.firstChild.childNodes[i].nodeName.toLowerCase() == 'headliners'){
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.createClassObject(List,sec,0+j,{_x:(j *
143),_y:3,_width:143,_height:180});
scroller_sp[sec].hScrollPolicy = "off";
scroller_sp[sec].vScrollPolicy = "off";
scroller_sp[sec].dataProvider =
headliners;
scroller_sp[sec].cellRenderer =
"CustomCellRenderer";
scroller_sp[sec].rowHeight = 188;
</snip>
J.C. Berry
_______________________________________________
[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