Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
1. INTRODUCTION
The Flashvalley dragndrop AS3.0 template is designed to simplify the creation of dragndrop activities
in Flash without having to write a lot of code. It only requires a basic understanding of Flash and of
Actionscript 3.
3. WORKFLOW
The DRAGNDROP template is composed of a the following components:
- the target component (yellow dot with a target graphic)
- the drag component (yellow dot with a lightning arrow type graphic)
- a setup element where you can set the generic parameters for the drag and drop
- the submit button
- the reset button
- the feedback window
In order to set up a DragNdrop activity you need to follow the steps below:
1. Open the file dragndrop3.fla. It is a dragndrop template wrapped into a movie clip. It should look like
on the picture below:
2. Double click on the component on the main stage or select EDIT or EDIT IN PLACE.
3. Add the movie clips that you are going to use as drags on the stage on place them on the
drag elements layer. Make sure to give those movie clips an instance name.
4. Drop a little drag component
on every movie clips you have added in step 3.1
5. Add the movie clips that you are going to use as targets on the targets elements
6. Drop a little target component
on every movie clips you have added in step 5. 1
7. Set up the parameters for each individual drag components by selecting the component and setting
its parameters in the parameters panel.
8. If necessary setup your custom functions on the code layer2
10. Set up the generic parameters on the setup component by selecting the component and setting its
parameters in the parameters panel.
1
2
SETUP PARAMETERS
The setup parameters below are associated with the main activity. Parameters can be separated in 2
categories, general parameters and event parameters.
EVENT PARAMETERS
ONINCOMPLETE
That parameter represents the name of the function that will be called when the submit button is
pressed and the activity is incomplete. That function needs to be defined on the CUSTOM FUNCTIONS
layer.
GENERAL PARAMETERS
DRAG PARAMETERS
As for the setup component, parameters for the drag components are also separated in 2 categories,
general parameters and event parameters.
EVENT PARAMETERS
GENERAL PARAMETERS
CORRECT TARGETS
This parameters represents an array containing the correct target(s) that will be associated with the
drag element.
CORRECT X POS
By default the correct answers are shown with the drags aligning themselves on their respective
correct targets at the end of the activity. In some cases you might want to control the positioning
yourself. This parameter let you control the x coordinate of the drag element on its correct target
element when the answers are shown
CORRECT Y POS
By default the correct answers are shown with the drags aligning themselves on their respective
correct targets at the end of the activity. In some cases you might want to control the positioning
yourself. This parameter let you control the y coordinate of the drag element on its correct target
element when the answers are shown
TARGET PARAMETERS
The target component only takes one parameter which is automatically set to the instance name of
the target it is dropped on. see picture below
generic events
IMPORTANT: If you decide to change the name of the functions make sure also to change their
reference in the component parameters panel.
In the picture 6.1 below you can see that the functions referenced above are implemented on the
time line.
pic 6.1
7. CUSTOM MESSAGES
Textual feedback appears on the screen based on user interactions and answers. those messages
can be edited in the class PARAMETERS.AS (see picture below)
You can entirely customize those messages in the language of your choice, you only need to make sure
to leave the strings with an underscore (_score and _tries) in your messages since they will be
replaced by the according variable in the code.
8. SEQUENCIAL DRAGNDROPS
You can add multiple dragndrop activities in sequence very easily.
WORKFLOW
1. Create all your dragndrops (see tips and tricks section for a quick way of doing that)
2. Add one dragndrop activity per frame
3. make sure to add a stop on the first frame.
You can have a look at dragndrop3_template.fla to and use that file as a template.
reset
It is easier to set your drag and target component to snap on their graphic. When it is
enabled they will automatically snap on the top left corner of the graphics they are
dropped on. You can enable snapping by going into VIEW > SNAPPING > SNAP TO OBJECTS
Make sure to keep a copy of the original template, just create a duplicate when you want
to create a new dragndrop activity.
If you are creating more than one dragndrop activity in the same FLA you can quickly create
a new dragndrop by doing the following: copy all the layers of your previous dragndrop (see
pic below). Create a new movie empty movie clip and paste all the layers in that new movie
clip. Set up you dragndrop as indicated in the WORKFLOW section at the beginning of the
manual
If you have any questions, comments or suggestions dont hesitate to drop me an email
me at contact@flashvalley.com