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


Similar Posts:


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

ActionScript 1/2 :: Quiz - Count Score At The End?

Nov 23, 2010

I have a working quiz but I want to know how to get the score of the number of correct answers the person got but I can't seem to figure out the code for it. This is my code below.

stop();// movie clip waits on buttonsgloss_mc._visible = false;// set the gloss initially to not visiblescore_int = 0;// score on the quiz is initially zero// button functionsq1_btn.onRelease = function() {    scoreQuiz_fnc("1");};q2_btn.onRelease = function() {    scoreQuiz_fnc("2");};q3_btn.onRelease = function() {    scoreQuiz_fnc("3");};q4_btn.onRelease = function() {   

[code]....

View 5 Replies

IDE :: Flash Quiz - Score Keeper?

Nov 9, 2009

I've been fiddling around with the flash quiz template and it's pretty much what I need to a point. But I really just need is to know how to keep score?

View 1 Replies

ActionScript 2.0 :: Quiz Score Not Working - Remain Same All The Time

Mar 25, 2007

I'm trying to create a simple quiz with a few questions, the code I have below doesn't seem to work. It comes up with my final score as -15 all the time, its not even checking to see if the answer is correct, as soon as I load the movie the Output comes out as -5 -10 -15.

quizBut.onRelease = function() {
totalOutput_txt.text = "Your final score is: "+score+"/30.";
};
score = 0;
if (_root.answer1 == "flush") {
[Code] .....

View 1 Replies

ActionScript 3.0 :: Score Quiz Results Using A Statistical Formula Called A Probit Function

Apr 7, 2011

I am working on an eLearning lesson that needs to score quiz results using a statistical formula called a probit function. There are formulas in many languages (VB, C++, etc.) for the probit function, but not in AS3. The closest I can find is in JavaScript.

[Code]...

View 8 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 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 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 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 :: Removing Correct Answers From Array In Of Random Quiz Questions In Xml Quiz?

Jul 21, 2010

Anyone know where to start thinking about logic for an XML quiz with multiple correct answers, that when the user gets the question right, that question is removed from the random array of questions so we never need to answer it again?

View 0 Replies

Media Server :: SharedObject.NoAccess Error When Trying To SharedObject.getRemote?

Feb 18, 2012

I've installed developer version of Flash Media Server 4.5 and trying to get remote object, but no matter how I call my object all i get is this error .I've rad configuration guide and it told me that I should set StorageDir for shared objects, enable RPC (<RPC enabled="true">) and allow shared object (<Allow>users</Allow> in <RPC> - <SharedObject> tags)

View 1 Replies

ActionScript 2.0 :: Get Score Text Box To Gotoandplay Another Frame - Scene When It Hits A Certain Score?

Aug 10, 2004

Im designing my own game in flash, iv set up a score text box and it works fine. Except i just cant seem to get it to gotoandplay another frame,scene, when it hits a certain score??

View 4 Replies

ActionScript 2.0 :: Score - Movie Go To Frame 3 If The Score = 500?

Feb 17, 2004

i am building a shooting game and i was wondering if it is possible to have the movie go to frame 3 if the score = 500.I.E Score is displayed in a dynamic text box and everytime the enemy is hit the:

_root.score +=50
=============
on the first frame of the film i have the code

if (_root.score == 500) {
gotoAndPlay(3);
}

View 2 Replies

Actionscript 3 :: Multiple Dynamic Text Score Display - Modifying Each Text One After Another And Incrementing The Score By A Certain Number

Feb 23, 2011

I have a result screen that shows bonus points and such. I want each text field to increment one after another and also have it increment by a certain amount each frame. Result Screen pops up. First is the player score check the player score, is it more than the score we want to display if the player score is greater than the player display score by 100 increase the player display score by 100 if the player score is greater than the player display score by 10 increase the player display score by 10 else increase the player display score by 1 when finished move to the next score...and so on. I have thought of using timers to move from one score to the next, but not being in an Event.ENTER_FRAME it only does one if then moves to the next one.

Also the if statement for incrementing the score looks ridiculous and I'm thinking there has to be a better way to do it. I was thinking of making it a separate function but then I wouldn't know what to return, or how to return it so it looks like its increasing and not just showing the total number instantly. I'll try to expand on it a little more.

View 1 Replies

ActionScript 3.0 :: SharedObject Error: Error #2134: Cannot Create SharedObject?

May 9, 2011

Gives me this error:

Error: Error #2134: Cannot create SharedObject.
at flash.net::SharedObject$/getLocal()
at as3_shared_objects/showVar()

[code]....

View 2 Replies

ActionScript 2.0 :: Incorporate A 'Save' Button Which Takes A Snapshot Of Their Drawing Which They Can Then Save To Their Computer

Nov 21, 2009

I've designed a painter program where the user can select different colours and 'paint' a custom design on screen. What I would like to do is incorporate a 'Save' button which takes a snapshot of their drawing which they can then save to their computer.

View 0 Replies

ActionScript 3 :: Save File Locally In Flash Without Displaying Save Dialog

Jan 31, 2010

How do we save file locally in Flash (ActionScript 3) without displaying dialog. I know we can use the following code to save file locally but it prompts Save dialog. I don't want this dialog while saving file locally.

[Code]...

View 3 Replies

Flex :: Bypass The Save Dialog Box Of FileReference.save?

Jul 6, 2011

Can we Bypass the save dialog box of FileRefernce.save()? If not, then Is there any workaround to save a file from web application in Flex without asking user where to save file?

View 1 Replies

ActionScript 2.0 :: Save File By Prompting Save Window?

Nov 21, 2006

I need to create a notepad in flash.here how could i save the file by prompting the save window?

View 11 Replies

ActionScript 3.0 :: Save Images With My MyProject.as With FileReference.save?

Dec 20, 2010

i have movie clip with Images and button Save and class MyProject.as how save images with my MyProject.as, with help FileReference.save? what to write in code? how code should look like? tell me good people I want to write everything in a separate class

View 3 Replies

ActionScript 3.0 :: Get Rid Of Save Dialog Box In Filereference.save()?

Sep 22, 2010

Is there a way to get rid of the save dialog box in filereference.save()?I want to specify the filename and location rather then letting the user do it.

View 6 Replies

Professional :: Save CS4 Documents In CS5 Without Save As Dialog?

May 7, 2011

At my college, they have CS4 (master suite) and at home I've got CS5 (design premium). I can save files in CS5 as CS4 so they can be read at college (by Flash) but I have to do it via the "save as" every time I save. After a couple of times, it get rather irritating. Is it possible for me to save in the usual way (as if it was a CS5 document) without the save as dialog every time I save my work?

View 5 Replies

ActionScript 3.0 :: How To Do A Quiz?

Jan 10, 2010

I have to do a quiz, which will be a random 5 questions from among the 20 I have no idea how to go about doing this, please help.

View 2 Replies

IDE :: Can't Get Results In Quiz

Mar 10, 2007

i made a quiz in flash using actionscript:

At the end I have to sum the answers and show the result to the user but I can't get it.

Here is the code (I'm kind of new to actionscript, sorry if the code it's too long):

Code:
var p1=0;
var p2=0;
var p3=0;

[Code].....

View 5 Replies

IDE :: Quiz With An Action At End?

Mar 10, 2010

I am writing a module and I have a section in this flash file where a quiz comes up and if you don't click on the right answer it tells you to try again. If you click on the right answer it will load the next swf file. But I can't get this last part to work. The quiz is within an xml file.

var current:Number = 0;
var qbox:Sprite = new Sprite;
var quiz:XML;[code]....

So where it says "if(correct) {" on the bottom, I want the file this file to go to the next swf file not say "Correct!".

View 1 Replies

Create A Personality Quiz?

Mar 21, 2009

How I can make a simple personality quiz in Flash? I've been searching for months for quiz/test codes, tutorials, examples, etc...but I can't find one that would work for a quiz with no "right" or "wrong" answer.

Basically what I want to do is have the user click on statements that they agree with, or answer questions that would lead to one of two possible results.

View 1 Replies

ActionScript 2.0 :: Save A Page - Add Some Sort Of A Password Or Save Feature To People Can Type In The Password

Sep 23, 2008

Im new at actionscript, and I am making a very project. Basicly, I have some thing were there is a page you can get to by beating other parts of the 'game'. I want to add some sort of a password or save feature to people can type in the password of something at the opening screen and jump to that page.

View 1 Replies

ActionScript 2.0 :: Flash Quiz (form) To CSV Using PHP

Jul 27, 2009

I have a simple quiz (Q and A) to design that contains both input fields as well as dynamic fields which gets a value (text or number) from an onClick action. When i submit the form, using the code from this thread (http://board.flashkit.com/board/show...hreadid=766156), i managed to get the input fields content to get saved on to the CSV file, however the dynamic content doesn't. it only works when i literally type the value in the text field.

View 8 Replies







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