ActionScript 3.0 :: Multiple Answers Using Checkbox?

May 16, 2011

the user is able to mark 2 checkboxes out of #cb's.

how do i make sure he can mark EXACTLY 2 cb?

Code:
addfunction();
var total:int = 0;
var i:int;

[Code]....

View 2 Replies


Similar Posts:


ActionScript 2.0 :: Magic 8-ball - Answers Array To Store All The Answers And Then Call Them At Random Into The "answers" Field?

May 24, 2004

I've got an input field called "question" where you can type whatever you want, an ASK button called "ask" and a response field called "answer". Once you enter a question and hit the ASK button I want flash to randomly reply in the "answer" field with YES, NO, MAYBE, DEFINATELY etc.

Do I need some kind of answers array to store all the answers and then call them at random into the "answers" field? Am I on the right track?

View 7 Replies

Multiple Choice Game Containing Questions And The Answers?

Apr 22, 2009

I have a project that i want to make which is a Multiple choice game containing questions and the answers is four pictures when you click on the right answer you move to next question when your are wrong a wrong sign appears i have zero knowladge about flash but i thought this is similar to Geo Challenge in facebook ,,Right ?? what software to download ? any tutorials online ?

View 4 Replies

Professional :: Tutorial For Quiz With Multiple Answers?

Jul 10, 2010

I'm looking for a decent, step-by-step tutorial on how to make a QUIZ with MULTIPLE ANSWERS in Flash 8.

View 1 Replies

ActionScript 2.0 :: Make A Variable Have Multiple Answers Attached To It?

Sep 13, 2004

How do you make a variable have multiple answers attached to it?

example:

workPages = page2_mc, page5_mc, page6_mc, page7_mc

I tried this but it only used page2_mc and an array didn't work.

View 3 Replies

ActionScript 2.0 :: Multiple Choice Quiz - Tracking All Correct Answers?

Mar 24, 2004

I am currently trying to create a multiple choice quiz. Alright, what I want to do is this - I want to create a multiple choice like this, where user click the answer and they will be linked to a feedback page, telling them what is wrong with their answer. Then they can click an "OK" button to proceed to the next scene where there will be the next qns. The reason why I am not putting all in the same scene is because I need to do up a different scenario for each of the qns.

If I were to have ten qns in one scene, I was told it is "no good" by my lecturer. At the end of the ten qns, there will be a grading of points. I want the script to be able to track all correct answers despite all qns being on different scenes. Because I want the grade to show at the evaluation scene. is it possible to capture the answer user has clicked on, store to the array, store in another array as one point if it is a correct answer and click next to go to the next scene for the 2nd qns, not next frame.

View 14 Replies

ActionScript 1/2 :: Multiple Dropzones For A Drag And Drop Item - Show Answers Option?

Nov 8, 2011

I have a drag & drop activity where 3 of the drags can go into 1 of 3 possible dropzones and be counted as correct. On clicking 'Submit', if only some are placed correctly, there's a 'Show me' option - this is the bit I can't do:if some of those with more than 1 possible answer are correct, I don't know how to check which dropzones are free to place the remainder in. My code for the first bit, checking the hitTest is ok:
 
for (var i:Number = 0; i<aLabels.length; i++) {
//3 drag items have 3 poss dropzones:
for (var t:Number = 0; t<aNewCorrectDZ[i].length; t++) {
//IF ITEM IS DROPPED ON ANY DROPZONE:

[code]....

View 3 Replies

ActionScript 2.0 :: Checkbox Tweak - Display 'Yes' If The Checkbox Is Selected, And 'No' If The Checkbox Is Unselected?

Feb 12, 2009

This PHP contact form works well and is very simple. I have one checkbox in the fla file. However, it keeps displaying 'No' in the email message field, whether the checkbox is selected or not. It should display 'Yes' if the checkbox is selected, and 'No' if the checkbox is unselected.Here is the PHP:

PHP Code:/DESTINATION--------------------------
$destination="***@***.com";
//-------------------------[code]....

View 4 Replies

ActionScript 1/2 :: Checkbox List &amp; Multiple Selection?

Aug 17, 2007

I've added checkboxes to a list component using the cellrenderer however the behavior is different from what i expected. I'm only able to check one box in the list at a time. I need to be able to check mutiple boxes in the list.

I'm aware you could hold down the control key and select individual the checkboxes, but the application i'm developing is a touch screen aplication hence no keyboard, no control key. I've tried programmaticaly setting the selectedindicies but the checkboxes don't appear checked after the selectedindices have been set.

View 1 Replies

Flex :: Pass Multiple Data Items Through Checkbox?

Dec 18, 2010

I have 2 checkbox repeaters: The first gets populated w/ an ArrayCollection & the second gets populated w/ the "Label" and "Data" fields selected from the first checkbox....how do I pass another item to the second checkbox? In the code below, I am currently only passing the "key" and "val" fields & would like to pass "another" field.[code]...

View 1 Replies

ActionScript 3.0 :: Creating Multiple Sprites With Checkbox Using One Function

Aug 15, 2010

I would like to create multiple sprites with a checkbox to remove all items from that sprite without removing the sprite itself. I would rather not create a script for each individual sprite. I would prefer creating one function that creates all the sprites ... If you see below, I would like the function (CreateSprite(10,20)) to include one on the sprites I created in the first line i.e.: CreateSprite(10,20,s1); rather than create 3 CreateSprite functions. I would also like to avoid creating multiple boxClick functions for each sprite.

var obj:Sprite;
var s1:Sprite, s2:Sprite, s3:Sprite
function CreateSprite(xx:int,yy:int):void{
obj = rectSprite();
obj.x = xx;obj.y = yy;
[Code] .....

View 0 Replies

ActionScript 3.0 :: Datagrid - Make The Checkbox In Col1 Selected When Selects The Checkbox In Col2

May 4, 2009

I am using datagrid and added 3 columns to it in flex project. Data is provided to each column by using itemrenderer. Itemrenderer is checkbox for each column. Name of columns are col1,col2,col3. I want to make the checkbox in col1 selected when i selects the checkbox in col2. But i am not able to do this.

View 1 Replies

Actionscript 3 :: CheckBox In Flex 3 - Text Area Which Should Contain The Selected Checkbox's Label / Data

Mar 19, 2012

I need a datagrid, which contains checkbox (4 no's) without multiple selection. And I also need a text area which should contain the selected checkbox's label/data. I tried using arraycollection but I am not getting.

View 2 Replies

ActionScript 3.0 :: Interesting - Looking For Answers?

Sep 21, 2009

I've created an entire website from one .swf. No dynamic loading of other .swfs, or external content etc. Simply a few different buttons that navigate to different frame-labeled areas of the .swf via gotoAndPlay, etc. There are 8 different "areas" of the timeline to go to, each with it's own set of movie clips for that area.

As far as I know, the website works great on all computers and browsers with current Flash players. But I got a call from one of the owners of the business I created the site for and he's having an interesting problem: The preloader completes and takes him to the first area. He can see areas 1-4 just perfect. But when he click to go to area 5, less than half of the movie clips load in what seems to be a random order and then the rest of the .swf (beyond that point in the timeline) can't be accessed at all.

This could be common, but as far as I know, I've never heard of it. He's had someone at his site who is apparently "fluent in computer" look over his internet settings and cannot find any issues.

Anyone ever heard of this or know what I should suggest he try besides updating his browser and Flash Player?.

View 3 Replies

ActionScript 3.0 :: Quiz With XML Questions And Answers

Nov 18, 2009

I'm trying to create a simple quiz that picks questions from an XML file, then checks the answer the user enters against the answers stored in the same XML file. Every time you press blue_btn it should bring up a new question. Right now I'm stuck -- it shows only the last question in the XML file, when I enter the right answer it tells me it's wrong, and when I press blue_btn again nothing happens.

[Code]....

View 4 Replies

ActionScript 2.0 :: Make Selected Answers Remain?

Sep 6, 2009

I have a flash quiz that I created. The file is an external swf loaded on top of another flash swf. The quiz is all radial buttons and drop down menus. Once the user choose which answer they feel is correct they click submit. Before they click submit they have an option to close the window. What i want to happen is if they close that window and return I want those selected answers to remain or even if they submitted before; i would like for those answers to remain.

View 5 Replies

ActionScript 2.0 :: Keeping Answers To Two Decimal Places?

Jun 30, 2004

flash and I am trying to multiply two numbers where one is a decimal The result are answers with one, two and three decimal places depending upon the numbers being multiplied.

View 9 Replies

Actionscript 2.0 :: XML - Answers Only Load The First Time The Swf Is Opened

Feb 24, 2009

I'm doing this project for a school competition, I'm nearly done but I'm having some XML trouble. I have a custom quiz, which is an external swf loaded into another swf on a certain button click. The Questions from the quiz always loads properly, but the answers only load the first time the swf is opened. Every other time, the "Answer Placeholder" text shows up instead. This can be seen at [URL], scroll over the arrows on the side of the page, and then click on "Quiz". It may work the first time, but after a page refresh, just the placeholders again.

[Code]...

View 3 Replies

ActionScript 2.0 :: Prevent User Enter 2 Same Answers

Jun 30, 2004

my question is to count how many correct answer the user will enter. if the user enter the same correct answer twice,the 2 same answers will not be count and the other 2 answer will be check whether correct or wrong. If the next 2 answer is correct markk will be add. Take note that i have 5 answers for this question but the user only has to enter 4 of the answers only.

View 1 Replies

ActionScript 2.0 :: Make The Correct Answers Appear After 5 Seconds?

Sep 19, 2005

I'm making 8 input boxes with 8 different answers. Users can key in their answers in the input boxes. The order of the 8 answers will not affect their results. However when users get the wrong answers, the wrong answers will be deleted. My question here is, when the wrong answers are deleted automatically, how do i make the correct answers to appear by themselves after 5 seconds? Below is my code that i put on a "check answer" button.

on(release)
{
answers = new Array(8);
answers[0] = "professional selling";[code].....

View 4 Replies

ActionScript 2.0 :: Create A Flash Questionnaire With A YES Or NO Answers Only?

Feb 22, 2007

how I can create a flash questionnaire with a YES or NO answers only, and then depending on the answers it direct to a certian page/ results.

If someone could point me to a website that provides some free source that would be great, or provide sample code?

View 1 Replies

ActionScript 2.0 :: Make New Array From Previous Answers?

Sep 22, 2007

I have sections with questions and answers which I can get. But, I need to save each section into new array and tally all the final scores.The screen will show the section score of current section that was just completed and the final score.I know the code has lots of problems - attached.For the total scores the dynamic text boxes var's are totalnumcorrect, totalnumIncorrect, totaluserScore.For the section score the dynamic text boxes var's are numcorrect, totalnumIncorrect, totaluserScore.

View 1 Replies

ActionScript 2.0 :: XML Quiz Array Answers With Different Values?

May 20, 2009

I have this project where I have a quiz template that I am using(as2) and I have everything exactly the way I want it except.that I need for the individual questions to hold a different value from one another.

for example

Question 1 = 10 points
Question 2 = 20 points

so on and so forth

right now I have it so they are an equal percentage of the total (ie 10 questions all are worth 10 points)and I need to change thatunfortunately I am still teaching myself AS but even more unfortunate for me is that I am learning AS3 and this template is AS2 I also have not done much in this vein I have been concentrating more on UI kind of stuff and less on the math side also it makes no difference to me if this is done in AS or XML this file will not be continually updated so it can be a one time deal

View 5 Replies

ActionScript 3.0 :: Drag And Drop - Checking Correct Answers

Feb 24, 2011

I am after finding out which drag and drops are correct, so I can score accordingly rather than just have a single score throughout. I need to know if the circle was dropped correctly or the square etc. I'd ideally like to have this interaction as a command on a button, but my AS3 is letting me down

var score:Number = 0;
var startX:Number;
var startY:Number;

[code]......

View 5 Replies

ActionScript 3.0 :: Checking Answers In A Math Random Question

Dec 13, 2010

i need codes for checking answers in a math random question... here is my code:

[CODE]...

>> i need codes if choiceA.text is selected, if choiceA.text is correct what is the code that it will add 1 point to score.text..

View 0 Replies

ActionScript 3.0 :: XML Quiz With Correct Answers - Arranging Within Array

May 18, 2009

I need to put together a really simple flash Quiz for this project I am working on
and I am having a hell of a time figuring out a few key aspects.

1. When working with an array and an xml file, how can I assign the "correct" answer if a user selected the wrong option. Ideally I would love it to say for example " sorry, Egyptians was the correct answer" but would settle for " sorry, 3 was the correct answer" if that is easier to arrange within an array.

2. How can I make it so it marks your first answer and only your first answer (as opposed to how it is now where if you guessed wrong you can keep on guessing until it is right and it will notice the right answer and ignore the wrong)?
Files attached here [URL]

View 7 Replies

ActionScript 3.0 :: Make 20 Questions And The All Of The Answers Appear In A Random Order?

Jun 8, 2009

i have a quiz with 20 questions and all of its answers in 2 different arrays. I want to know how i can make those 20 questions and the all of the answers appear in a random order when anyone takes the quiz.

View 6 Replies

ActionScript 2.0 :: Making Quiz Where User Type In Answers?

Dec 21, 2011

I am making a quiz what I want to do is: when the user types in the correct answer a tick appears and when they type in a wrong answer a cross appears I want this to happen on a single frame. How to make these type in boxes and how to make the above stuff happen.

View 1 Replies

ActionScript 2.0 :: Popup Window With A Question, And Four Answers With A Button Next To Each Answer?

Aug 17, 2009

I'm creating a sort of guessing game/trivia with AS 2.0. I have a popup window with a question, and four answers with a button next to each answer. The question and answers are dynamic text that are set by clicking on a "question" button.I was thinking I could do was click an answer button, which sets "current answer"... compare that with "correct answer" and do something? If it doesn't match, set the dynamic text to "wrong answer". If it's correct, then gotoAndStop(something)... I can get the answer buttons to trace their values(current answer) as I click on them, but when I try and goto () or do something based on these values (true) it seems just do whatever is in the if statement... not based on the answer being correct?Hmmm... like if I say: if (This is true)Not sure if I'm explaining this properly. But basically I have a popup window with a question. I have four answers, with buttons to select choice. I want to compare the choice/buttons pressed with a variable "correct answer" and then do something.

View 4 Replies

ActionScript 3.0 :: Setting XML Based Exam To Where There Are Two Correct Answers In A Question

Apr 9, 2009

I have an exam which pulls in questions from an XML file and to indicate what the correct answer is you would indicate in the XML as such:

[Code]...

There is one question, that is structured so there are two right answers, but when I add correct="true" to both answers I want as right only one is calculated correctly in the scoring. I thinking I need to make an adjustment in the code that pulls in the XML, but not sure where. Here is the AS code.

[Code]...

View 11 Replies







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