Ask a Question related to Macromedia Flash Data Integration, Design and Development.

  1. #1

    Default Php - Data - Flash

    Hi all,
    this is my first post I'm a newbee teaching myself, so i hope I'm Clear

    I have No problems inserting data from flash to PHP into MySQL,
    it's sendind them back properlly.

    All I'd like to see happen is for one row of data to be inserted into a
    dynamic text field.

    here's what i've got


    if i access this php file, it prints out a vertical list from a single MySQL
    row,
    I was happy.


    $query = "select row from table";
    $result = mysql_query($query, $db);

    while($row = mysql_fetch_row($result))
    {
    print "$row[0]<BR>\n";
    }


    From flash :
    I created a dynamic text field w/ an instance, my_to.

    var lv:LoadVars = new LoadVars();
    lv.load ("data.php");
    lv.onLoad = function(){
    my_to.text = lv;
    }

    and Instead of the vertical list (which i would love to see) i get an unparsed
    data array.

    I can't imagine i'm to far off,
    what am I missing?
    I hope not alot

    Alex

    lunchBoxCoder Guest

  2. Similar Questions and Discussions

    1. Is it possible to insert data in XML with Flash
      I dont know insert, modify and delete data in XML in an application that i make in Flash. You can help me. Greetings!
    2. Flash Data to XML Data
      hi.. there... first of all im verymuch new to XML but not to flash... and i want to know answer for a question.... i will create a interface...
    3. Flash Data Newbie needs data help please
      Hi, I am a newbie to using dynamic data in Flash I am building a site for a client that will have a News section, where news text will live...
    4. php, data, flash...
      Hi, I'm trying to write this question in English (but you can already find the french version). I have a problem, I wanna know if it's possible to...
    5. Send data to Flash from a page without reloading the flash file
      The title tells the most, I want to send like, "hello" to a flashfile from a html page(the flash file is on the site) without having to reload the...
  3. #2

    Default Re: Php - Data - Flash

    You should use amfphp. It's flash remoting with php. It's much cleaner
    integration. [url]http://www.amfphp.org[/url]

    Otherwise, to use loadvars, you have to export your data from php like this:
    "name1=$row[0]&name2=$row[1]..."

    then in flash use: lv.name1 will equal $row[0]

    micahkoga Guest

  4. #3

    Default Re: Php - Data - Flash

    micahkoga,
    thanks for the info & link --
    AMFPHP is the last piece I or we all need..

    Alex


    lunchBoxCoder Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139