ActionScript 3.0 :: SharedObject - Save User Information And Score

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


Similar Posts:


ActionScript 3.0 :: How To Save User Information And Score

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

ActionScript 3.0 :: Save Quiz Score With SharedObject?

Dec 20, 2009

I'm working on a quiz using AS3 on timeline. I can't figure out how to save the score at the end of the quiz.  The result of quiz is displayed by its dynamic text box (out_score.text), but it isn't saved along with the rest of information. When I go back to section I, all information is displayed, but quiz score goes back to zero (0). I have section I, which collects user information. Section II, 25 question quiz, and section III, which displays information and score.
  
SECTION ONE (labeled "inf"):
// score variable
var i:Number=0;

[code]....

View 13 Replies

ActionScript 2.0 :: Sharedobject - Give The User A Option To Save That Layout/arangment?

Oct 29, 2005

i want to create a custumaizable interface that utalises the shared object code.for an over viewi am going to have a series of movieclips that contain navagation elements , that when draged into the order they want will give the user a option to save that layout/arangment .. so everytime they log in its the same ..

View 10 Replies

ActionScript 2.0 :: Save Information Obtained From Users To Files If The User Is Accessing The Flash File From A Cd

Sep 27, 2003

i'd like to know if its possible to save information obtained from users to files if the user is accessing the flash file from a cd. I would also like to know how it works if possible. And can the flash file be in .exe instead of .swf?

View 5 Replies

ActionScript 3.0 :: SharedObject Not Displaying Saved Information?

Sep 19, 2009

I'm using AS3 in timeline. I can't make a SharedObject display saved information. I have several frame labels (parte1, parte2... parte20). On parte8 I have a movie clip (whole_master), which contains three children movie clips placed on a separate frames (level_1, level_2, level_3). I would like to save the level of a game a user ends up with or exits the game. Then, we user returns and be able to go to the level he/she was playing.PROBLEM: The movie clip is on frame parte8, which isn't the first frame. However, when the user re-starts the game, the Shared Object should be read on frame 1.[Code].....

View 0 Replies

ActionScript 3.0 :: User Input Textfield - Get The Information The User Put In The Box?

Feb 25, 2009

I have some text that says go to page with a input textfield box and a go button. This is a flash cs4 file.I want to have the user input the page number and have it go to that frame.I am using actionscript 3.0 and have bought 4 books and researched online and still can't find what I am looking for.I can make the go button go to whatever page I want I just don't know how to get the information the user put in the box.

View 2 Replies

ActionScript 2.0 :: Save Score Via Using Components?

Sep 10, 2010

how we can save our score(number data) in data holder components.or is there any option to save data in Data Gride format components.

View 1 Replies

ActionScript 2.0 :: Creating Save File Using SharedObject?

Jul 31, 2010

I have attempted to create a save file using sharedObject but it doesn't work. I don't get any errors it just doesn't seem to save when I press the save button. In the main frame I have:

Code:
user_so = SharedObject.getLocal("user");
if(user_so.data.tclock != undefined) {
clock_txt.text = user_so.data.tclock;
gregism_txt.text = user_so.data.gregism;
} else {
gregism = 0
clock = -1
}

In the save button movie clip I have:
Code:
on(release) {
user_so.data.tclock = _root.clock_txt.text;
user_so.data.gregism = _root.gregism_txt.text;
user_so.flush()
}

View 2 Replies

ActionScript 2.0 :: Flash8 Random Number Won't Save Using SharedObject

Mar 23, 2011

On my stage is a dynamic text box and a "save button".The text box shows a random number which somehow does not save.In the fla file I added is a circle whose color can be changed from red to green, just to point out what I mean.

View 3 Replies

ActionScript 3.0 :: SharedObject Data--> Where Is It On The User's Harddrive

Oct 26, 2010

I've looked on Adobe's Flash Player guide and in the official docs, but it's not mentioned. I'm creating a game that saves your progress to the local drive using SharedObjects and want to reassure users about what's going on

View 3 Replies

ActionScript 3.0 :: Save Information On .swf On Website?

Feb 1, 2012

How do I make a flash document that records numbers on a server, so that whenever any user uses it, it updates so that when another user accesses it, they will see the current value and can update it. I'm thinking of just starting off simple and making a button that when you click it, the total count for the number of clicks increases by one, but I want to make it so two users using it at the same time will see each others' click and have it updated on their screen (with refreshing).

View 3 Replies

ActionScript 2.0 :: Save Information From 1 Scene?

Sep 8, 2009

I may be asking for something that is just too simple with this request, but is it possible to save information from one page without the use of PHP, ASP and other server scripts.

I have tried using Shared Objects but it just doesn't seem to work for my example as people have already been sorted into time order to create a leaderboard so not all information has to be stored.

I have attached a basic example of what my leaderboard looks like and all I want it to do is remember the leaderboard for the next time somebody logs onto that machine ... ? I may still be able to use Shared Object but I am not sure how to in this situation.

[Code]....

View 1 Replies

ActionScript 2.0 :: Only Show Button If User Gets To Certain Score

Mar 23, 2010

I have recently created a quiz that allows user to submit score to database, however I only want the submit button to be available if the user scores 100 % (all questions correct). This is the actionscript used on the final summary screen. is there a way to add to this? if userScore = 100 then display submit button, else leave blank.

Code:
userScore=(numOfQuestionsAnsweredCorrectly*100)/
(numOfQuestionsAnsweredIncorrectly+numOfQuestionsAnsweredCorrectly)
stop();

View 3 Replies

ActionScript 2.0 :: Submit User Score And Name To Database Table

Apr 22, 2008

I am basically having a problem in submiting the users score and name to the database table. When the user reaches the final score screen they are shown two dynamic text boxes that display there total result and a input text box where the user can enter their name. I have done everything and it still don't work. I know I can receive the data but I don't get why it doesn't submit it to my table.
The input text box has a instance name of "playername"
Score total dynamic text box 1 "correct_total"
Score total dynamic text box 2 "wrong_total"
I have also attached an image of my database table [URL].

PHP files. insertValues.php
<?php
$host = "localhost";
$user = "root";
$pass = "";
$database = "activitysystem";
[Code] .....

View 3 Replies

ActionScript 3.0 :: Save Debug Information To A Text File?

Nov 1, 2010

I have an as3 game that I am trying to debug. To do this, I allow the game to play itself repeatedly over-night (which generates information for around 500k games) and then I analyze the info in the morning. I would like to save the debug info to a text file instead of using trace statements. Currently, the game creates about ten strings per play which are printed to the screen. Is there an easy way to save these strings to a text file?

View 1 Replies

ActionScript 3.0 :: Grab Information From A Text File And Save Them In Variables?

Jan 4, 2012

I got a request today conserning .txt files.What I want to accomplish is to grab information from a text file and save them in variables (or an array, depends).Whats the best way to do this, and whats the do's and don'ts?I'm planning to use the LoadVars class to pass the variables through and i've got a working test, but isn't there a more efficient way to do this?

View 9 Replies

ActionScript 2.0 :: Save Files With "Save As Window" From A CD To User Choice?

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

ActionScript 3.0 :: Create A Game Where Circles Appear On The Stage And When The User Clicks On One It Disappears And Their Score Is Updated?

Dec 12, 2009

I'm trying to create a game where circles appear on the stage and when the user clicks on one it disappears and their score is updated. The circles appear for a short time then dissapear. If they dissapear before the user clicks the user looses points. The game is to last 20 seconds then the user will be shown their score and a little thanks for player message. This is what I have so far:
 
stop(); 
addEventListener(Event.ENTER_FRAME, playGame);
function playGame(Event):void    {

[code]....

Now what I'm having trouble with is all the timing. I need a way to turn the visibility off the circles after a few seconds of being created and I also need to set the duration of the game for 20 seconds.

View 5 Replies

Actionscript 3 :: Make A Score Counter For A Small Game Where The User Clicks On A Button On The Stage?

Mar 28, 2012

I have been trying to make a score counter for a small game where the user clicks on a button on the stage, each time the user presses the button the score increments by 10, however I cannot get the score to display on the dynamic text field.

var score:uint;
//scoreCounter is the instance name of the dynamic text box
function updateScore():void{
score += 10;
scoreCounter.text = score.toString();
}

View 2 Replies

ActionScript 2.0 :: Store A Simple Cookie That Will Remember The Score For The Next Time The User Plays The Game?

May 6, 2007

I'm just trying to store a simple cookie that will remember the score for the next time the user plays the game (the score governs if an option is visible or not)It all works fine until I close browser/reload the page, at which point the shared object seems to disappear, any clues?

Write:

Code:
var rem_score:SharedObject = SharedObject.getLocal("score");
rem_score.data.score = new Number(score);
rem_score.flush();

The problem prolly lies in my write code but ill post the reading aswell just incase there is a problem with that too

Code:
var rem_score:SharedObject = SharedObject.getLocal("score");
if (rem_score.data.score != undefined) {
this.remdscore = rem_score.data.score;
if (rem_score.data.score >=30) {

[code]...

There is another point it is read but it is the same sort of thing as the above.

View 1 Replies

Media Server :: User Information Logging / Extend Access.log

Oct 9, 2009

is it possible to extend the access.log file? I want to pass user information via the connect method to the application and want to include this data in the access.log file.

View 5 Replies

Media Server :: Appending User Information String Into Access.log?

Jul 27, 2010

I want to add some custom string into the FMS log file. If I am playing a video and I want to append some string every time when that video is played, which is in some way useful to me in analyzing FMS log, then is there anything provided or some function in which we can just pass the string as an input argument that appends it at appropriate place in the log file.

View 3 Replies

AS3 :: IDE - Display Information About The Link When The User Hovers Their Mouse Over The Button

Nov 23, 2009

I have converted an image into a button and am using the following code to use it as an external link.

[Code]...

This works fine which is great but I would like for it to display information about the link when the user hovers their mouse over the button. How would I do this?

View 1 Replies

ActionScript 3.0 :: Adobe AIR Nested Tables - Save The Information For A Layout Of Movie Clips On Stage

Jul 24, 2010

I am trying to save the information for a layout of movie clips on my stage. I am using the sqlite functionality in order to be able to save the layout to the local database. Each layout consists of several movie clips. My plan was to store pertinent information regarding these movie clips (such as x and y position) in order to be able to reload some new clips in the exact same place.

My problem here is that I want to create just one row in my database for each layout, but I want one column in that row to store the information for each of those clips (in a single row). Is there some kind of nested table functionality in sqlite?6564

View 2 Replies

Data Integration :: Exchanging User Input Information With Aspx Server?

Jan 26, 2007

I've made a flash page with user input for email and comments. The thing is I am working with a aspx.net server. The programmer has written out a aspx coding for the server side. Now all i have to do is write a script in the input fields in flash to connect to the aspx server. The progammer said that I would have to create variables inside the flash program to call to the aspx page he created. I am faily new to aspx and have no clue to writing a script with variables.

View 2 Replies

ActionScript 3.0 :: Importing Variables (information) From User Maintained Text Files.?

Jun 17, 2009

i am making a quick and dirty flash help source for my companies site.  Later on i will tweak I will pretty it up. I am going with two movie clips that i believe will be sufficient for now as seen the layout below....[code]....

MC_1 :Is the selection menu.I want to import from a text file the different help sections or catagories....eg.. Setup, Administration, Customizing, etc......Then i want to import from text files that are labelled and corrisponding to each section that will list the actual different help selections...eg..(Setup) would have sub menu options of System Requirements,Server Install, Client Install.I would have these sub menus in listed in different text files for each section heading.
 
MC_2 :Then when somene clicks on the submenu options like 'Server Install' in the given example Movie Clip 2 would import from yet another text file the actual help information in an HTML format
 
Questions:For MC_1 I am not sure how I should go about creating it!I assume I will be creating a MC inside of it, one for each variable it pulls in from the Header.txt file.....how do i do that when the number of variables can change?And then it will pull in and create the sub menus one for each variable that it finds in its own text file, again the number can change?From there i should have no problems having the sub menu, when clicked on, would pull the text info in html format into MC_2.

View 3 Replies

Actionscript 3 :: Create A Main Menu And A Hud Within The Application That Stores And Displays User Information?

Mar 6, 2010

I would like to create a main menu and a hud within the application that stores and displays user information. Buttons like sound and main menu options should exist.. Now i cant seem to find any examples of how to create this user interface / hud.

View 3 Replies

ActionScript 2.0 :: Input Text - The Later Frames The Information The User Typed In The First Frame Is No Longer There

Sep 16, 2003

I have a movieclip (named "checklist")with a great number of input text boxes in it. This clip is used early in the my movie (frame 1) and again at frames 20 and 30. The problem is that in the later frames the information the user typed in the first frame is no longer there. Now I could use the var parameter and set it to _root for all of the boxes, but I've been told that the var parameter is a bad way to go. Rather, I should use the name option instead, i.e. "myText_txt". I tried experimenting with objects, but I am not a programmer and so I am probably doing this wrong.

[Code]....

So, I am looking for a best practice. Should I just use the var parameter? That way all of the text fields update when the movie hits frames 20 and 30.

View 1 Replies

Actionscript :: Synchronization - Make Several External Calls To Get Various Pieces Of Outside Information In Response To A User Request

Apr 17, 2011

I am unable to produce the kind of synchronization effects I would like to in ActionScript. The issue is that I need to make several external calls to get various pieces of outside information in response to a user request, and the way items will be laid out on the page is dependent on what each of these external calls returns. So, I don't care that all of these calls return asynchronously. However, is there any way to force some amount of synchronization on ActionScript, so that at least calling the method for doing the final layout and placement of items on the page is dependent on all of my calls finishing?

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved