ActionScript 2.0 :: Save The User Data?
Mar 21, 2012
I am trying to save user data and I keep on coming up with the same problem. The problem code is highlighted red in the ITEM.as file. The problem is that when I update the variable it updates the savefile also, when it should not! I do not have a clue what is wrong because I am putting the traces for the savefile in one right after the other so the code can't be executing elsewhere right?
SAVE.as
ActionScript Code:
class Save_mc extends MovieClip {
var nSaveAnim:Number = 0;
function onEnterFrame() {
[code]....
View 0 Replies
Similar Posts:
Sep 24, 2011
I have a Flash AS 3.0 swf-based browser game. It's hosted on my site and communicates with a MySQL database via PHP using Flash's URLVariables. Everything works fine. The problem is, I want to be able to save the player's game after he leaves the webpage or closes his browser. How is this usually handled?
Is there a reliable event that fires when a swf is terminated? Is so, what is it? If not, what's the solution? Should I simply save the player's data every x seconds? That seems like it will bog down my server. I could have 10,000 people playing and I don't want to save each of their games every x seconds.
View 2 Replies
Jan 19, 2006
I need to open a popup(html) form a Flash projector.
And I need save Files with "Save as window" from a CD to user choice...
View 1 Replies
Oct 15, 2009
I have an xml file (externally saved) that is similar to the following:
[root]
[main]
[title]...[/title]
[Code]....
What I like to do is to get what's in [title] tag using HTTPservice, import it into Flex, and save it as array objects, and do the same thing for [content]. This way I can later refer the array object saying title[0] or content[2].
View 1 Replies
Jan 14, 2008
I have an Access Database (doesn't need to be Access, I can phpAdmin or mysql, whatever will work) that has a list of names. I want the user to open a Flash form and have the names load up into seperate input boxes for each name. The user can then change the names, move them, whatever, and then save the record. I want it to just overwrite the record. I donlt want create a new record. I cannot, for the life of me, figure this out. I have tried to find some tutorials but nothing makes sense. Is ASP a good way to go? I have been struggling with this for a week now.
View 3 Replies
Sep 14, 2009
Is it possible to make a feature that allows the user to save as swf?
lets say the user drag and drop something unto the stage.. the user got some sort of timeline to control the tween with.. the user make a second keynote. and moves the object earlier draged onto the stage, so now if user press "play", the object will move.. and now the 1million dollar question.. is it possible to save this tween/movement as a SWF? (or avi or whatever..) as long as it can be loaded again later? - using xml is not an option in this case.
View 6 Replies
May 20, 2011
I am trying to save user location in a course. I am looking for the a simple way for a new Flash CS4 and Actionscript 3 user. The program will be copied to the users hard drive. I am creating a course that has 3 topics each with about 8 sections. The user can go to any of the topics in order and when they complete can do a final assessment. I am looking for a simple way to keep track if the user has finished any of the topics, then to keep track of where they are in a section, so when they return to the program they can pick up where they left off. Also, wondered if their is a next label command like the nextScene command?
View 4 Replies
Dec 15, 2009
I'm working on a project using AS3 and timeline coding. I can't figure out how to save user information and score. When I run the movie and complete form and answer quiz questions, information is displayed on closing section, but it doesn't save.
Here are the main sections by label:
// SECTIONS
Introduction (labeled "intro") -- contains directions
Information (labeled "inf") -- collects user information
quiz-questions (25 questions -- from q1 to q25) -- presents questions
[code]....
View 4 Replies
Jul 27, 2010
What's the best way to save user credentials in flex? Local storage doesn't seem like good place for storing confidential data, because it saves information as a plain text.
View 5 Replies
Jul 31, 2011
don't have any experience with it but I've designed a tool for people to use on my website.I need a way for them save a section of the flash interactive flash to their computer Hard disk.link here
View 1 Replies
Jan 18, 2012
i am looking for some kind of library which does CRUD easily using PHP and MYSQL.My goal is to make some app in flash AS3.0 , where i will be receiving some data from user and storing in data base , and perform CRUD opertaions. I dont want to be so much involved in writing php and sl query.My scenario is:
Data types : [ like user_profile data, etc]
add under data types 1 to many fields with various types..
Database tables and realtions etc should be done by my DREAM library, then user when select a Dtat Type, he is presented with related fields to fill up data.
I will be using Flash AS3.0 ( Builder or IDE ) to perform .If only i can find some php library i think AMFPHP can connect flash with php
View 2 Replies
Feb 5, 2010
I have found many drawing pad solutions. Some good, some not as good. All of them, however, fail to show how to save the file as a pdf (would be happy with bmp right about now) from the drawing pad to a server side folder via php. Can someone show how to do that using as3?
On the advanced side, I also need to figure out how to make it recognize logged in users of the preexisting CMS in order to save out to specific user folders. The CMS is Joomla 1.5 latest build, with JomSocial and JSPT multi profile. It would save out to folders created by the JMarketPro system.
View 1 Replies
Aug 23, 2011
I have a site that contains approx 20 pages of lengthy forms. The forms exist on single frames within the flash movie. This application is used as a demo only, so I do not have a need to submit the form data. The demo is used to go back and forth from form to form and fill in mock data. The problem is when the user goes from form to form the data they have entered is not saved. Is there a way I can set all frames to remember the data entered into the form without having to set every form control instance? There thousands of fields in these forms and I am trying to avoid individually naming them and scripting them to save their values.
View 5 Replies
Jul 2, 2010
I see flash has a save call to do this job, but it requires user interactive.
How to save it automatically?
View 3 Replies
Sep 6, 2010
I am developing a small flash application. In my application a user can draw a painting. I want to capture the drawing process as a video, and later allow him to view how he painted the drawing. Is such a thing possbile? If so how (do I need flash media server for this)?
View 1 Replies
Aug 8, 2009
What actionscript i need, to send the user balance to my Mysql and save it there. and when the user come back to the game get the same balance from the last time(override the user balance).here is part of the Flash code that in the game:
game_pr.display = function ()
{
_root.display.balance = "<P ALIGN='LEFT'><FONT FACE='04b_25' SIZE='12'
[code]......
View 0 Replies
Dec 16, 2009
I'm working on a project using AS3 and timeline coding. How to save user information and score. When I run the movie and complete form and answer quiz questions, information is displayed on closing section, but it doesn't save.
Here are the main sections by label:
// SECTIONS
Introduction (labeled "intro") -- contains directions
Information (labeled "inf") -- collects user information
quiz-questions (25 questions -- from q1 to q25) -- presents questions
closing (labeled "closing") -- displays user information plus score on quiz.
Here is the code by section
// SECTION INTRODUCTION
Section "intro" --- I have one button that goes to "inf" section
stop();
intro_bt.addEventListener(MouseEvent.CLICK, gotoInf);
function gotoInf(evt:MouseEvent): void{
[Code] .....
View 2 Replies
Jun 8, 2010
how you can make it so that the user can press a button to save a specified area as an image so that they could email the image to someone?
Background... the user will be able to change and create their own picture and then they want to save the image they have created.
View 3 Replies
Oct 13, 2010
I want to save a jpg of dynamically loaded swf's to the user's computer. Everything works great, except the loaded swf's don't appear in the jpg (everything on the stage renders fine). Any thoughts?
[Code]...
View 3 Replies
Jul 27, 2009
I'm looking for a way to do this from a website. From what I can tell this is possible but if you're going to use flash you need flash media server?
View 1 Replies
Sep 28, 2010
I am a developer in Web Flash Game.(I use AS3.0) I want to save and load the swf-file to a local disk of any user,Because I want to decrease the time for loading a flash movie from site.Is it possible?If it is possible, I hope the swf-file has only one loading from site and it will be loaded from a local disk of any user after that. (I know a concept of Internet temporary file. I want to know the other techniques of only using AS3.0.)
View 3 Replies
Feb 26, 2011
We are professional game developers working on our first game in the Flash format. As the game will be about 70 megabytes in size we would like to allow the player the option of saving the game to hard drive to avoid reloading in the future.
View 1 Replies
Sep 2, 2011
When a user selects a record in a datagrid I launch a pop-up window with more detailed info. The user can make changes to the record in this window but they don't have to save them. For example, they can click the X to close the window.whenever a user makes changes I update the object directly.Is there a pattern for copying the object and then mapping the changes to it when a user confirms they want to save?
View 1 Replies
Jun 22, 2011
how can i make a shared object save a user name for a scoreboard it works like this i made a mc that is the scoreboard and the scoreboard has text boxes in it and the game gets a popup when it starts with a editeble text i want that text to save on to a text box in the scoreboard mc how can i do that?
View 3 Replies
Mar 11, 2010
I have created a simple Flash file using actionscript 2 (CS3) that allows a user to enter text into an input text field and then print the results. Now what I want to do is allow the user to save the information they've typed in a file of some sort. I would prefer a .pdf, but I'm not married to that format.
View 1 Replies
Mar 10, 2010
I have created a simple Flash file using actionscript 2 (CS3) that allows a user to enter text into an input text field and then print the results. Now what I want to do is allow the user to save what they've typed in a .pdf. (I would prefer a .pdf, but I'm not married to that format.)
View 1 Replies
Jul 21, 2010
I need to call FileReference.save() after a web service call has completed, but this method has a restriction: "In Flash Player, you can only call this method successfully in response to a user event (for example, in an event handler for a mouse click or keypress event). Otherwise, calling this method results in Flash Player throwing an Error exception." (from the documentation here)
This restriction is a bit vague. Does it mean that I can only call the FileReference.save() method from within an event handler function that is registered as a listener for certain types of user events? If so then exactly which user events are valid? (Perhaps there's an event that will never be dispatched by user interaction with my application and I could register an event handler function for that event type and make the save() call from within that function?)
My difficulty is that I can't safely call the FileReference.save() method until my web service returns with the data that will be used as the argument of the FileReference.save() method call, so the event that triggers the FileReference.save() call is actually a ResultEvent rather than a user event, and I'm leery of dispatching a new (faux) user event type in order to be able to trigger the FileReference.save() call unless it's definitely a user event that would never be dispatched as a result of actual user interaction with my application.
In a nutshell what I'm doing now is this: I have a function that is registered as a handler for a button click. In this function I make my web service call to fetch data from the server. I also have a result handler function which gets invoked when the web service call completes, and it's in here that I want to call the FileReference.save() method since it's at this point that I know that the data is ready to be saved to a file. But the aforementioned restriction is blocking me from doing this -- I get an error:
Error #2176: Certain actions, such as those that display a pop-up window, may only be invoked upon user interaction, for example by a mouse click or button press.
I've tried many things to get around this such as creating a second mouse click event handler function with the FileReference.save() call within and calling it after a timeout interval (to give the web service time to complete), but I keep running into the same error -- maybe that approach doesn't work since the second function isn't registered as an event listener for the event type used as its argument.
View 3 Replies
Mar 12, 2011
How can save data into a XML file without user prompt dialog in Action Script 3?
I'm writing an simple application (with adobe flash) that runs on client PC and save user state data in XML file in same directory of app. When i use FileReference it shows a user dialog for saving file. Is there any class to save just XML data directly into XML file?
I think writing just XML (text plane) data couldn't make any security problems?
View 3 Replies
Sep 8, 2011
I want to save logs of user's operation by accessing log script file(for example, log.php) with post or get parameter from my flash application.The flash is web application not desktop application.In jQuery, javascript can access other files on the web site by using the following code:
$.post("test.php", {a: 1, b: 2}, function(data) {
console.log(data);
});[code].....
View 1 Replies
Mar 11, 2010
I have created a simple Flash file using actionscript 2 (CS3) that allows a user to enter text into an input text field and then print the results. Now what I want to do is allow the user to save a file containing the information they've entered. I would prefer a .pdf, but I'm not married to that format.
View 0 Replies