newbie Flash/XML question

Ask a Question related to Macromedia Flash Actionscript, Design and Development.

  1. #1

    Default newbie Flash/XML question

    I have a working web service and a working flash test which passes 3 strings.
    The web service responds and I can update a TextArea.

    However, I now want to extend the Flash page to send an XML file (located on
    the client PC) to the web service.

    What is the best way to send the file (which may get quite large - > 400Kb)?
    Sample code would be helpful!

    mark_hutchinson Guest

  2. Similar Questions and Discussions

    1. Newbie XML / Flash question
      Hi all, Please help me to the following: I use the XML connector to read an XML file. It works fine. My question is how can I take the attributes...
    2. Newbie Flash XML. Slideshow question
      I attempting to make a slideshow like the one on this page: http://www.adobe.com/support/flash/applications/jpeg_slideshow_xml/ But i was...
    3. Newbie Flash Question
      Hi all. I'm learning Flash MX 2004, and have a question. I'll be doing a virtual tour for the company I work for, and I'll be using Flash. It will...
    4. Newbie Question: Table in Flash
      Hi, I'd like to know the best way to create a table that can incorporate flash symbols. That is, I want to place flash symbols alongside data...
    5. Newbie Question: Flash and JavaScript
      I'm trying to solve what is probably an easy problem. I have a .swf (movie) file in an html page called "splash.html." Within the movie, I have a...
  3. #2

    Default Re: newbie Flash/XML question

    mark_hutchinson wrote:
    >What is the best way to send the file (which may get quite large - > 400Kb)?
    >Sample code would be helpful!
    Macromedia's FuseTalk pointlessly makes it hard to post properly-formatted
    source, but here's what I use for an XML glossary that's part of my project:

    outgoingXML.sendAndLoad(pathToFile + "upload.php", dummyXML);
    //pathToFile, defined above, is the URL of the directory the SWF and support
    //files are stored in. dummyXML is needed only because sendAndLoad expects
    an
    //XML object as a parameter. It is never used and nothing is sent to it.

    The script upload.php consists of:
    <?php

    echo"
    <html>
    <head>
    <title>Upload Script</title>
    </head>
    <body>
    <p>Hello World</p>
    </body>
    </html>";

    $handle=fopen("./glossary2.xml","w");
    fwrite($handle,$HTTP_RAW_POST_DATA);
    //fwrite($handle,"Contents go here");
    fclose($handle);
    ?>



    Note that you'll need some kind of server-side script or CGI program to
    receive the data -- Flash, unassisted, can't save the XML file, it can only
    send it to a server-side program.
    --
    Carl Fink
    Please respond to the newsgroup only.

    Carl Fink Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139