ActionScript 2.0 :: [FMX] Multi Drag Can't Find Answer?

Jun 13, 2003

I've tried searching for the answer to this all over kirupa, but couldn't find anything. Here's the rundown:

[Code]...

View 2 Replies


Similar Posts:


ActionScript 3.0 :: Drag And Drop - How To Get Correct Answer On Stage

Feb 6, 2011

Basically imagine a stage with 1 question on it and 3 possible answers. All the answers are draggable and the correct answer must be dragged to the answer area. If the wrong answer is dragged it bounces back... The problem (which in my opinion seems quite basic) is when the correct answer is dragged onto the answer area, I can't get it to do much. I can run a trace and that works so I know its setup correctly but I think i'm coding it wrong within the IF statement. My entire code for the correct answer is kept in a seperate as file and I have listed it below:

package code {
import flash.display.MovieClip;
import flash.events.MouseEvent;
import flash.geom.Point;
public class Three extends MovieClip {
[Code] .....

The bit where it says " if ( dropTarget.parent.name == "answer" )" I'm presuming is where the code has to go. I want to either goto a frame label within the main timeline which says "Congrats" kinda thing OR the other way I can think is adding a movie clip to the stage with the congrats msg in.

View 1 Replies

ActionScript 2.0 :: Keep Drag And Dropping All Over The Target To Finally Get The Answer To Display

May 2, 2005

my drag and drop target works...sort of. Here's the problem, when the target is dropped it should tell the user if it is correct. It does but you have ot keep drag and dropping all over the target to finally get the answer to display. I have checked the registation marks and stage alignment...nothing seems to work. it should be if you drop it over the hit (instance name) it should immediately display the answer of "correct" Here is the code for the drop target:

[Code]...

View 1 Replies

ActionScript 2.0 :: Find Item In Multi-Array?

Apr 19, 2011

I'm trying to determine if an object exists in a multidimensional array.I found this code:

Code:
contains = function (input, arrayData) {
for (i=0; i < arrayData.length; i++) {

[code].....

View 3 Replies

ActionScript 3.0 :: Get An Answer From Input Text Field And Compare It To The Correct Answer?

Jul 8, 2010

I am trying to get an answer from Input text Field and compare it to the correct answer.here is how my code look like:

//I have a confirm button here
confirm_button.addEventListener(MouseEvent.CLICK, ConfirmFunction);
//I have a correct answer as a String here
var correctans:String = "July";

[code]....

This will check if correct answer contains words in the answer from input text field.But that will result on if I key in "July is great", it will still link to the correct answer frame instead of wrong answer frame.I want the answer to be exact same as the correct answer.

View 4 Replies

ActionScript 2.0 :: Button Is Pushed A Answer Is Displayed And On The Answer Frame?

Aug 27, 2010

I have a grid with 12 movieclip buttons. When a button is pushed a answer is displayed and on the answer frame, there's a button "click for more information".

That button points to information in a frame within the mc button. However, when I test it all the buttons on the root timeline appear on top of this information, covering it up.

Also, when you move the mouse while in this "further info" area, it disappears

View 1 Replies

Flex :: Change The Imagealpha For A Multi-select Drag And Drop Operation?

Dec 4, 2010

Here's the code that allows multi-select list to drag into a tree area. What I would like to do is to change the alpha of the image that gets dragged around. I've done some research but most of the discussions out there talk about how to change the dragged image. What I want to do is simply change the default alpha of the dragged item from 0.5 to say 0.2. Also this solution should be able to handle multiple select dragging.

Below is a simple example of drag and drop that I would like to modify to allow for the alpha change of the draged item.

<?xml version="1.0" encoding="utf-8"?>
<s:layout>
<s:VerticalLayout/>
</s:layout>

[Code].....

View 1 Replies

ActionScript 2.0 :: Find Center Of The Visible Area After Drag?

Jul 19, 2009

I have a AS2 movie clip that has a drag navigation. The movie clip is bigger then the visible area. How can I find the center xy of the current visible area when I stop the drag?

View 2 Replies

Media Server :: Find The Find PStreamName In Access Plug-in?

May 18, 2010

I must rejected all users outside Denmark from our live streaming (c-ip) and this is done in an access plug-insBut now I need to open up one of the streams, but I can't get the streaming name in the access-plug-ins only in the Auth-plug-ins.I cant use x-page-url or s-uri I need pStreamName. in access-plug-in like thissetStringField(m_pAev, IFmsAuthEvent::F_STREAM_NAME, pStreamName);but I cant get it inside  the access-plug-in

View 1 Replies

Answer To Remain On The Screen?

Sep 2, 2010

I have 12 movieclip buttons which each contain a question. When you click on one, the answer appears. I need the answer to remain on the screen. On that same frame, there's a button for "more information".When that is selected, it goes to another frame within the mc, and more info appears. However, it is covered up by the other 11 buttons from the main screen

View 2 Replies

ActionScript 3.0 :: How To Best Keep Track Of Answer Count

Sep 17, 2010

I have a quiz created in Flex using Spark forms, with a series of questions which are a group of radio buttons. When the user clicks "next", I get the value of the selected radio button in the group. What I need to do is keep track of these values; at the end of the quiz I will need to see which value was chosen the most. So if the user mostly picked the questions with a "3" value, I can display a summary based on that, e.g. "You mostly chose type 3 answers". I was thinking about having an int variable for every choice (there are 5), and incrementing the appropriate variable when the user clicks "next", as in

private function enterScore(i:int):void {
switch (i){
case 1:
num1++;
break;

But this seems unwieldy. I also will need to compare the 5 tallies for which one was chosen the most...

View 1 Replies

ActionScript 3.0 :: Need To Play Animation On Right Answer

Sep 9, 2009

I have 2 swf animations (one of a happy bear and one of a sad bear), I want to load them into actionscript. When the player gets it wrong I want the sad animation to play and happy one to play when the player gets it right.

View 2 Replies

ActionScript 2.0 :: If Statement To Check Answer?

Jun 29, 2004

The user needs to submit a dollar amount answer. They could write is several ways. I'm trying to accomodate it with the code below. It always evaluates it as the wrong answer (the else).

[Code].....

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 1/2 :: Data Entered And Calculated To Answer?

Jun 27, 2010

options as I wish to learn how one would create a tool that would provide allow the end user to enter numbers, in some predetermined/static fields. The tool would then use this data and provide the answer.Simply put, i'm looking to create a basic ROI calculator (Return on Investment).

View 3 Replies

ActionScript 1/2 :: Click The Right Answer(s) Using Check Boxes?

Jul 6, 2010

As part of a flash 8 project, I have created a Quiz using Check Boxes.In Question 1, I have got 8 Ckeckboxes in 2 columns of which check boxes:- B, D. E, and H are correct answers.The rest are the wrong answers. However user may tick all the right ones and also tick couple of wrong answers (eg user mayWhat I want is when user selects only the correct boxes (B, D, E, H) answer equals 1 point (right answer).A, C, E, G equals 0 point (wrong).B, D, E, H and combination of other checkboxes equals 0 point (wrong answer).A, C, F, G and combination of other checkboxes equals 0 point (wrong answer).A, B, C, D, E, F, G, H equals 0 point (wrong answer).I need a method using actionscript 2.0 to work this out. I think I've worked out the first part where user selects only the correct boxes (B, D, E, H) equals 1 point, and if user only selects the wrong boxes (A, C, F, G) equals 0 point. But I can't work out other parts. I tried using logical || (OR), but does not seem to work properly.

View 3 Replies

ActionScript 3.0 :: Using Buttons To Select The Correct Answer?

Dec 22, 2010

I have a simple game I am attempting to write. random movie clip (from the library) is displayed on the stage from an array of mc's  Here's the question. What my game will do, is allow the user to select one of two buttons (red and green) based on the movieclip that is displayed. One will yield a correct result and the other will yield an incorrect result.HOWEVER, depending on the movie clip displayed, sometimes the red button will yield the correct result and sometimes the green button will yield the correct result. I am having trouble figuring out the best logic in writing code to accomplish this.

View 2 Replies

ActionScript 3.0 :: Jigsaw Have Answer Equal A Movieclip?

Mar 7, 2012

basically i have this jigsaw code, and i need to modify it so that the only jigsaw piece that will be accepted is the answer to a question which is randomised as follows,

[Code]...

View 6 Replies

ActionScript 2.0 :: Reset Check Answer Button?

Oct 22, 2010

Frame one has three draggable movie clips and three finishing locations (one clip per location), it also has one a button (Check answer)A user can drag any of the three clips to any location and then click Check Answer.Check answer then runs an action that if the clips are in the right places, it goes to frame 2, if they are not, it goes to frame three where a Reset button is provided. In either case, a message is displayed.

On frame 3, I want people to be able to change the positions of the clips and select Check answer and have it check the answer again. Currently it's letting me move the clips, but even when I put them in the right places, it still tells me it's wrong.[code]...

View 1 Replies

ActionScript 2.0 :: When I Press On Answer Button, The Result Displayed Is NuN?

Aug 7, 2009

i am creating a maths quiz...There are 2 input text fields..The instance names of 2 input text fields are inputField and inputField02. There is one dynamic text field to display the result....The instance name of dynamic text field is resultField.

Code:
var a: Number;
var b: Number;[code]....

however when i press on answer button, the result displayed is NaN.What's wrong with the code?

View 1 Replies

ActionScript 2.0 :: Quiz Game Where Answer Revealed After 3 Attempts

Apr 11, 2010

Basically I want to create 6 questions with input boxes next to them for the user to inset their answer. I want them to try three times and then if not correct the answer is displayed for them. In the box with a little description next to it.

Question: How many sides as a square
(answer in the box) = 4
(desc to side of box says) = A square has four equal sides.

View 3 Replies

ActionScript 2.0 :: AS 2 Fixed Width Font Or Other Answer That Will Work?

Nov 25, 2010

I am seeking the answer form the brain trust at FK. I am making a quick flash movie.. which has an 'lcd screen' display.. that needs to have numbers/timer being displayed on it..

I have found a few of these LCD/CALCULATOR font types.. and thought I had one that would work.. but it does not. I need a fixed width font..(in hopes) so that when I animate it..

00:00
00:01
00:02
00:03
00:04...etc

will keeps it positioning! and NOT change 'alingment' when (say) a 0 becomes a 1. this shifts the whole textField. my questions are:

1.) is there a fixed width type font or other trick? (using the spacing or A/V parameter) to keep the characters in their positions? or will I need to break everything up and use individual text fields..and parse/split the numbers from the string?

View 4 Replies

ActionScript 1/2 :: Maht.tan In Flash Gives The Answer In Radians Or Degree?

Oct 9, 2009

I am not sure 1/maht.tan in flash gives the answer in radians or degree.
 
anyway, how cna i change? I mean, whats the code? (script)
 
1 last thing,
I wanna count cot(north / south)
does: 1/math.tan(north , south) does it?
I mean, what comma stands for? - + * / ??

View 1 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 1/2 :: Input Text Will Not Allow To Access The Correct Answer

Mar 8, 2012

i am trying to create a simple quiz in school. I have one test question which requires the answer to be -1.I have created Input text and assigned the variable answer for this question.I have a button with the following AS2 script: 

on (press, keyPress "<Enter>") {
if(answer eq "-1" or answer eq "minus 1"
or answer eq "Minus 1" or answer eq "Minus one" or answer eq "minus one")

[Code]....
 
Firstly whatever you type the numerical keys are immobilised on the keyboard when the .SWF file is builtSecondly I cannot enter the correct answer!! If I type in Minus 1 etc it goes to frame 3.I have tried flags rather than frame numbers - same problem.i have tried remaking the quiz as a  separate file.using CS4 and CS5 flash - windows 7 PC.

View 6 Replies

HTML :: Ask For Input Text And Send To Link According To Answer

Feb 26, 2012

I would like to make an input text field in flash as2. What I need is when the user write down an answer it will direct him to an html page I created. There are 3 answers and 3 pages, so they will write down one of the answer and when they will click "enter" they will be redirected. I understand you can do it with "if" statement but I don't know how!

View 1 Replies

ActionScript 2.0 :: TextField - How To Capture User Answer On Frame 3

Jan 24, 2009

I created text field. Instance name of the text field is answer_txt01. When I enter the right answer "red", it should go to frame 2. However regardless of right or wrong answer, it goes to frame 3. How do I capture the user's answer on frame 3?

answer = answer_txt01.text;
answer_btn.onRelease = function() {
if (answer == "red") {
gotoAndPlay(2);
} else {
gotoAndPlay(3);
}}

View 9 Replies

ActionScript 2.0 :: Text Input Boxes - Checking Right Answer?

Jan 26, 2009

I have four text input boxes, and I need to be able to script it so that when the "Done" button is pushed each of the boxes are checked for the right input. I've tried two different methods, neither of which work or the answer is automatically correct.

View 3 Replies

ActionScript 3.0 :: Contact Form Stays On Sending And No Answer Comes From Php

Aug 3, 2010

I have a contact form but it stays on sending and no answer comes from php I think. Is this a coding problem or a server side problem.

[Code].....

View 1 Replies

ActionScript 2.0 :: Encrypt Text To Hide Answer Strings

Feb 8, 2012

I have a quiz in Flash. It's working fine integrating with a LMS. We have concerns that some people who can access the reporting tool would be able to find the answers by looking at the other people's answers. If I can encrypt the answer strings into something else and output the encrypted answers to server. I searched and found a very nice tool at [URL] but it's rather complex to implement with many AS and different types of files inside. Is there a simpler one that all I need is a few functions I can include in my Flash file to encrypt and decrypt? It's internal and target audience is not programmers so it does not need to be complex. Just some scrambled texts should be enough.

View 5 Replies







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