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&
>otcpval=121700&
>otcpattach=0.74&
>otcppen=0.08&
>otspval=0.0&
>otspattach=0.0&
>otsppen=0.0&
>otval=121700&
>otpen=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