ActionScript 3.0 :: Setup A Multiple Choice Radio Button?

Jul 21, 2010

I am trying to setup a multiple choice radio button question quiz, but I'm having issues with some of the AS and was hoping some of you could assist me. I'm fairly new to ActionScript, but I'm trying to pick up quickly. The code is listed below. The lines giving errors have been increased in size.

[Code]...

View 9 Replies


Similar Posts:


Professional :: Go To A Frame Based On Radio Button Choice?

Apr 24, 2011

I have created a movieclip that is simply asking a question and the user chooses from a list of Radio buttons.I have set this up and it works fine, but I cannot figure out how to set up a "Next" button or a "Submit" button that, depending on the radio button choice made, the user goes to a specific frame or label.I bought the Adobe Flash CS5 bible, but there seems to be little information on controlling Radio buttons, only how to set them up to test.

View 1 Replies

ActionScript 1/2 :: Survey With Several Multipule Choice Questions Using Radio Buttons?

Nov 10, 2009

I have created a survey with several multipule choice questions using radio buttons. I want the last page of the survey to display results to the user kind of like a Cosmo quiz.like "50% A." "25% B." "25% C." "0% D." I can't find any info on how to do this with Actionscript.

View 1 Replies

As3 :: Deselect All Radio Button In Radio ButtonGroup On Button Click In Flash?

May 11, 2011

how to deselect all Radio Button in Radio Button Group on button click in flash as3?

View 1 Replies

Actionscript 3 :: Radio Button And Radio Button Grooup On Adober Air For Android?

Aug 3, 2011

I'm developing an Adobe Air application for Android using ActionScript 3.0 (I'm not using Flex).I'm trying to use radio buttons and a radio button group, but they aren't available on ActionScript mobile.I'm using Flash Builder 4.5.1 Standard and when I want to import fl.controls it complains saying that it isn't available.Is there any other control that I can use instead of radio buttons?

View 1 Replies

Flex :: Dynamic Radio Button - Get The Value Of Selected Radio Button

Dec 31, 2010

I am creating dynamic radion button like this

for(var i:Number=0;i
function radiobuttonclickhandler(event:MouseEvent):void
{
//here i need to get the selected radio button value.

[code]....

i need to get the value of labelname in which one is i am selected.how to do?

View 2 Replies

ActionScript 1/2 :: Radio Buttons And PHP - Make A Form Work With Input Fields But Not With Radio Button Data?

Jul 15, 2011

I am having a problem getting radio button data into php and I can not seem to find any answers. My project is simple I have a group of radio buttons, when one is selected and a submit button is pressed I want the data from the radio button to populate the subject line of an email and send it.I can make a form work with input fields but not with radio button data.

View 11 Replies

Radio Buttons - First Radio Button Never Turns Off When Clicking Others?

Feb 10, 2010

I've got a huge survey I've made with lots and lots of groups of radio buttons. There are maybe 60 questions with 6 buttons each. Of these, I have a couple of groups that are really misbehaving. What's happening is for one question, the first button in the group seems independent of the rest. That is, I can check the first radio button and it never turns off when clicking others in the same group.

All my code is right. I'm using the exact same code with all the other groups and only two groups aren't working right. Ha. That's the funny thing, though, because everything works fine IN Flash, but publishing to a web page, these two groups stop working right.FWIW, I've set the first instance of the radio button with a name like "G10" then all the buttons in the group have the group name "Q10".I've tried several ways of fixing this including deleting the whole group and adding them again, copying a working group and renaming the parts. Nothing. The one thing that has worked (and don't ask me why) but adding a new single radio button with a new instance and group name has fixed other problem groups but not these two.

View 7 Replies

IDE :: XML Flash Quiz (Multiple Choice)

Jan 31, 2007

I have made a quiz from mixing and matching from various tutorials of the internet, and now want to make the questions (multiple choice) and possibly the answers appear shuffled. The xml looks like this:
<quiz>
<title>Quiz</title>
<items>
<item>
<question>In which continent is the country Japan located?</question>
<answer correct="y">Asia</answer>
<answer>Europe</answer>
<answer>Africa</answer>
<answer>America</answer>
</item>
and here is what I've got so far with the actionscript!

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

ActionScript 3.0 :: Add Multiple Choice Answer To An Object?

Oct 18, 2009

I have declared an array which holds an object such as:

var myArr:Array = new Array({Question: 'Primary Colors Are?'});

How can I add the multiple choices to the object These are the choices:
 
red, green, blue
orange, red, white,
purple, yellow, green,
white, black, blue
 
I certainly can create the Answers as:

var myArr:Array = new Array({ Question: 'Primary Colors Are?', Answer1: 'red, green, blue',
, Answer2: 'orange, red, white, Answer3: 'purple, yellow, green', Answer4: 'white, black, blue' });

What I would like to do is to be able to store all the answer choices within an array called AnsArr. Can I declare a new array within the same obejct such as AnsArr and push these choices to it? 

View 3 Replies

ActionScript 3.0 :: Randomize Multiple Choice Buttons

Oct 26, 2009

I want to randomly scramble 4 multiple choice buttons (assigning each of them to one of four different positions). I'm trying to (a) randomly extract an element from an array, (b) delete that element from the array, and (c) go through the same process 3 more times till I have 4 random numbers assigned to 4 separate variables. I should be able to assign the buttons to different positions after that. 

Here's the first round of what could loosely be called code:

var firstElement:Number = 0;var distList:Array = ["0", "1", "2", "3"];var distNum0:Number = 0;var distNum1:Number = 0;var distNum2:Number = 0;var distNum3:Number = 0;

[Code].....

View 9 Replies

Professional :: Multiple Choice Quiz - How To Set Correct Answer

Jul 1, 2010

I'm using CS4 and trying to create a new quiz using one of the templates.I can see how to edit it to get only Multiple Choice but I'm stuck at one thing - I can't see where to specify which choice is the correct one.

View 4 Replies

ActionScript 3.0 :: Multiple Choice Question Not Displaying Answer Feedback?

Jun 9, 2011

I have a few multiple choice questions using ActionScript 3.0 that are not displaying the answer feedback when tested as a movie or published to a swf. The way the question is set up is that a learner clicks a radio button and then clicks a Check Answer button. A red X or green checkmark appears next to the selected answer choice.Incorrect/Correct feedback should then appear below the Check Answer button.Currently the Incorrect/Correct answer feedback is not appearing in the output box when published.
 
stop();
 var currBtn = "";
var currSelected:Number = 0;[code].......

View 1 Replies

Actionscript :: Add Score Tracker In An If / Else Statement For Multiple Choice Game?

Dec 12, 2010

Where and how I'd put the rest for the score tracker? I'm going to be making 3 of these multiple choice questions, so what would be the best way I lay that out and transition from one question to another?[code]...

View 1 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 2.0 :: Multiple Choice Questions Where The Question Are Being Fetched From A XML File

Jul 18, 2003

Can somebody give me an example of Multiple Choice Questions, where the question are being fetched from a XML file.

View 5 Replies

ActionScript 3.0 :: Multiple Choice Questions Quiz - Conditional Answer Checking

Jun 7, 2010

I'm working on a quiz-style piece right now and in short it's several pages of multi choice questions, each rewarding a certain point amount that is added up at the end and given specific results based on the point range scored. (i.e. 10-20 = good, 21-30 = great... etc)

For code I've stopped here:
if (answercheck == 40 - 52){
trace("Feedback: Range 40 - 52");
form.gotoAndStop(3);
form.AnswerTotal.Number = answercheck;
}

Answercheck is the var with the total points accumulated. Form is the mc with the feedback frames based on their point totals. AnswerTotal is the dynamic text box I'm trying to load the exact point total the user acquired into at the end.

View 2 Replies

Actionscript 2.0 :: Make Interactive Multiple-choice Quiz In Adobe Flash?

Aug 13, 2009

Adobe Flash also lets users make interactive Flash quiz. This tutorial will guide you how to create interactive drop-down multiple-choice quiz in Adobe Flash. This short tutorial is just a sample of the workflow you'll use while authoring in Adobe Flash CS4.

Step 1 - Create a new document

a. Choose File > New.

b. In the New Document dialog box, selcet Flash File (ActionScript 2.0) and then Click OK.

Step 2 - Document settings Right-click on the stage, selcet Document Properties, then the Document Properties dialog box appears. It displays the current Stage size setting as 550*400 pixels, and the Background color swatch is set to white. You can change the size and color of the Stage as you want.

Step 3 - Import image to the stage Choose File > Import > Import to Stage, and then select the image you want. You also could click Ctrl+R to import image.

Step 4 - Add the multiple choice question to the Stage

a. Select the Text tool (T).

b. In the Property inspector (Window > Properties), select Static Text type to specify the type of text field, and then input the question " What was Michael's first song to air on MTV? ". You also could set the font size, family and color of the text.

Step 5 - Add ComboBox component

a. Select Window > Components.

b. Double-click ComboBox in the Components panel.

c. Select the component on the Stage, and name the instance name as box in the properties panel.

Step 6 - Add answer options

a. Select Window > Component Inspector. On the Component Inspector, click data, then the Value dialog box appears.

b. Click + to add answer options, and then replace the defaultValue as answer options, here the options are: thriller, billie jean, bad and the way you make me feel. After that, click OK.
c. On the Component Inspector, click labels, then the Value dialog box appears. Please following the same steps above to add the values by adding the + button.

[code]...

If that's too complicate to you, you could choose some 3rd party quiz makers to make multiple choice quiz for you. Wondershare QuizCreator is such a good Flash quiz maker that help you create multiple Flash quiz with ease.

View 1 Replies

ActionScript 1/2 :: Use Button To Select Combobox Choice?

Jun 13, 2011

I have a combobox (called "style_cb") and as you might have guseed you can use it to select a "style".The site also has pictures and I'd like users to be able to click the pictures (which are buttons) and have the comboboxautomatically set to that option.So, if the options in the combo are "oranges, apples, pears, cherries" and the pictures are of the same fruits,then clicking on a picture of a fruit (let's say "cherriesBtn") would set the combo box to that option.

View 1 Replies

ActionScript 2.0 :: Create A Button For The User To Click And Then Have A Choice To Save Or Open File?

Jul 28, 2005

I'm developing Flash for a CD.I want to create a button for the user to click and then have a choice to save or open file (like PDF or Word file).

i have the following code:
Code:
myButton.onRelease = function()
{
getURL("abc.doc");
}

I can't see anything wrong with the above. I intend to use the code for a CD ROM.abc.doc will sit on the CD ROM. When I click on the button, it opens a browser window and tries to go to google.com.I had it working the other day.

View 2 Replies

Setup Multiple Passwords For One Result?

Mar 18, 2010

Below is my code and it is working. What I need to know is how to setup multiple passwords for one result. So look at the first four actions.. they go to the same page. I also want it to go if it is small caps verses large. How do I put all in one statement or do I have to do it this way. How do I put this in a text file if I have multiple passwords going to different pages. So as you see below if they put in password1,PASSWORD1,cash,CASH this all goes to page1.html If this put in password2,PASSWORD2 it goes to page2.html[code]...

View 1 Replies

ActionScript 3.0 :: Multiple Radio Buttons In For Loop?

May 15, 2009

I have this for loop that is basically pulling some info from an xml file and putting it in a list box. And for each item in the xml, it also adds 2 radio buttons.Everything is working properly except all the radio buttons have the same y location, and i want them to be spaced apart, not on top of each other.I have tried messing around with the y location (rb1.y+105, etc) but I'm not having any luck.

for (var i:uint=0; i<il.length(); i++) {
lb.addItem({data:il.description.text()[i],
label:il.title.text()[i]});

[code].....

View 2 Replies

ActionScript 2.0 :: Multiple Radio Buttons, Select One?

Nov 30, 2005

I have 5 radiobutton. They have all been grouped into the Groupname HR_value Each of the radio button have the names: hr1 , hr2 and so on.

If I write: _root.line1.vv1.hr1.selected= true I get the result i am looking for. But I know want this to be contingent upon the value of a variable called temp:

var temp
temp=1
_root.hr[temp].selected= true

.....this does unfortunately not work.

View 6 Replies

ActionScript 2.0 :: [Flash Pro 8] Multiple Else Ifs With Radio Buttons

May 17, 2011

Flash Professional 8 / AS 2.0 Yeah, I'm new to this. I've got a movie clip that's made up of 4 radio buttons and a regular button that will direct to 1 of 4 URLs on release, depending on which radio button is selected. This is the code applied to the regular button:

[Code]....

View 6 Replies

Flash :: Setup Multiple Camera Modes Flex?

Jul 19, 2011

I have a situation where I have to a have a few different sized "cameras" to send over a netstream depending on if its a desktop or mobile connected. Here's how I have it setup:

protected var nearCam:Camera;
protected var nearCamForMobile:Camera;
nearCam = Camera.getCamera();

[Code].....

If i do JUST the nearCamForMobile and send that to the mobile versaion it looks great on the phone and it's not stretched. but then obviously its 480x800 resolution looks stretched on the desktop version which is a 385x240 video box. So if i do just the nearCam it looks great on the desktop but then it looks stretched on the mobile....

So what im curious is why Cant I do both vars the way I showed above, display the nearCam, and then have the nearCamForMobile waiting to be sent when i need it to?

Can you only have one camera mode setup at a time? On the mobile version its setup so the user is holding the phone in potrait and its 840x480. The desktop site looks best when its like a widescreen video.

In the end I'm basically trying to figure out how to have 2 camera vars with 2 resolutions. Display 1 on the near side and attach the other to the netstream in a situation where the far is a mobile client. (I know how to figure out if the far is mobile, im not worried about that part)

I just need to be able to transmit a resolution/aspect ratio that looks good for a mobile client. which happens to be in a different aspect ratio than the desktop cleint.

View 2 Replies

ActionScript 3.0 :: Setup And Search For A XML Node With Multiple Entries?

Nov 19, 2010

I just did Kirupa's (excellent) XML/AS3 tutorial, and I still have one important question. How can I set up and search for an XML node with multiple entries?

for example:

Code:
<Movie>
<MovieTitle>Nine Months</MovieTitle>
<Actors>Hugh Grant, Julianne Moore, Tom Arnold</Actors>
<Movie>

That way, I can use a "for" loop or something (?) to search for actor Hugh Grant, and it'll return all of his (excellent) movies.

View 2 Replies

Media Server :: Setup Multiple Videos Within A Single Swf Using RTMP/FMIS?

Oct 21, 2010

I have a case where I'm displaying 3 videos simultaneously using FMIS 3.5. When one is selected it will play the other two will switch and show a videoloop.
 
What is the proper way to accomlishing this. I actually have 6 videos (3 loops and 3 videos). Do I need a netconnection/netstream/video object for all of them or can they share something. What is the best practice?

View 2 Replies

ActionScript 3.0 :: Setup A Preload System That Can Load Multiple XML Files And Manage An Overall Progress Bar

Feb 5, 2010

I'm trying to set up a preload system that can load multiple XML files and manage an overall progress bar but got immediately screwed by ProgressEvents not bubbling. My basic code set up is: Document Class

XMLManager extends EventDispatcher
XMLloader extends EventDispatcher

So document class up an array of xml paths and passes that to the XMLManager, that then iterates through the array and creates a new XMLloader for each path and stores those XMLloaders in another array. The XMLloader goes off and creates an URLLoader that loads the XML. It has listeners for Event.Complete, IOErrorEvent.IO_ERROR and ProgressEvent.PROGRESS which is fine.

I'm getting the correct progress data in my progress handler but what I want to do is broadcast that progress data straight back up to the Document Class which I had thought would be where dispatchEvent would come in by doing something like this in the XMLloader class:

[Code]....

View 2 Replies

Media Server :: Stuck In Vhost Setup Have Setup And Working Up To Connection?

Feb 22, 2011

I have started the vhost setup. I have cpanel on the server and I added the domain and it resolves to
the hosting account just fine pull up www.domain.com and goes to server.
 
I added the www.domain.com vhost. I pointed the application dir to /home/domain/public_html/applications/
 
I copied live over to applications dir. I setup user and pass for the virtual host login.

View 3 Replies







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