dcsimg
A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: Global variables to PHP script

  1. #1
    Junior Member
    Join Date
    Nov 2001
    Posts
    6

    Lightbulb

    Anyone know how to pass a variable from a child movie
    to a PHP script? I use the _root.variable to call the
    var to the parent movie, but i can´t get it to pass to
    the script.

    loads-o-thanks,

  2. #2
    Member
    Join Date
    Oct 2001
    Posts
    44

    Unhappy

    The easiest way to do this is define the variable in the root and use it in the child movie, and then pass it to the PHP file (by using loadVariables action)... (sorry, but i'm very busy right now for complete answer, but i'm sure You will figure it out... If not, write...)

    ZeroIQ


  3. #3
    Member
    Join Date
    Oct 2001
    Posts
    44

    Unhappy

    The easiest way to do this is define the variable in the root and use it in the child movie, and then pass it to the PHP file (by using loadVariables action)... (sorry, but i'm very busy right now for complete answer, but i'm sure You will figure it out... If not, write...) :-)

    ZeroIQ


  4. #4
    Junior Member
    Join Date
    Nov 2001
    Posts
    6
    Ahh, yes of course. Thanks.
    I knew I was thinking too complicated...

  5. #5
    Senior Member
    Join Date
    Mar 2001
    Posts
    285
    It is not essential to make your variables global, you can send/recieves variables from a child mc:

    _level0.childMc.loadVariables("phpscript.php3", "GET");

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