all groups > flash actionscript > october 2004 >
You're in the

flash actionscript

group:

How to display text into 2 column



How to display text into 2 column amvian
10/18/2004 9:46:00 PM
flash actionscript: I read data from XML file and I would like to display data into 2 columns and I would like to have a scrollbar accordring to data.
Does anyone have idea how to do it.

Thanks
Re: How to display text into 2 column bestjamie
10/19/2004 12:51:19 AM
Maybe you can use DataGrid components.
var array=new Array();
myDG.setColumns("text1","text2")l
myDG.resizableColumns = true;
var xml = new XML().......
.....
.....
array.addItem({text1:text1.nodeValue,text2:text2.nodeValue...)
.....
.....
myDG.dataProvider=array
myDG.addItem({text1:text1.nodeValue,....../)
myDG.hScrollPolicy="on";

I've done like this and you can refer to help :)
AddThis Social Bookmark Button