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


Similar Posts:


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

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 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

Professional :: Sending Flash Quiz Results To A LMS?

Mar 15, 2012

Using Flash CS3, having issues getting flash to send quiz results to a LMS. Using the Flash quiz templates, exporting with SCORM 1.2 compliance. The LMS is able to track times attempted and if the lesson was complete or not, however the quiz results don't reach the LMS.

I think this can be resolved in the actionscript or the javascript that gets exported with the HTML file Apparently you can control the javascript functions with FScommands from actionscript Something like fscommand ("LMSSetValue","cmi.core.score.raw" + "," + integer); I don't know where in the actionscript this should be triggered from.

View 1 Replies

ActionScript 2.0 :: Storing Results Of Student Quiz?

Jun 27, 2009

I have developed a number of Maths Question generators using random numbers. Students are able to input answers and see that they are correct. I would like to progress to the stage of storing student results on my website server (Actionscript 2.0 - with CS4)I am not sure where to start with this and I was hoping for suggestions on the direction I should take to be able to do this.

View 1 Replies

ActionScript 2.0 :: Xml Quiz That Submits Results To Database?

Mar 22, 2010

i am wanting to creat a small quiz that runs from xml which pulls questions from a database, then submits the results to the mysql database upon completion.

View 4 Replies

ActionScript 2.0 :: Quiz Results Not Displaying In Swf File?

Nov 16, 2006

I am creating an interactive cd which basically runs a blank projector which then loads in various swf files from fscommand folder as and when required.

Part of the CD is a quiz - created using one of the standard flash templates. When this is loaded into the main projector as a swf file it runs perfectly until it gets to the "results page" - at this point it returns the blank templates e.g Answered = 0.

If you play the swf file on it's own it works fine. If you play the file as a projector on it's own it works fine too.

The problem only occurs when it is loaded into the main projector on a level above the root.

View 3 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

Professional :: Creating Online Quiz With Scoring Results

Aug 8, 2010

I had an existing client ask me about the possibility of building an online quiz. I am fairly adept at working "inside" Flash, but always run into problems when trying to export data "from" Flash anywhere else. I am also trying to figure out if Flash is the best application to build this quiz (I see other possible apps like Captivate, but don't know if they are necessary for what I am trying to do).

What I need to do:
I need to create a Login screen to attach the final text score to an individual.
Create (50) separate screens for 50 questions with multiple answers for each (simple enough) with submit buttons once the answer(s) are chosen.

Each time an answer is submitted it has a certain "weight" toward the total score (which I am guessing that I could track into a variable inside Flash?) When the test is complete all I need to do is send that Person's Name/Total Score to a database. Is this something best accomplished using Flash?

View 3 Replies

ActionScript 3.0 :: Score Keeps Resetting - Getting Sporadic Results

Jan 14, 2010

I have a character on the stage in my fla that when hitting a particle created in an a particle.as removes the particle. I have the code for removing the particle and also a score counter that adds one everytime a particle is removed (located in my particle.as). My problem is the score keeps resetting or I get sporadic results (not sure which) for example here I traced the results;
16
17
24
18
7
23
24
25

On the stage I have a dynamic text field called score_txt, that displays my score.
Code:
package {
import flash.display.Sprite;
import flash.display.Shape;
import flash.events.Event;
import flash.utils.Timer;
[Code] .....

View 1 Replies

ActionScript 2.0 :: Results Screen Of Quiz Not Reading Arrays On Frame 1

Dec 15, 2006

i am building the results screen of a quiz and for some reason, my traces to these arrays are showing as undefined. Here is the code on the Results frame....

[Code]...

View 1 Replies

ActionScript 3.0 :: Capturing Data In A Text Box On Results Screen For Quiz

Mar 19, 2009

I have a little quiz, where at the end the results are calculated and the test takers are taken to a results screen which calculates their results.

I have AS3 code creating the message screen, and the score is calculating ok. I want to capture the users name on the results page, and this is not working. I have attached the code which calculates the score and where I added the instance name of the test box when they login. I get an error when I publish. The error is "Access of undefined property name name_text"

obviously this is not how to capture that information, but not sure how to do it. Again, I have a text box with the instance name of "name_txt", and I am trying to capture that data on a results screen using AS3.

Code:
feedback.text = "Congrats" +name_txt+ "on finishing the exam!
Your score is "+Math.round(score*100)+"%
You may now close the exam window.";

View 1 Replies

Actionscript 3 :: Made A New Layer Called Score, Dragged Out A Text Area, Converted

Mar 29, 2012

I want to have a score in the bottom corner of my game. I made a new layer called Score, dragged out a text area, converted it to a symbol and named it Score. Then I set its instance name to Score.

The main class of my flash game is called Main.as. However, I can't seem to access the Score text area I made within the code. I get this error:

1046: Type was not found or was not a compile-time constant: Score.

What did I miss? How can I update the text areas text from within my code? Edit: Forgot to mention I clicked the "Export for ActionScript" box when I converted it to a symbol. And it's of type MovieClip, if that matters.

View 3 Replies

ActionScript 3.0 :: Library For Making Statistical Graphs In It?

Nov 6, 2010

Does anyone know of a good library for making statistical graphs, such as histograms and box plots for as3.

View 2 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

ActionScript 3.0 :: Compiler Bug - Var Declaration Function Definition Postcedes External Called Function Execution

Jun 29, 2010

Use Flash CS5 (and AIR, though this does not seem like it would be AIR related) in Win XP 64 I have a MovieClip symbol in my library with the identifier 'Puzzle10Piece10' with the following actionscript attached to frame 1 of the only layer with the following actionscript:

[Code]...

This runs contrary to my understanding of the pre-compiler and code execution order. In my way of thinking, any reference creation and related memory allocation is made when the object is instantiated, and indeed that allocation, unlike C depends not on code order (declaration before use), though this is an order that would satisfy even the C pre-compiler. If I understand the Flash compiler at all, it's not even a question of 'code order'... the symbol is pre-compiled such that for it to exist... for it to be instantiated, the variable would exist before the function would even be 'available' to be called internally or externally. Is my thinking way off, or is this a bug?

View 6 Replies

ActionScript :: Flex - An Object Returned From A Function Call Changed The Next Time The Same Function Is Called?

Jan 10, 2012

I have an AS3 program that calls a function multiple times. The function must return multiple variables, so I created a class for the function to declare an object containing all of these variables. For example, here's my class:

package
{
public class PER
{
[Code].....

Let's say the calling program calls the function, which returns the variables into data_set1 (where data_set1 depends on input variables arg1, arg2, arg3) using:

var data_set1:PER = function_name(arg1, arg2, arg3);

The calling program does some stuff, then calls the function again, but returns the variables into a new variable name, data_set2:

var data_set2:PER = function_name(arg4, arg5, arg6);

My intention is that data_set1 and data_set2 are different (e.g. not linked together).

My question is, given that arrays are passed by reference, will data_set1 be modified to agree with data_set2 upon the 2nd function call? Why or why not?

View 1 Replies

ActionScript 3.0 :: Return Result From Function Called By Function?

Aug 4, 2010

I'm using an AMF service that was built by someone else. Basically what happens is that some info is passed to the AMF service and it returns true or false.I want to be able to pass in various info to the a function that calls the AMF service(submitTracking) and then get the true or false value returned in onResultSubmit to be passed back to submitTracking.

var screen:String;
var buttonnumber:String;
function submitTracking(screen:String, buttonnumber:String) {

[code]....

View 3 Replies

Php :: Calling A Page With MySQL Query From Javascript Function Then Returning Results To Another Javascript Function

Jul 8, 2010

I am refactoring some code. I have a PHP page that contains a MySQL query and stores the result in a PHP variable $my_result. This result is then echoed to a Flash SWF during embedding with SWFObject. I now want to call this PHP page that makes the query from a javascript function like so - one change I have made to the PHP is that instead of storing the result in a variable $my_result I am echoing the result. Javascript function to call the PHP page and make the database query

[Code]....

View 2 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 :: Flash8 Score Function Not Fully Working?

Jun 2, 2009

I've got two textboxes txt7 and txt9. First shows percentage right (working) and second is conditional if less than 70% shows "should repeat this" (working) but if 100% the "well done" doesn't show.

txt7var = Math.round((new_score/4)*100); // convert score to percentage
txt9var = "";
this.onEnterFrame = function() {
if (this._currentframe == 'score') {

[Code].....

View 4 Replies

ActionScript 2.0 :: Strange Variable Results With Eventlistener Function

Oct 14, 2009

So I've got a function that does several things: It creates video cue points, loads content & executes a function based on those cue points, and finally, sets the eventlistener for the video.

The problem I'm having (after tracing it out) is that the variables within the function seem to be stored as an 'array-like' deal. In other words, the variables output as they should when initially clicked. Next time the code executes, it outputs the newest variable values then IMMEDIATELY the first variable values. This output 'builds' and builds but ultimately the content never dynamically changes as it always ends up loading the first content that was loaded very first time out. I'm *guessing* it has something to do with the event listener being re-instantiated? Tried modifying where I add the listener to no avail.

Any thoughts?


Code:
function vidPlay(vidName) {
swfText.gotoAndStop(1); // mc1 to load external data & play a function
swfText._alpha = 100;

[Code]....

I still haven't been able to figure this one out. My best guess is something to do with the eventlistener being re-instatiated each time the function is called, but I'm not sure. Again, it seems to either be 'storing' the variables in a backwards array somehow (first variable is stored and accessed last at all times) or maybe somehow it's creating multiple instances of the eventlistener and the variables are being pulled from the first iteration of it.

View 5 Replies

ActionScript 3.0 :: Display Function Results In A Dynamic Text Field?

Aug 6, 2011

i have two functions written to work out the time until lesson starts.

However, if i try to output the results in a dynamic text field, it doesn't work? It only works with the trace method?

View 5 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

Flex Set Function Not Getting Called

Oct 8, 2009

I've been banging my head against the wall with this one. I have the following set function in Flex. [code]If I set the periodChangeAmount to -1 or 1 the set method gets fired. If I set it to zero it doesn't get fired. What's the deal? Does anyone know why it wouldn't get called when setting it to zero. If I change the object type to a number or even an object it still doesn't work as expected.

View 2 Replies

Actionscript 3 :: Specify A Function To Be Called?

May 11, 2011

I have this script for random letter cycling below. I want to call this function to happen at a certain click or frame label, but when I call it with tweenmax, I get a runtime error. Can anyone explain to me how to call this function at certain events. I know this is definitely not best practice but have to try somewhere and here is what I did:

var targetWord:String = 'home';
var wordSoFar:String = '';[code]....

View 1 Replies

IDE :: Function Not Getting Called In OnLoad?

Mar 9, 2009

I am loading one xml file and onload (or onData) of this file I am calling another function but, this function is not getting called. What can be the issue? Can delegates be used here and how?

Here is the code for reference

Code:
//path for _global.bookXML is defined already.
_global.book_xml = new XML();
_global.book_xml.ignoreWhite = true;

[Code]....

View 2 Replies

ActionScript 2.0 :: Create A Search Function And Show The Results By Goin To That Particular Frame Within A Flash File ?

Sep 28, 2003

Is it possible to create a search function and show the results by goin to that particular frame within a flash file ?

The data is not dynamic....and it is not server/web based....

View 11 Replies







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