1 Reply Latest reply on Feb 14, 2009 9:05 AM by Newsgroup_User

    Open, Change and Save a file on the server

    macway
      Hi,

      I don't know how to use a fonction so that it opens a file "list.tsi" on the server, change a string and save the file.
      the new string that will be saved is given from the user.

      Thank you.
      so far i did this:
        • 1. Re: Open, Change and Save a file on the server
          Level 7

          "macway" <webforumsuser@macromedia.com> wrote in message
          news:gn6sd2$os8$1@forums.macromedia.com...
          > Hi,
          >
          > I don't know how to use a fonction so that it opens a file "list.tsi" on
          > the
          > server, change a string and save the file.
          > the new string that will be saved is given from the user.
          >
          > Thank you.
          > so far i did this:
          >
          >
          > <?xml version="1.0" encoding="utf-8"?>
          > <mx:Application xmlns:mx=" http://www.adobe.com/2006/mxml"
          > layout="absolute"
          > width="480" height="41" x="343" y="299" cornerRadius="10"
          > themeColor="#E8A839"
          > borderColor="#E49C2C" backgroundGradientAlphas="[1.0, 1.0]"
          > backgroundGradientColors="[#E2781A, #E2781A]">
          > <mx:Button x="133" y="9" label="Button" id="newButton"
          > click="ChangeandSave()"/>
          > <mx:TextInput x="10" y="9" width="99"/>
          >
          > </mx:Application>

          Think about it...how would you feel if just anyone with a Flex application
          could make changes to files on your server? You'll need to use a back end
          technology, such as coldfusion or php, to make this happen.