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
Similar Posts:
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
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
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
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
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
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
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
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
Aug 17, 2010
I am currently doing Augmented Reality. I got my marker to detect my model but my problem now is how to screen capture the content that is in swf. (As in capture the dae model shown in the comp not from webcam.)
& also i just want to capture the swf window not the whole desktop.I read online, they say its impossible?
Or is it possible to call screen capture function in javascript to flash CS4? (LIke external data)
(Moreover, does anyone know how to detect multiple dae models with different markers?)
View 4 Replies
Jul 1, 2009
I'm using screen captrue software (camtasia studio 6) to capture a video of my flash animation. But when I capture it, the aniamtion is jerky. My flash animation is set to 30fps and looks great when played, but not when I play back the captured movie.
I have experimented with a few other codecs, including the Techsmith default, cinepak and microsoft video but they are all the same.
Could someone recommend to me a good codec to use that will capture my animation better?
View 2 Replies
Apr 26, 2010
there is some simple way I can capture a screen shot to a jpeg or something similar when running an exe/swf on full screen?Basically I have a car configurator, and at the end I want to capture the final choice of colour/ wheels/ background and maybe name of person to a file.....
View 2 Replies
May 10, 2010
Is there anyway to disable the Print Screen key or stop users from capturing the screen.
I've tried the fallowing method
private function init():void
{
this.addEventListener(Event.ENTER_FRAME, onEnterFrame);
}
[Code]...
but it gives me this error, anyway to make this work?
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. at flash.system::System$/setClipboard()
View 3 Replies
Mar 20, 2009
Iam new to As3 I need to pass the string value from servlet to flash. So need the as3 code snippet For the above problem.
View 1 Replies
Jun 19, 2009
I am trying to do an image capture while in full screen, however the full image area is only partially captured, or the coordinates are off. In the source files you will see a few of my attempts commented off.
View 6 Replies
Jan 23, 2011
I'm sure it's easy to do, but I just cannot figure it out. I've created a timer but want to let the user set default values to start at so they don't have to modify the start time each time the program starts.I was able to create a text box but it is un-editable in the actual program. It displays '00' nicely but it's useless. I haven't even gotten to the point where the data is pulled and stored.
ActionScript Code:
var timerHrs1:TextField = new TextField();
timerHrs1.type = TextFieldType.INPUT;
[code]......
View 3 Replies
Sep 19, 2011
Im writing an IOS game using AS3. Here's the problem- I have an image on the screen that moves around. When the image's y value goes negative (the image is partly off the screen), the frame rates bottom out. I've gone over my code pretty thoroughly, even threw together a few test projects just to experiment. In all the test I do, whenever there is an object that is off screen, even partially, the frame rates drop. It's making scrolling backgrounds impossible. BTW, I'm using Packager for iPhone and a 3G (not 3GS). Frame rates are normally 24 with no problems
View 2 Replies
Nov 22, 2006
At my last job I was teamed with a developer to make this stuff work, now I'm on my own and have been tasked with creating an e-learning suite that can track quiz data. Flash Templates will not work as there is some deeper interactivity we're creating. I've tried deconstructing the quiz templates, but that has proved very hard. The actionscript manuals have, as usual, proved not so useful; My personal design book library goes only to 5. Is there somewhere I can go, or a book you could recommend to either learn the easiest way to script data tracking for a (very) custom quiz, or find a few source files I can tear apart and reconstruct.
View 3 Replies
Jan 19, 2010
I am trying to import data from an xml file and use it in a quiz program. currently the quiz program uses an array like so:\
wordList = ("John,Susan,Mary,Margaret,James,Sam,Ursula,Nelly, Peter").split(",");
My xml file is in the form: <list><word>John</word><word>Susan</word><word>Margaret</word><word>James</word><word>Sam</word><word>Ursula</word><word>Nelly</word><word>Peter</word>
[code]......
View 2 Replies
Jan 5, 2005
Im creating a Flash quiz using external XML data. For example, 5 items and the user has to select the correct ones. The answer is inside the XML, and looks like this:
HTML Code:
[Code]...
View 2 Replies
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
Apr 3, 2012
This question was posted in response to the following article:[URL]
View 10 Replies
May 30, 2007
I need to run a query and convert the results to an XML string. I *think* I need to do all of this in PHP but I wanted to get some guidance as sometimes I make things more difficult than necessary.
Do I have 2 scripts... one to query and one to process the results to XML? Or can I put them both in the same script. To do the latter is not proper OOP practice, correct?
Once that is done, I can get the data into Flash. I need it to be XML though because the same data is being used elsewhere outside of Flash.
Is this the proper, most efficient way of handling this task?
View 4 Replies
Jul 4, 2010
Is it possible for recent versions of flash to directly (or thru Php) access (& update) data from a mysql database and display results based on the data?
So if my database were like this (math scores):User 13Jerry | 20Kane | 7 the flash output would be a bar graph like this (those hyphens would be bars in flash)
Is this possible these days? Google analytics does something like similar to this.
I last used flash somewhere in 2003/4. Never after that :-) I've completely lost touch.
View 6 Replies
Apr 2, 2012
I've created a function to send Post data to my server, and this then outputs xml to the page. What I can't find any information on how to get this data from the page back into flash.
View 2 Replies
Jan 28, 2010
I build flash web sites and have only a limited understanding of javascript. I am trying to monetize a flash page that I have built for myself and is getting an increased traffic. The page has to be flash as it is based on flash dynamic graphic capabilities. Besides I prefer to integrate and customize the ads into my page rather than use standard ad zones offered by the ad networks. I have a permission from a small ad network to convert their ads to flash but I was not able to do it myself. They use a standard java script src code for creating their ads. It looks approximately like this:
<SCRIPT LANGUAGE="JavaScript1.1" SRC="http://bdv.Advertiser.com/Advertiser.dbm?pid=22222&bid=111111" type="text/javascript"></SCRIPT>
They require though that the capturing will be done in a way that allows them to monitor my page. I can publish Flash player 9 so I can work with ExternalInterface.call
how to translate the code to Flash and how to change the html code will be helpful. I am also willing to pay someone who is interested in working with me directly via Email correspondance on properly placing the code.
View 0 Replies
Mar 8, 2010
I'm modifying someone's old AS 2 Flash application and I need to pass numeric data in as a string OR have a properly formatted USD currency string in the end.
Currently, I might pass something like Data1=$34,000.00&Data2=$12,344.18&etc...
in via FlashVars. Assuming I show Data1 in a dynamic input field, I'd get something like "$34,0"
I'm not too concerned whether this is a super clean, proper solution or a functional hack-like solution with this application. It's needed, but only for a short time.
View 1 Replies
Sep 1, 2009
I would like to point out I have spent from 11PM last night to 4:30AM this morning searching the internet trying to find examples and ideas but I just cannot seems to find anything. I need to create a Flash Quiz with the following:
1.) A page with a question, including a "submit" button, and an Input Text field where the user can type in his answer.
2.) A page with "Correct" and a page with "Incorrect"
I have already gotten the pages and graphics created. But for the life of me my Action script is not working. I have boiled it down to the fact that maybe I just haven't named the input text field with the right variable?
EDIT: I need to use AS 2.0 and not 3.0
Quote:
on (release) {
if (answer == "2") {
gotoAndStop("correct");
[code]....
No matter what answer I select, it will always take me to the "incorrect" box. So I am convinced it has to do with the "IF FUNCTION" and it not being the right name.
View 1 Replies
Oct 17, 2009
I have a question regarding an if/else statement I am creating for a simple quiz test in Flash ActionScript 2.0. I have the .FLA file attached. main stage I have the following: of "yes" and "no" with keyframes to jump a message to the user about if their answer was correct or notMy button has the following script:
on(release) {
if(vAnswer == "yes"){
gotoAndPlay("yes");
}else{
[code].....
Am I not doing this correct? Everytime I type yes into the input box, it jumps me to my "no" label. I have researched, and I am doing something so simple and wrong, but I can't figure it out for the life of me.
View 14 Replies
May 28, 2009
I'm trying to create a text input quiz game.In frame 1, I have the actions:
stop();
answer = "";
On my stage I have a graphic symbol which contains a question. I have my blank input box, set to Single Line, Lower case Only. Variable is answer and maximum characters is 18. NO instance name.An Enter button , No instance name, with the attached code:
on (release, keyPress "<Enter>") {
if (answer eq "sun" or answer eq "the sun") {
gotoAndPlay("win");
[code]....
Everytime I enter the words sun or the sun, I get sent to the "wrong" frame instead of my "win" frame.
View 1 Replies