This appears to be a flash file, you cannot see a preview because flash player is no longer supoorted in browsers, but you can still download the file to study it's source code.
You can open/play the swf file with Flash Player exe
You can open/play the swf file with Flash Player exe
bullyjosh (7)
Multi-question quiz V2
*Update* Several requests have been made for help modifying this quiz, so I've commented the first line of the .fla with some basic instructions and re-uploaded. Please try there first before requesting help from me here - thanks all!This is an update for the file "Drag and Drop Quiz." I've obviously changed the look somewhat, and also changed some functionality to reflect requests. This... more >
3509 downloads, 37786 views
Comments
You need to login to post a comment.
can you make it random choice.? it is always on straight patern. pls pls pls
@ saimeloner, brunoalec, & vinodrsharody:
Sorry for not responding sooner - haven't been doing a lot of flash lately. As I indicated in the description above, this is not my original file - rather, I just modified it to fix some glitches and add some requested features.
@Saimeloner, if you're interested in how the script works, it's contained in the component "drag" but you should probably ask ganesh05, as he's the original author.
@ Brunoalec, your questions should be answered in the comments now included in frame one of the file, which I'll also paste below. Hope they help!
@ Vidodrsharody: from a bit of tinkering, if you remove all values from the "targets" parameter of the drag component except for the correct answer, that would accomplish what you want to do, with the consequence that there could no longer be any incorrect answers registered in the quiz (because users wouldn't be able to drop them on incorrect answers). Offhand I don't have a way to register that a question already has an answer on it, but there should be a way to do it if you dig a little. Sorry I couldn't be more help.
I'm going to paste the comments I put on frame one here, so those that have already downloaded the file can just look here to get some basic instructions. Hope this helps.
To add additional questions (or take them away) add or remove a keyframe to the root timeline, and if adding, duplicate the "Symbol 3_" into that keyframe, and rename it by adding a letter after the 3. (ie if the previous symbol was "Symbol 3e" name the next "Symbol 3f")
If you want to add or remove the choices within each question, you can just drill into the MC you want to change and delete or add pairs. A few things to keep in mind: if you change this, you must modify the actionscript on the submit button to register ".success" for each item you have in the question, otherwise it will not indicate a correct answer and allow you to advance.
Finally, if you want to modify the values of each question variable, you can do this with either your component inspector, or the parameters tab - both the drag (gray) and the drop (red) pieces are COMPONENTS.
Gray (drag) Modification:
In top value ("correct target") indicate the instance name of the correct answer to your question. In the second value, indicate all the possible answer (correct AND incorrect) so that the answer can be droppped on any of them. In the third value, list all the drag instance names. Finally, in the bottom value ("Display Label") type what you want the visible text on the MC to say.
Red (drop) Modification:
Very simple: change the "label" value to whatever you want the visible text on the MC to say - this would be your "answer".
Again, please try to modify yourself before requesting assistance - I can't make any guarantees of a timely reply. Thanks!
hello friend,
I checked it itz very nice. But one problem that I saw in this was the number selected can be dropped more than once in same answer column. Can u clear it by making as drag and drop only one number above the one answer?
Hi Friend, Do you have any instructions to configure it ? I Mean:
1 - Change the field value.
2 - Change the number of items.
Can you help with that ?
Thanks
Bruno Alecrim
Belem Brasil
@ ganesh: Yes, this is your quiz, with modification as listed above. There were many people requesting a multiple question version of your quiz, and I had some free time. Full disclosure folks: this file IS based on Ganesh's original "drag and drop quiz" listing. If you'd like to see the differences, read the description above.
Hey this is mine isn't it..........
Hi bullyjosh, i have looked at both examples, the original drag quiz and yours, im trying to understand how ir works rather than copy/paste it to use. I have some questions if you could help me:
where can i find the function that make the mcs to get back to their original places and how does the script work?
Is it posible that you could make a script whith comments on what does every function and line of the script do?
Im tryin to make an aplication for a touchscreen on which you could change a picture of an gallery by moving it (drag) to left of right, like the iphone. But the clasic drag does not match my needs, because i want the pictures to move at once and to stop every time.
Thats why its importante for me to know how this script is made, so i can figure out a method to make my iphone simulated drag gallery.
Thanks in advance
PS: sorry for my english
Sorry about that - this is a modification of an original quiz, allowing for multiple questions. The quiz drag elements (gray gradient) and answer elements (red gradient) are components, as you'll see if you take a look at your library. Therefore, to modify the text within the boxes you need to use the component inspector.
For example, if you double-click into the MC on the first frame (symbol 3) you can then select every component on that page. Selecting the top left component (MC1) and opening the component inspector reveals the linked info - the bottom field being "Display Label" and having a value of "1". Change this display label to whatever you want it to be.
Also important to note is that I've arranged these elements in a very straightforward fashion - top left always matches top right, and so on down the column. If you want to mix things up, just remember that the question and answer pieces always match up - MC1 with M1, for example, and MC2 with M2. (these being the instance names of the components) You can rearrange the components manually or change the "correcttarget" value in the component inspector. I hope this helps!
Hello, I am not a programmer so my question would be very strange.
I can not figure out how to replace the text inside the buttons. Know explain to me what should I do?
Thanks and congratulations for the great job you did.
I already found a solution. thank you....!
Is there a way to change (or to see) how the components used have been coded? I'm trying (with no success) to modify this quiz by having 16 drag components symbols for only 2 drops (asking the user to put the 16 drags upon two groups (2 "drops" instances). Every answer I'll get will be greatly appreciated...I really need help for this... thank you already!
This is awesome, How do you add more if you want to match 20 items??
vasiljko - My assumption is that you're using AS 3.0. A swf file is a standalone "projector" type of file that operates within the parameters you establish before publishing (in this case, using Actionscript 2.0). Make sure your settings in the project are AS 2.0, not 3.0. Other than that, I can't think of anything that would cause the file to act like that.
I have a problem... When I open this in Flash CS4 and publish a movie, it does not do anything on button RESET and ANSWER. It does not reset button position if you start to drag anwer and release it on blank space. When I download this and open swf file, it works perfect. But, as soon as I open it in Flash CS4, it's not working properly. Can you, please, help me?
jesse -
haven't experimented with it too much - the original .fla isn't mine, just modified the .fla to fit user requests that were going unanswered. A good way to do this would be to have the question in the center generated dynamically, and just have "A,B,C,D" type answers on the drag and drop elements. That should be easy enough to do. Now is a busy time, but I'll see what I can do as soon as I can!
(I'm new and learning actionScript.) Have you experimented with dynamically creating the objects and/or using XML to make it reusable? I'm very interestd in learning how to this.
I like this; Thanks for posting!
hehe. . .Yeah, I was lazy there, because mixing them up is by far the simplest part - just rearrange by dragging around, and then realign with the align palette.
Maybe it was trickyer not to have correct answers lined up with the items :)