dcsimg
A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: sending arrays from Flash to php

  1. #1
    Senior Member
    Join Date
    Mar 2000
    Posts
    584

    sending arrays from Flash to php

    It seems that you can't send arrays in Flash directly to php and have them be read as arrays.

    In Flash, I have:

    Code:
    test=[];
    test[0]="hello";
    loadVariables("http://www.inflash.com/test2.php?r="+random(1000), "", "POST");
    And in php, I have:

    Code:
    print "Content-type: application/x-www-urlform-encoded\n\n&";
    $value=$test[0];
    print "server=$value&end=yes";
    Which prints back to Flash in the appropriate text field:

    h

    Am I missing something? Do I have to do the work around I've been doing since Flash 4 and dynamically name variables in order to get numerically indexed values from Flash to php?
    InFlash.com shows, games, greetings and more - you in?

  2. #2
    Registered User
    Join Date
    Feb 2001
    Posts
    13,044
    Hi,

    have a look at www.fontimages.org.uk/flash/struc.html

    Musicman

  3. #3
    Senior Member
    Join Date
    Mar 2000
    Posts
    584
    Thanks.
    InFlash.com shows, games, greetings and more - you in?

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