A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Array elements

  1. #1
    Member
    Join Date
    Jul 2002
    Posts
    56

    Array elements

    hi,

    As far as i understand u cannot sent an entire array from php so i need to send one ellemnt at a time to an array in flash...
    i.e. txt0=....txt1....txt2....txt3.......



    PHP Code:
    while($row mysql_fetch_array($result)){
        print 
    "&txt$count=" $row["txt"];
        
    $count++;


    So if this is the code i'd use in php what would be the code to receive the element of array into flash???

    Please help....
    Thx....

  2. #2
    Senior Member
    Join Date
    Aug 2000
    Location
    Montréal
    Posts
    14,141
    You' d need to print the maximum count (the number of 'txt#') variable also.
    Then in Flash:
    this.txtArray = new Array();
    for (i=0; i<=maxCount; i++) {
    this.txtArray[i] = "txt"+i;
    }
    gparis

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