A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Using arrays with LoadVars.sendAndLoad

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

    Using arrays with LoadVars.sendAndLoad

    Is it possible to send and load arrays using LoadVars.sendAndLoad() and php? If it is possible, does anyone have an example on how to do so?

    Thanks

  2. #2
    Senior Member jbum's Avatar
    Join Date
    Feb 2004
    Location
    Los Angeles
    Posts
    2,920
    I don't have a complete example, however, if you already have code that can use PHP and sendAndLoad to load a single string variable, you're nearly there.

    To load a string variable, you might send something like

    str=xxxxxxxxx

    If you put the array elements in the string, separated by a delimiter, such as '.'

    str=xxx.xxx.xxx.xxx.xxxx

    You can then, in actionscript, split this up into an array.

    ary = str.split('.');

    - Jim

  3. #3
    Multitouch Aficionado
    Join Date
    Mar 2006
    Posts
    275

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