ActionScript 3.0 :: Writing XML Data Using ASP.Net?
Jun 11, 2010
I have successfully written my XML from flash to the server using php. But now I need to have it write to a Windows server using either asp or asp.net. Below is my code for PHP.Have searched allot of places and found how to write text files and lines inside text files.But I use a URL variable to write my XML file name out with xml data I created in Flash as3.For simplicty I am using localhost... but really is set to my web domain.On the address line I pass: Example
I have been struggling with this all week now. I am using as3 and within my movie I have a dynamic text box that contains a score.I need this score to be written to a text file preferbly in an array that only stores the highest 5 scores.I then need values from the array to be read and displayed on another movie which will act as a high score table. e.g. I will have a dynamic text box in my high score move that will display the 1st value in the array, and then the 2nd etc.
writing/reading data to text files.Alternatively if anyone else can suggest another method for a high score table please let me know. I only need a basic high score table that runs on a users local machine as the app i am making is desined to run on individual users machines.
I am trying to write one function to save all data but i am not sure how to change the name of each data value without writing them out one by one.[code]
I am creating e-learning material that will be accessedonline by students. Is there anyway that Flash can write to adatabase to tell us how long the student was logged in for and how long there were on a page?
I have been trying to save data from a flash movie to an XML file and have failed to do so how is it possible? how can i for example save a text from a textbox / textarea to an XML file in an specific XML node by pressing a botton? although i am familiar with how to extract data saved in XML files and desplay it in a flash movie.
I've just been approached my current project needs to run from a CD and write data (bookmarking) to the hard drive. Been told the file will still launch from a html document and not AIR. Orginally had it built in AIR, no problem writing data. I remembered what I thought was a SharedObject but that does not sound right for writing out the data. Which is an xml file I am building from the student login.
Since I can't use AIR is there another function someone knows for writing a file to a location on the hard drive? Time is pressing on this one. I have to have an answer by morning.
This is an area of Flash I haven't experimented in, so I don't know where to start. Is it possible to run an SWF, and have Flash export variables externally, as the SWF is running? So for example, export an Array to XML? It doesn't need to be PHP, and stored serverside etc, just written locally on the computer would be fine.
I have a client that is running a 64 bit system. On my 32 bit system my Shared Object writes the data without a problem but theres hangs when the call is made to write the data. Any ideas how to go about solving this problem? I would think it would not matter if the system is 32 or 64.
I've to make a form that's going to work on a local machine without internet during an event. I have a form i'm using for our website, but this one just sends emails.The data needs to be written to a file (Excel / XML ?) which we, after the event, tranfer to another computer and add the list of subscriptions in our company network.
I am creating an application that takes a user's hand signature, input on the Blackberry playbook. When the JPEG is created, I would like to add Exif data such as the date/time to the JPEG. Does anyone know how to do this, or if it is possible?
I am writing an AIR application through which I want to open a native process 'wordpad.exe' and write data generated in the AIR application to a document.
The wordpad application opens with a blank document but it generates an error Error#2044: Unhandled IOErrorEvent:.text=Error #3128: Error while writing data to NativeProcess.standardInput.
I need to save and load data to and from variables. I know how to read from text-files, but not how to write to them. The text-files should work as a "database" for the high-score in a game, I cant use php cause the computer running the game wont be online all the time.
I am wondering if it is possible to use random file access for reading and writing data to file in Actionscipt 3.0 similar to that what is in Visual Basic?
I have an menu for user to populate it. Then when the user finish, I would like to store his Order into an XML database. I do not know how to write to XML file in Flash.
I'm making a simple flash game as sort of a test, and I'd like to have save files by making flash write information to an xml file. Is there anyway to generate and edit an xml file using actionscript?
i load in xml file so i can read the data. i've figured out how to add, delete and modify data. but the problem is, is that even when i do that it only does it within flash it doesn't make the changes to the actual file.so i want someone to help me do this. so please help i've been at this for week and its time i ask you nice and incredibly smart people.
here is my file, its clean and organized as its something i whipped up for the sake of figuring this out.i found this, people say it allows you to save the xml data, which would work, if i have to delete a file i can do that, i know how to do that. the script i found to do this is below incase it helps you guys to help me.
i'm running into major problems with writing an irc client, it works perfectly when i execute it through flash, but when i upload it to a site, it won't connect, i understand that i need an crossdomain file, i've been doing alot of research, and can't make head's or tails
debugging shows that even though i do: Security.loadPolicyFile("http://example.com/crossdomain.xml");, it still attempts to read an crossdomain file from the target irc server, however, i don't have control over the target machine(nor should that be necessary), how do i get around this, or what am i doing wrong?
what i really need, is a simple example of connecting to an server that i don't control to load some resources(i.e grabbing an image), where all the crossdomains file's sit, and how it's generally done, googling around, it seems this information isn't as easy to come by as i thought
edit: also, i'm using raw sockets to connect to the irc server, if that makes a diffrence edit: alright, been reading alot more information, it looks like i do need to have a policy file to connect to said server, which is beyond retarded, please, someone tell me there's a way around this, but that doesn't explain why it works through flash?
is it possible to post to php in an .exe file instead of a .swf displayed inside a browser? If so, how? I figured if you just created the .exe on the server with the .php file in the same folder it would read it and work fine.
I have successfully read an XML file into my script and used the data.Very handy.Now, I want to be able to create an XML file and save it.I have seen in the documentation how to add a child and so on - so I think I can manage that bit.I assume that I can save a file (locally) - but how? I have not been able to find a 'save'.
I have looked far and wide but I can't find any resources on how to write to CSV files from flash AS3. I know that flash cannot write to it alone. I have used PHP before to write to a txt file but now I need to open a csv and insert/edit entries that are already in it.
I'm sure there's already an answer, but I haven't found it yet. (It may be because I'm not exactly sure how to phrase the question.) Here's the skeleton of what I've done.
Let's say that I'm making a simple guestbook. All I want is to collect the visitor's name and email address. I started out by creating a simple XML file that looks something like this[code]...
So I'm working on this project for my school's library. I need to make an interactive calendar with which teachers can sign up for the computers in the Lab and Library. I'm using mostly ActionScript 2.0, and this is what I have so far.
Basically I need a calendar for each month of the year, in which you can click on each day, and edit it. It will have to have a drop-down box in so that you can select which class you need to schedule them for (1-7) and two check-boxes to choose either Lab, Library, or both. It will be used on many computers throughout the school, and so it will need to be able to write to XML (via PHP I presume?) and reload the XML file directly after the changes are made. It will all be password protected. I've figured that much out already, lol.
I've run into a hundred thousand problems. Everything I know has been self-taught or learned from the amazing Kirupa tutorials (I'm sure most of you are the same way!). So far I've tried combining several tutorials, the most promising of which was the XML Guestbook Tutorial. I wasn't able to get that to work, but then again, I am adapting it to work with something completely different. Also, I tried using a tutorial to render a calendar instead of hand-drawing each month (I don't even want to think of how long that would take!). I wasn't even able to successfully complete the calendar tutorial!
'String(xmlData[idx].Yes' is where I'm having a problem, can't figure out the syntax for declaring the element I want to read, plus I want to read the elements inside let's say <ProceraFixedImplantBridge>. I need to add that to the code.I want to increment the counter for yes or no, and write the file back.
I've got all these flash books, yet not one of them tells me if it's possible to write to a txt file. They show how to read from a txt file using loadVariables(), but not the reverse.
Well I've been trying for about 2-3 days with no success. I am using the POST method and its not working. I have gotten it to work before.... but I do not have the old files anymore. There is a text box on the stage with the instance name: textTxt the fla fla Code:
Code: var variables:URLVariables; var fLoader:URLLoader; var fData:URLRequest;
How can I write variables into new XML? I need to take variables and write them into new XML but that I am getting is the name of the variable I am using, not the value.
I am a AS newbie, so just learning AS3 (I have heard that this is a good place to start!). I am trying to read and write to an XML file.I have learned how to read an xml file but for the life of me, I can not write to the file.I have found many many tutorials that I can't seem to get to work.This is my goal... I have a small flash game that after the user wins, their user name, date, time and score get entered into the xml file. So, I just want to append the new info into the existing xml file (all the files will reside in the same directory on my server). I have all the variables ready to send.. just need the way to do it!
I have a separate AS3 flash file that shows a listing of the xml file to display the scores to the users, I have a working version of this... but I may have to change this to match how the info is being stored into the xml.