A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: ASP, arrays, and dynamic text

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

    Lightbulb

    Good Afternoon,

    I have a movie which uses ASP to populate a dynamic text field. I have defined an array in my Flash movie to allow for multiple records. For example, if there are two records, in Flash results[0] gets assigned to the data first record, and results[1] gets assigned to the data for the second record.

    If I assign my dynamic text field the variable name 'results[0]' or 'results[1]', it gets assigned and populated properly. My issue is I would like to assign the dynamic text field the name 'tempResult', and assign it to the value of each array record starting with results[0]. When I assign the dynamic text the variable name 'tempResult', and assign it's value as below:

    tempResult = eval(result[0]);

    nothing is displayed in the dynamic text field.

    Any suggestions?

  2. #2
    Senior Member
    Join Date
    Aug 2000
    Posts
    2,235
    results [ ] is not a good way to name a variable as you are using the array evaluater "[ ]" and this may confuse flash as to whether you are referring to an array.

    result_1

    tempResult = result_1

    should be adaquate.

    ~mgb

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