A Flash Developer Resource Site

Results 1 to 6 of 6

Thread: xml.send to php without opening a new window

  1. #1
    Junior Member
    Join Date
    Dec 2000
    Posts
    20

    xml.send to php without opening a new window

    I tried all the values (_top,_self,...) in the parameters of xml.send and it opens the PHP file. I need PHP only as backoffice for saving the xml file.

    What can I do to stay with the Flash window?

    Thanks

  2. #2
    See-n-reMember azwaldo's Avatar
    Join Date
    Mar 2003
    Location
    Sonoran Desert
    Posts
    745

    just writing to XML?

    if only writing to an XML file from PHP, you could try this
    Code:
    InstanceName.loadVariables("http://www.yourDomain.com/writeToXML.php", "GET");
    __azwaldo__

  3. #3
    Junior Member
    Join Date
    Dec 2000
    Posts
    20
    I'm working on a local computer http://localhost/~Pat/write.php and used:
    _root.loadVariables("write.php", "POST");
    the two files are in the same directory and it always change the URL of the flash HTML with the php file.
    I have done a lot of time on PC with ASP and now working on my Mac.
    I don't know why. Do I need to configure something on the Apcha server or PHP engine?

  4. #4
    See-n-reMember azwaldo's Avatar
    Join Date
    Mar 2003
    Location
    Sonoran Desert
    Posts
    745
    yes, check the path reference for the file to be overwritten...
    will your final movie be posted on a server?
    ""...change[s] the URL of the flash HTML"
    is the PHP file being called?
    __azwaldo__

  5. #5
    Junior Member
    Join Date
    Dec 2000
    Posts
    20
    will your final movie be posted on a server?
    yes
    is the PHP file being called?
    yes when the user push a button in the flash movie I call with loadVariables or GetURL the php file that saves changes.
    yes, check the path reference for the file to be overwritten...
    Which file do you mean? I 'm saving an xml file and works fine also when I overwrite it. I need the php file do be executed as a backoffice script so that the flash movie don't disappear.

    Thanks

  6. #6
    See-n-reMember azwaldo's Avatar
    Join Date
    Mar 2003
    Location
    Sonoran Desert
    Posts
    745

    include attachment?

    without seeing the XML and PHP scripts it's difficult to guess; are you loading the XML doc when the movie opens?

    by this:
    need the php file do be executed as a backoffice script so that the flash movie don't disappear
    ...do you mean the PHP script should refresh the html page (where swf is embedded)?

    Can you attach the .fla to a reply in this thread? Posting the .fla allows everyone to see what you are describing, likely resulting in a more rapid solution. Zip it up? Maybe create a dummy copy of the fla ("Save as" with different name) and remove large sound files and images, then attach the stripped-down fla here...
    Last edited by azwaldo; 12-04-2005 at 05:56 PM.
    __azwaldo__

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