A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Is XML the only way you can pass external data to flash in an array?

  1. #1
    Junior Member
    Join Date
    Sep 2004
    Posts
    13

    Is XML the only way you can pass external data to flash in an array?

    Is XML the only way you can pass external data to flash in an array?
    Or is there another way?

  2. #2
    Senior Member jbum's Avatar
    Join Date
    Feb 2004
    Location
    Los Angeles
    Posts
    2,920
    You can pass the data in a single string variable using a delimiter, such as a comma.

    xx=dog,sheep,cats,elephants

    These variables can be passed using LoadVars, or sent to the movie as part of the HTML that loads it.

    Then use the String.split function to turn it into an array inside flash.

    xary = xx.split(',');

  3. #3
    Junior Member
    Join Date
    Sep 2004
    Posts
    13
    This works? That is a great idea! Thank you!

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