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


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

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

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 :: 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 :: Flash Xml Quiz - Grab A Question / Answers Based On A Variable

Jul 26, 2006

I have an xml doc that has 6 categories that are colors and 4 questions that fall under each category. My question is I'm trying to create a quiz that will grab a question/answers based on a variable between 1-6 from the (6) categories in the xml doc. But the kicker is I want the user to have to choose from a different category if the 1-6 variables are different. And I need to walk down and grab a different question if they have been to blue before or maybe just a random question from the blue or green section.

[Code]...

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

Professional :: Make Drag And Drop Work On A Check Answers Button?

Feb 20, 2012

I ve got a drag and drop code working, but what I really want to do is have a check answers button that tells the user, you have none correct, or two correct or all wrong... I have one target area, and 3 correct answers (out of 7) so I would like to let the user put as many ansers on the target as they want and then check if they have any correct, also a reset code would be nice to put everything back where it started... I tried to break my code up but the events then went mad, Here is what i have so far, it works instantly and lets crrect answers stay and incorrect bounce back..
 
stop();
yes1.visible=false;
allcorrect.visible=false;
doit.text="drag over the words that mean Vision";

[Code].....

View 1 Replies

ActionScript 3.0 :: Make 1 Variable For A Textfield That Can Be Used In Multiple Function?

Mar 6, 2011

Some might know by know that I am working on a school project.But my knowledge of AS3 is not so big.My game is doing what it is supposed to do (for now).But the place where I declare (or something.It now looks like this:

Code:
public class game extends MovieClip
{

[code]......

View 2 Replies

ActionScript 2.0 :: Masking Multiple Attached Movieclip

May 31, 2011

i am using Flash MX2004(AS 2.0), i need to mask the attached movieclip, totally i attached 3 movieclip(all are same one), i need to display first movieclip by using mask. one more thing is moving that mask by press button, when i press the button the mask will show the second movie clip and so on.

View 1 Replies

ActionScript 2.0 :: Targeting With Multiple Attached Slideshows

Jun 15, 2007

My flash file creates multiple slideshow instances. These slideshow's are each controlled by some buttons and AS code that reside within the attached container clip. The code for buttons and slideshow nav is as follows (this resides on first frame of attached movie, not on _root):

[Code]...

The problem is that instead of just controlling the slideshow for which you are viewing, the keys control all other slideshows as well at the same time. Where the buttons, when you click them, control only the slideshow that they are contained in. I've tried writing an absolute path to the specific slideshow movie in question like:

[Code]...

View 3 Replies

ActionScript 3.0 :: Multiple MovieClips With Attached Button?

Mar 10, 2010

I am thying to create a movieClip class that has a button attached at the right corner, and then load multiple instances at the stage. My problem is, that although one MovieClip is loaded correctly, all the rest have no button attached! How is that possible? what am i doing wrong???Also i would like to note, that besides the button i am attaching one more movieclip with and image (from a loader)Let me show you what I mean:

package multi{
public class Multi extends MovieClip{
var rightButton:SimpleButton=new SimpleButton();

[code]....

View 2 Replies

ActionScript 2.0 :: How To Mask Multiple Attached MovieClip

May 31, 2011

I am using Flash MX2004(AS 2.0), I need to mask the attached movieclip, totally I attached 3 movieclip (all are same one), I need to display first movieclip by using mask. One more thing is moving that mask by press button, when I press the button the mask will show the second movie clip and so on.

This is my code: I have to mask box1_mc
function cardcolor() {
var color:Color = new Color(_root["box_mc1"+i].box1_mc);
var t:Number = 0x00FF00;
_root["box_mc1"+i].onPress = function():Void {
[Code] .....

View 2 Replies

ActionScript 2.0 :: Scroll MC With Multiple Attached Movies Inside

Jul 12, 2006

i am loading some thumbnails from an xml file into a movieclip using attachMovie() - each thumbnail loaded is in it's own MC inside the 'container' MC. everything works great but i need to be able to scroll the thumbnails b/c the number of thumbnails can change but the space they have to fit into cannot. make sense? if attach them to a scrollpane or a textarea instead of a MC it only shows the last thumnail loaded or iterated in the for loop.

Code:
articleNos = seasArts.firstChild.firstChild.childNodes.length;
var item_spacing = 55;
var item_count = 0;

[Code].....

View 4 Replies

ActionScript 2.0 :: Use LoadVars To Send POST Without Attached Variable Name?

Jan 12, 2009

Let's say I'd like to post some data to a server side script. If my data is

var data:String = "<data><tag1>hi</tag1></data>";

and I'd like to send it with LoadVars, I can do:

var lv:LoadVars = new LoadVars()
lv.data = data;
lv.sendAndLoad("http://thescript/", lv, "POST");

However, this results in the POST looking like this:

data=<data><tag1>hi</tag1></data>

if I want to send it without the variable name (no "data=", just the actual data), how is this possible? In AS3 I can just use the .data property of a URLRequest and it will work, however I can't find a way to do this in AS2.

View 1 Replies

ActionScript 1/2 :: Multiple Roll Over/out + AttachMC = Wrong Coordinates Of Attached Mc?

Jan 7, 2010

First the code:
tt = function (prev,nex,coox,alf) {  attachMovie (nex, nex, _root.getNextHighestDepth());  nex=eval(nex);  nex._x = coox;  nex._y =

[code]....

View 10 Replies

ActionScript 2.0 :: Flash 8 - Remove Attached MovieClips Contained In Variable

Jul 26, 2009

I need to remove some movieclips that are attached dynamically so they do not show up underneath the new movieclips that will be attached when a user clicks the next button. I've tried removeMovieClip with little success. I am able to remove one or two of them, but not all. I need all of the previously attached movies gone.

Here is the as2 for it.
PHP Code:
//Set functions
function show_movie() {
menu_mc._visible = true;
buttons_mc._visible = false;
teacherinfo_mc._visible = false;
} function displayInfo() {
[Code] .....

View 4 Replies

ActionScript 3.0 :: Pass A Variable From A Main Movie To An Attached Movieclip?

Mar 28, 2012

I have a Flash Professionl AS3 project I am working on.

I have this in a main movie:
 
but1b.addEventListener(MouseEvent.CLICK, fbut1b, false, 0, true);
function fbut1b(e:MouseEvent):void{
var mc:documentwindow_mc=new documentwindow_mc();
mc.x=450;

[Code].....

The issue I have is I need to do this 40 times.
 
Is there a way for me to use the same documentwindow_mc movie clip and pass a variable to change the "documents/print2flashdocument1a.swf", part?
 
How could I do this from the fbut1b function?

View 3 Replies

ActionScript 2.0 :: Flash MX 2004 - Loading Variable Attached To Instance

Jun 6, 2007

I have 25 instances of a movieclip "star", duplicated and assigned variables using the following code:

Code:
for(n = 0; n < 25; n++) {
star.duplicateMovieClip("star"+n, n+1000);
with(eval("star"+n)) {
startype = random(3);
}};

I now have it so that when I click on any instance of "star", I'm taken to another frame, and in that frame I'd like to be able to look up the variable "startype" for that particular instance only. How exactly can I do this?

View 3 Replies

ActionScript 2.0 :: Targeting Attached Movieclip - Variable It Doesn't Recognize Its Path

May 6, 2004

i have a problem adressing or targetting a attached mc when i target de mc directly it works fine but when i try it trough a variable it doesnt recognise its path anymore??? hopefully a part of the code is gonna explain the situation a litle better... this piece works fine:

[Code]...

View 3 Replies

ActionScript 2.0 :: Targeting Attached Movieclip - Variable Doesn't Recognise Its Path Anymore

May 6, 2004

i have a problem adressing or targetting a attached mc when i target de mc directly it works fine but when i try it trough a variable it doesnt recognise its path anymore???

[Code]...

View 3 Replies

ActionScript 1/2 :: Make Recognise When All The Pieces Are Attached Together?

Sep 10, 2009

I've been looking for a tutorial that describes how to make it so dragable objects can snap together when one is dropped in the right place next to another, but so far I haven't had much luck. Does anyone happen to know of such a tutorial, or can post something here about how to do it?
 
For example, how do I make something like this: [URL].. and how do I make it recognise when all the pieces are attached together?

View 11 Replies

ActionScript 3.0 :: Make TextField Rounded Or Attached To Circle?

Feb 12, 2009

how can i make TextField rounded or attached to circle?

View 0 Replies

ActionScript 2.0 :: Make A Preloader If Have Only Attached Movieclips From The Library

Apr 12, 2004

How do I make a preloader if I have only attached movieclips from the library, I know how to make a preloader but not for attached movieclips. The movieclips are attached from level 0 to 12, and I want one preloader to preload all levels at once, how do I do that? Tried with a for loop to loop through all levels but it didn't work.

View 1 Replies

ActionScript 2.0 :: Make A Preloader If I Have Only Attached Movieclips From The Library?

Apr 12, 2004

I have a little problem, How do I make a preloader if I have only attached movieclips from the library, I know how to make a preloader but not for attached movieclips. The movieclips are attached from level 0 to 12, and I want one preloader to preload all levels at once, how do I do that? , Tried with a for loop to loop through all levels but it didn

View 1 Replies







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