[swx] Getting data from a passed object
Paul Bainbridge
forums at innovativedesigns.org.uk
Mon Jun 2 05:25:26 PDT 2008
Hi guys,
So far so good i have been able to pull the headings and titles passed in the function for each object.
I have now run into another problem.
Below is what is being passed into the object
OSexcel.id = "os";
OSexcel.excelHead = "OPERATING SYSTEM USAGE";
OSexcel.totalCount = _level0.data_lv[OSexcel.id+'Count'];
for (var a:Number = 0; a<OSexcel.totalCount; a++) {
OSexcel['excelData'+a+'title'] = _level0.leftHolder.mcOs.holder['mcCount'+a].tx1.text;
OSexcel['excelData'+a+'percent'] = _level0.leftHolder.mcOs.holder['mcCount'+a].tx3.text;
OSexcel['excelData'+a+'count'] = _level0.leftHolder.mcOs.holder['mcCount'+a].tx2.text;
}
I am having a problem what i have in the for loop
i am pretty sure it just a way of how it should be code
Here is what i have so far
$header = $OSexcel->excelHead."\n\n";
$countA = $OSexcel->totalCount;
$counter = 0;
$header .= "Title \t"."Precent \t"."Count \t";
$line = '';
for ($i = 0; $i < $countA; $i++){
Can someon put me right?
thanks
Paul
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://osflash.org/pipermail/swx_osflash.org/attachments/20080602/976b978e/attachment.html
More information about the swx
mailing list