ActionScript 2.0 :: Saving The Flash Input Data To XML
Feb 22, 2007
i want a solution or sample file of exactly how to save a flash input data to xml file.. im really new to xml.. i dont know how to script it in flash. Ex: there will be a two fields of input... 1) text input... 2)checkbox input/ other... and a submit/ save button the above will be in flash interface.... so when i run the file and key in the data into the text input box or other.. the data what ever i key in has to reflect in XML that means it has to save the data in XML... so that i can open the xml and have look of the data wat ever i have keyed in..
im really badly in need.. what action to put where and how to create xml. what to put in that... i know some of you really would have done this.
View 3 Replies
Similar Posts:
May 22, 2007
I'm sorry this is a question from a server ignoramus, I've previously captured user input using a combination of cfml and text files. That was way back in 2002 and using AS 1.0. I'm now working in an environment where the server guy won't put any scripts on, and I mean none, no PHP, no ASP, no CFML, nothing. Would anyone know if there is a way of capturing user input without using a script, please? This prolly shows a really basic lack of understanding of how servers work but I'm a bit desperate. I know the Flash Learning Interactions can work with SCORM and pop results into LMSs that use SCORM and our LMS does use SCORM, but it seems to only be within the learning interactions and I don't know where to start to tailor this for the input I need to capture.
View 2 Replies
Jun 25, 2011
I've been all over the interwebs, including Stack Overflow, for hours, trying to identify a solid, workable example of saving information in Flash into an XML file.
I want to take the positions of two different types of objects and export the lists of each to XML. We'll call the objects ball and bat.
[Code]...
View 2 Replies
Jan 20, 2010
I'm using Flash CS4 & Actionscript 3.0 to create a grid with different objects that a user can move with the mouse. This is a standalone application meant to be used on a Windows machine. Is there a way to download and save the user's responses (viz. location of mouse, type of object clicked, etc.) onto the local computer without using the Flash Debugger?
I came across an article [URL] which states that it is possible to save local data onto a user's computer without a backend script (e.g. php) in Flash Player 10 but the article doesn't really say how this is done.
View 3 Replies
May 15, 2010
I know how to get the data from my database, but i can't seem to figure out how to send data to the database from flash using amfphp! give me an as3 and php service example.
View 1 Replies
Oct 20, 2009
Half way through;user saves the answers to a CSV file to a location.then continue the test and save the 2nd part to the same location (different file name). The next person completes the same test, and theoretically saves in the same location OVERWRITING the file. HOW IT SHOULD WORK when they overwrite the file, it SHOULD add it to the next ROW in the excel (csv)document, not overwriting the WHOLE file. In the end, you would (in theory) have a number of rows in one excel document, each row, a different user who completed the test The issue is: on the MAC computer, this works (im not sure if it's because the previous developer developed it on a MAC) however when I play it or move it to windows computer; It overwrites the whole CSV file, and doesn't add it in the rows.Here is the main code (half way through) for the first save:
Code:
stop();
qNum.text="Q 11-13";
[code].....
View 0 Replies
Apr 16, 2010
I have the following form code in my HTML, basically including a couple of hidden input fields and the Flash object (disregard the missing <object> and <embed> values):
[Code]....
View 1 Replies
Apr 23, 2010
i am wroking in action script 3 with flash i need to save mouse drawing data in xml and retrive it later for edit purpose i have found a good technique -here but not able to make sure how to store in xml and how to retrive it
View 4 Replies
May 21, 2009
I'm currently creating an interactive game for teachers that works around the teachers inputting Q and A's into dynamic text boxes. I've been searching for so long and posting on so many sites to see what the code is to save the input text.In more depth, The finished .swf contains multiple dynamic text boxes for where the teachers input their desired text. I was wondering whether they can then save the inputted text to the .swf without having to own Flash CS4.
View 13 Replies
Aug 22, 2006
I am seeing repeated comments on this discussion forum that it's not possible to save data from Flash into a locally stored XML file . . . but there must be a way to do this. Why is you can read data from a locally stored XML file but not update or add data to it. how absurd a design would that be, it simply wouldn't be logical!
View 8 Replies
Sep 24, 2006
I have read through Shared Objects but i couldn't get it work...
I just have to save my data, maybe array into .txt file and later on
retrieve from the same .txt file...
Anyone here have an example or some source code so i can have reference on it?
View 6 Replies
Mar 18, 2004
Is there anyway to make save information that people have put in input text boxes. For example they could put the info in and then save it so it will appear next time.
View 1 Replies
Mar 18, 2004
Is there anyway to make save information that people have put in input text boxes. For example they could put the info in and then save it so it will appear next time.
View 1 Replies
Aug 20, 2011
I'd like to know if there's a way to take data entered into a field in flash, save it, and call it later via an object.I don't want anyone to walk me through it if there is, that's not what I'm asking. I'm just asking what I need to know in order to do this. I'd like to build a certain flash app that takes information (such as a name, paragraph, and/or sentence) saves it, and can then be recalled when a user clicks a button... even if the user has closed out the application.I'm still relatively new to flash, I know enough to get by on basic projects, but I want to expand my knowledge so I don't end up stuck in a beginners rut.Would this require using PHP and Flash? Or can it be done entirely in flash via exporting data to a designated external file?
View 2 Replies
Mar 12, 2012
I am trying to generate image of flash charts generated by Open Flash chart library using PHP Mysql database.
I have generated image but it's in some coding format in a div on my webpage. Something like below:
<div id="img_chart_1">
<img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAk4AAAEsCAYAAAA1jTw5AAAli0lEQVR42u3dDdAkdX0n8Keu6s67..../ >
</div>
How can I save this image in any image extension like .png ?
I have to give a button on my page. So when user click on button I have to export this image in PGF file.
So I am trying to save this image with image extension and will give link of saved image in PDF file to show.
View 1 Replies
Sep 19, 2009
I have to creare a javascript alert that will show the value of a flash input text box when i press on the flash button next to it.
i have created in the editor the input text box and the button, and use the following script on the button [code]...
View 2 Replies
Jul 30, 2009
I'm currently working on a flash combobox and text field passing data to php to display the input from flash. It require using query string method. I'm stuck on the query string code. My as3 has nothing wrong, I just don't know whats going on the php is not catching my data for display.
The php I'm targeting looks like this:
<?php $current_page_num = 1;
require_once 'dir/php.php';
$use_GET = $_GET[ 'use' ];
if ( $use_GET ) {
$timestamp = $use_GET;
[Code] .....
View 1 Replies
Mar 18, 2009
I made this simple drawing game. I would like to make it so the user can save their drawings. What would be the best approach to doing this? I know it will require arrays.
View 4 Replies
Aug 29, 2009
I'm working with AS3 with timeline code. I would like to save date and time a user took a quiz. This information will help check when a user took a quiz. I can see the date and time as I want, but it isn't saved. SharedObject is not saving date and time. Here is my code. How can I do this?
var mySharedObject:SharedObject = SharedObject.getLocal("sampleCode", "/");
var today_date:Date = new Date();var thismonth:uint = today_date.getMonth();var thishour:uint = today_date.getHours();var thisminute:uint =
[Code].....
View 1 Replies
Jul 23, 2010
I have created a simple flash animation for my employer. I basically have a square that changes color depending on which of three buttons are clicked. This is replicated about 30 times on the page. There is also about 15 circles that have a toggle button created so that when you click on the circle, they change between two colors. As I said, a very simple application.
Now, I need to save the data so that whenever someone new opens the swf, the current color combination is displayed. My way of thinking, with my limited AS3 experience, is that each button click, in addition to changing the color of a movie clip, should also send the data to a server. Then when someone opens the application fresh, I can use the URLLoader to load the most current data.
Am I on the right track, or am I missing it completely? I think I can figure out the URLLoader, but what code would I use to create the text file or xml file?Here is a snippet of my code:
var rtmColor:ColorTransform = f13335.transform.colorTransform;
var okColor:ColorTransform = f13335.transform.colorTransform;
var usColor:ColorTransform = f13335.transform.colorTransform;
[code].....
By clicking on either the rtm_13335, ok_13335, or us_13335 buttons, they will change the f13335 movie clip to the appropriate color (blue, green, or red). The default color is green.
What I would like to do is make the movie clip red, for example, then another person opens the swf, and the movie clip is red as opposed to the default green because I saved the current state to a text or xml file.
View 3 Replies
Jul 26, 2010
I have in mind a very basic swf file that allows someone to enter data (via dynamic text box), submit this data (via php), which in turns saves it as a file on the Server. This file (.txt) would be used to populate text on the main site. Most of this seems quite straight forward, and standard practice, apart from actually saving the data as a particular file and on the server (or overriding an existing file), which I'm sure comes up against problems such as FTP access and everything else, but I was wondering if someone might have an insight on how this could be done?
View 3 Replies
Apr 12, 2012
I have a serious of games swf's loading externally from a main menu swf.What I'm trying to do is take name of the player which they input into textfield and sent it to the XML file. After this at the end of each game I want to send the time it took to complete also to the XML file.The problem I have is I don't know to to create a new user inside the XML file and then replace the default time of 00:00:00 with the time that the player has set.NameTextField is the name of the textfield.Hourtext, Minutetext and Secondtext are the names of the timer. (They are ordered like Hourtext ':' Minutetext ':' Secondtext.
AS3 code inside Flash MainMenu.swf
var XMLLoader:URLLoader = new URLLoader();
var Bytes:ByteArray = new ByteArray();
[code].....
View 1 Replies
Aug 30, 2009
I'm working with AS3 with timeline code. I would like to save date and time a user took a quiz. This information will help check when a user took a quiz. I can see the date and time as I want, but it isn't saved.[code]...
View 1 Replies
Oct 29, 2009
to save to an xml file that has been imported into an xml variable stored in a loader and modified. What I'm trying to do is import an xml list, add a new node with a key stroke, then save the newly modified xml list back into its file. I've seen quite a few threads about people saying you have to download third party software but is there a way to do it from within as3?
View 0 Replies
Apr 19, 2010
i am working in action script 3 , is there any way that we can save mouse drawing data with color and stroke size in XML and retrieve back that data and present that in the same format and same position and edit again.?
View 2 Replies
May 9, 2009
I've made a small application in Flash CS4 that I use when I'm teaching. Part of the application allows me to 'write' on draggable 'post-it' notes (using a draw function) and another part allows me to type text onto similar 'post-it' notes. how I could save the data that is written or typed in and then re-load it on another occasion? Am I out of my depth?My AS3 is probably intermediate level, I have some experience with SWF Studio and I'm beginner level with php/mySQL.
View 3 Replies
Jun 14, 2004
I've searched load of threads for info on this because for what I'm doing I need to save data to the local disk and then load it back up again as required. I'm using a local shared object to save data to and this works fine. Getting it back out again seems less straightforward.[code]Nothing appears to happen at all. The program continues with no traced output at all.
View 3 Replies
Dec 5, 2007
Ok here is my situation. I've developed a quiz application. Their is 30 frames. 2-29 is the presentation that contains the answers. Frame 30 has the quiz on it. When the user hits submit (once theyre all answered) and if their are wrong answers, it does not continue and it highlights the wrong questions and sets some _visible = false buttons to true. The buttons say "Review answer" which is going to take them back to the frame that has the answer and once that review is over it goes back to frame 30.
My problem is that when the user returns to the quiz frame, everything is reset. How can I store what the user has already selected so when they come back to frame 30 everything they filled out is still their?
View 2 Replies
Jan 16, 2008
I have an offline presentation for a client that needs to have a form submitted data saved local on the machine (kiosk) to be gathered later.I researched on google and found fscommand to write to a txt file but this no longer works and is sorta sloppy.
View 5 Replies
Aug 4, 2003
what i want to do is make a kind of guestbook thing.. and what i need to do is just store the data of each post into a data file on the website..I was thinking that i could do it with SharedObjects.. as i know how to use them and that was what i was goin to try first.. but.. is this the best way to do it?? will it work on the web or will it only work locally on a computer..Should i be using php or xml or somtin like that?? If so.. how would i do that cause i dont have a clue at all..
View 4 Replies