Can i edit the external XML file through AS3? - actionscript-3

I want to edit the external XML file through only AS3. Please any one help me.. thanks in advance..

If you are using Flash Player and the XML is on a server then the answer is NO. This would be a lack of security as a client could directly edit something that resides on a server.
It is possible to load the XML, change values in it and then send it back to a PHP file that dumps it into a file, again, with the fore mentioned risks.

Related

Is it possible send a specified file (input type=file)?

I need to upload a file repeatedly by browser (automatic) and refresh time ask me for confirm.
How can i to POST form with a specified file?
Sorry my english
It would be nice if you make available what you already tried, then we know where you are getting stuck.
Basically if you need to upload a file to a remote server you will need a dynamic language like PHP, Python, etc.
You can't send files to a remote server using plain HTML.
For security reasons HTML itself won't let you send files to a remote webserver via <form> automatically.
For that feature you would have to have your webserver handle the form via a special file like for example <form action="exampleFormHandler.php" method="post">.
Placed at your webserver, this form-handling file would have to provide the sending of that very file then.

Open local JSON file for examination

I was wondering if it's possible to open a local JSON file so I can just check its structure? Didn't/don't want to upload the file to an online JSON format checker site and was hoping I can just utilize PAW to do that.
Don't seem to be able to do this with a local file, unless I run it through a local server, eg using MAMP, unless I missed something...?
Thanks.
You could copy the content into the txt body then switch to the JSON body this will let you view it in the nice structure, sorry currently no way to directly import a file need to copy past the content.
Take a look at jsonlint npm module. Supports JSON schema validation and pretty printing.

how to read and write into existing xml file in metro javascript and html

i want to Read/Write in Xml File in metro javascript and html5,but i dont know the code and how should i give the directory of my xml file.
please give me help to read or write from my own xml file
Answer in the following link is pretty much doing everything you want
http://social.msdn.microsoft.com/Forums/windowsapps/en-US/a7847959-edcf-4175-b312-9a03746e29b9/create-xml-file-and-write-xml-data
But that's not the only possible way of reading a file of course.

read/write an online .wav file in matlab?

I am currently working on a signal processing lab for school that requires me to download and analyze a .wav file. I was wondering if there was a way to wavread() or wavwrite() a URL so I don't have to re-download the audio file every-time I move to a new computer or send the code to the members of my group?
All the files can be found here.
And this is the url for one of the .wav files:
http://www.soe.uoguelph.ca/webfiles/sgregori/Audio/speech.wav
I have tried urlread() and urlwrite() but to be honest I don't quite understand what to do with the html coding. I have also tried:
[x,fs]=wavread('http://www.soe.uoguelph.ca/webfiles/sgregori/Audio/speech.wav');
but ended up with the error:
Error using wavread (line 67)
Invalid Wave File. Reason: Cannot open file.
I am also using the student version of Matlab so maybe that is the issue?
Any help would be greatly appreciated!
Thank you.
This should work:
urlwrite('http://www.soe.uoguelph.ca/webfiles/sgregori/Audio/speech.wav','s1.wav');
This saves a file s1.wav to the directory you work on. Then line
[x,fs]=wavread('s1');
should work fine

How to access file on the webserver named Test%3f.htm

I have a file named Test%3f.htm on my webserver. I am trying to access the file through a web browser. I realize the %3f decodes to a question mark which I do not want. So I have tried to access it as http://mysite.com/Test%253f.htm but have had no luck. Any help would be greatly appreciated.
you need to decode the the url this is encoded url the %3f is for ?
For what it is worth, I found that on IIS7, I was able to turn on
<requestFiltering allowDoubleEscaping="true"/>
in the web config. This allowed the urls to be processed with the character in the file name.