dcsimg
A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: Passing variables from FLASH to PHP

  1. #1
    Junior Member
    Join Date
    Mar 2005
    Location
    Sydney
    Posts
    13

    Passing variables from FLASH to PHP

    I'm trying to pass simple variables from flash to php and vice versa. I have come accross so many different ways that i don't know which one to use.

    I have a flash movie and i have a php script. I want variables to pass to the script a few times a second, then the php script sends the values to a MySQL database. But i have no problem with that. The problem is that i can not get the variables in flash to pass to php. I don't want the movie to do anything when a variable is passed either. So the getURL command is no good.

    Does anyone know how i can do this?

    Thanks.
    ---------------------------------
    Http://www.lifeasalounge.com

  2. #2
    Senior Member
    Join Date
    Sep 2000
    Location
    Copenhagen, Denmark
    Posts
    228
    You could probably find what you're looking for in the LoadVars.send() or loadVariables command...

    cheers
    idi

  3. #3
    Junior Member
    Join Date
    Mar 2005
    Location
    Sydney
    Posts
    13
    I tried to use those commands but i still could not get the variable to show up in php. Does anyone know of any SIMPLE tutorials that describe how to set up a SIMPLE passing of variables from flash to php?
    ---------------------------------
    Http://www.lifeasalounge.com

  4. #4
    Mod cancerinform's Avatar
    Join Date
    Mar 2002
    Location
    press the picture...
    Posts
    13,448
    Define your variables and then use:

    loadVariablesNum("file.php",0,"POST");

    whereby 0 means _root.
    - The right of the People to create Flash movies shall not be infringed. -
    | www.Flashscript.biz | Flashscript Biz Classes/Components |

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