Scroll pane help..... very urgent

i need help badly with this…

i need to display some data within a scroll pane. This is the my code:
Frame 1 of main movie clip:

var end=“1”
loadVariablesNum(“DataFR.txt”,0);

Frame 2 of main movie clip:
if (end ne “1”) {
trace (“end”+end);
complist = new Array();
cpvallist = new Array();
cpattachlist = new Array();
cppenlist = new Array();
spvallist = new Array();
spattachlist = new Array();
sppenlist = new Array();
totcpattachlist = new Array();
totcppenlist = new Array();
totvallist = new Array();
totattachlist = new Array();
totpenlist = new Array();

totrows = Number(totrows);
totrows=totrows+1;
trace (“totrows”+totrows);
var xcor = 50;
var ycor = 100;
trace (“xcor”+xcor)
for (var i = 0; i trace (“i”+i);
complist* = eval(“comp”+i);
cpvallist* = eval(“cpval”+i);
cpattachlist* = eval(“cpattach”+i);
cppenlist* = eval(“cppen”+i);
spvallist* = eval(“spval”+i);
spattachlist* = eval(“spattach”+i);
sppenlist* = eval(“sppen”+i);
totvallist* = eval(“totalvalue”+i);
totattachlist* = eval(“totalattach”+i);
totpenlist* = eval(“totalpen”+i);

}
//populatevalues();
var b = 0;
var c = “0”;

//b = complist.length;

for (var j = 0; j this.attachMovie(“a”, “a”+j, j);
var thisa = this[“a”+j];
thisa._x = xcor;
thisa._y = ycor;
thisa.comp = complist[j];
thisa.cpval = cpvallist[j];
thisa.cpattach = spattachlist[j];
thisa.cppen = cppenlist[j];
thisa.spval = spvallist[j];
thisa.spattach = spattachlist[j];
thisa.sppen = sppenlist[j];
trace(“totvallist[j]”+totvallist[j]);
thisa.totval= totvallist[j];
trace(“thisa.totval”+thisa.totval);
thisa.totattach=totattachlist[j];
thisa.totpen=totpenlist[j];
ycor = ycor+20;
}
thisa.cpval=gtotcpval;
thisa.cpattach=gtotcpattach;
thisa.cppen=gtotcppen;
thisa.spval=gtotspval;
thisa.spattach=gtotspattach;
thisa.sppen=gtotsppen;
thisa.totval=gtotval;
thisa.totattach=gtotattach;
thisa.totpen=gtotpen;
stop();
} else {
gotoAndPlay(2);
}

There is a movie clip with linkage name a
This movie clip has the dynamic text fields
comp
cpval
cpattach
cppen
spval
spattach
spval
totval
totattach
totpen

The text file content is
&comp0=Desktop&
&CPval0=17507&
&CPattach0=0.27&
&CPpen0=0.03&
&SPVal0=0.0&
&SPattach0=0.0&
&SPpen0=0.0&
&totalvalue0=17507&
&totalattach0=0.27&
&totalpen0=0.03&

&comp1=Portable&
&CPval1=35038&
&CPattach1=2.1&
&CPpen1=0.29&
&SPVal1=0.0&
&SPattach1=0.0&
&SPpen1=0.0&
&totalvalue1=35038&
&totalattach1=2.1&
&totalpen1=0.29&

&comp2=Storage&
&CPval2=0&
&CPattach2=0&
&CPpen2=0&
&SPVal2=0.0&
&SPattach2=0.0&
&SPpen2=0.0&
&totalvalue2=0&
&totalattach2=0&
&totalpen2=0.29&

&comp3=Workstation&
&CPval3=0.0&
&CPattach3=0&
&CPpen3=0&
&SPVal3=0.0&
&SPattach3=0.0&
&SPpen3=0.0&
&totalvalue3=0&
&totalattach3=0&
&totalpen3=0.29&

&comp4=Consumer&
&CPval4=61443&
&CPattach4=2.05&
&CPpen4=0.14&
&SPval4=0.0&
&SPattach4=0.0&
&SPpen4=0.0&
&totalvalue4=61443&
&totalattach4=2.05&
&totalpen4=0.14&

&comp5=Handheld&
&CPval5=696&
&CPattach5=0.09&
&CPpen5=0.02&
&SPval5=0.0&
&SPattach5=0.0&
&SPpen5=0.0&
&totalvalue5=696&
&totalattach5=0.09&
&totalpen5=0.02&

&comp6=Server&
&CPval6=7016&
&CPattach6=0.13&
&CPpen6=0.03&
&SPval6=0.0&
&SPattach6=0.0&
&SPpen6=0.0&
&totalvalue6=7016&
&totalattach6=0.13&
&totalpen6=0.03&

&gtotcpval=121700&
&gtotcpattach=0.74&
&gtotcppen=0.08&
&gtotspval=0.0&
&gtotspattach=0.0&
&gtotsppen=0.0&
&gtotval=121700&
&gtotpen=0.08&

&country=Middle East&

&totrows=8&

&end=0&

If anybody could help me in showing the output in within a scroll bar

regards
prady

You don’t explain what you want it to do, you don’t explain what’s not functionning, and you post 100 lines of code… Do you really think we can help you?

well the requirement is to display the data in a specific area of the movie. if the data exceeds the height of the specific area then scroll bar or scroll pane comes into play. i need to know how that is done.

i hope its clear now…

You mean something like this…

http://www.kirupa.com/developer/mx/dynamic_scroller.asp

???

The values which i am gonna display is not just text but values which needs to be passed to variables

What i am trying to do is to take values from text file and display it. The data could be of n number of lines. which can increase or decrease.

For eg. lets consider employee records

The number of records of employess can increase or decrease. so i would need to display all those records dynamically. How do i go abt doing this???

if the no of records is more i need to display it within a scroll bar/pane.