A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: James's Question For Olorin

  1. #1
    Junior Member
    Join Date
    Apr 2001
    Posts
    13
    yo olorin.

    how do you retrieve variables from php to flash (i know the other way around).

    plus, how do you get the pop up browser when someone leaves your site.

    please respond.

    pak chooie unf.

  2. #2
    Senior Member Olorin's Avatar
    Join Date
    Aug 2000
    Posts
    1,151
    to have a window pop up when someone leaves, you just use a javascript command "onUnload=dosomething()" which you place in the body tag.

    To send and retrieve variables from php to flash and vica versa, just use:

    _root.loadVariables("myphpfile.php", "POST");


    on the php side, just print out the variables that you want to send to flash like:

    echo "xpos=$xpos&ypos=$ypos";

    that's basically it... really simple

    Olorin

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