A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: [F8] Using getURL() w/o page loading

  1. #1
    Senior Member
    Join Date
    Jun 2006
    Posts
    100

    [F8] Using getURL() w/o page loading

    Hi, I was wondering how I could go about getting a php script to be executed from flash, but without actually opening a new window. The php script creates an xml file depending on what variable is send to it when it gets called, which flash then reads. For example:

    code:

    getURL("script.php?year=02");



    But instead of having a new window load, I just want the php script to be executed with the variable "year=02" passed onto it, which will be changed depending on what the user clicks from within flash. Any ideas? Thanks in advance, - Peter.

  2. #2
    Member
    Join Date
    May 2004
    Location
    Springfield
    Posts
    50
    Use loadVariables

    //---script---
    loadVariables("script.php?year=02", "");
    //--------------
    In the words of Homer the Great! If it's too hard, it's not worth doing!

    Finally found a use for all the forwards I received Inboxity.

  3. #3
    Senior Member
    Join Date
    Jun 2006
    Posts
    100
    Thanks for the help. I ended up using loadXML since it was xml that it would be loading.

    code:

    xml.load("script.php?year="+year);


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