[swx] Getting data from a passed object

Paul Bainbridge forums at innovativedesigns.org.uk
Mon Jun 2 07:13:46 PDT 2008


Anyone?
  ----- Original Message ----- 
  From: Paul Bainbridge 
  To: SWX Mailing List 
  Sent: Monday, June 02, 2008 1:25 PM
  Subject: [swx] Getting data from a passed object


  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



------------------------------------------------------------------------------


  _______________________________________________
  swx mailing list
  swx at osflash.org
  http://osflash.org/mailman/listinfo/swx_osflash.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://osflash.org/pipermail/swx_osflash.org/attachments/20080602/1c873ce3/attachment.html 


More information about the swx mailing list