A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Populating a list component from an external .txt file

Threaded View

  1. #1
    Junior Member
    Join Date
    Feb 2001
    Posts
    22

    Populating a list component from an external .txt file

    I need to pull a list of presenters from a .txt file and populate a list component. Here's the code I'm working on, but it's doing nothing:

    stop();

    loadVariables ("presenters.txt", this);

    var n = totalPres;
    var i = 1;

    // the total nnumber of presenters

    presentersListArray = new Array();

    while (i < n) {
    presentersListArray.push({data:"pres"+n, label:"pres"+n});
    // pres+n should equal "pres1", "pres2", etc.
    i++;
    }

    presenters.dataProvider = presentersListArray;


    Any help is appreciated. Thanks.
    Last edited by alec1241; 03-30-2006 at 03:32 PM.
    Scott

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center