how_to_make_ your_ quiz_interactive
TRANSCRIPT
Create Your Quiz• Using all the tools that you have experimented with create
your quizo Use motion and shape tweens to make it appealingo Make each question a new sceneo Create your “yeah” and “argh” scenes for right and wrong answers
• Once you have created all your scenes and you have all your questionso Name your scenes so they have meaningo Create a button that your viewer can click to select the correct question
• You can create one button then drag new buttons from the library
• Now we need to stop your multimedia so we can read the questions and give time to click the correct answer button o Add a stop() o Move your stop() to the end frame
• Now we need to click a button and it take you to the “yeah” or “argh” sceneo Make your button interactive
• For problems see the troubleshooting section
Name Your SceneOpen the Scene
Panel
This panel opens. To rename your scene double click the
current name
Creating Your Buttons
Make your button(s) using
a shape
Create a layer for your button.
Right click your shape and choose Convert to Symbol.
Then name your symbol and select a Button behaviourNext
Another Method For Buttons• To create an interactive button with different states
1) Select New Symbol… from the Insert menu
2) Give your Button a Name
3) Draw your button. You should use different layers for text and shapes
4) Add Keyframes for each state, changing the colour
for your shape and/or your text, for each state
Next
Using Your Button• The button
you have
just made
will now be
in the library
• You just
need to
drag the
button onto
your stage
to use.
• Don't forget
a new layer
first!
Add A Stop()• You now need to add some
code in ActionScript to stop your scene playing over and over, or even moving onto the next scene.
1) Add a new layer and call it Stop
2) Open your Actions panel
3) Click the plus icon and choose
stop
4) Or, choose Global Functions, Timeline Control then click stop Next
Moving Your Stop()• Your ActionScript will probably be at the start of your
scene, if it is, drag the icon to the last frameo You don’t want your scene stopping before it starts!
Catch the ActionScript icon
and drag to the last frame
Making Your Button Interactive
• Making your button interactive is simple and involves more ActionScript
1) Select your button
2) Click the plus and choose Global Functions, Media Clip Control and
click on
Next
Making Your Button Interactive
3) A drop-down choice will appear, choose release
4) Click between the curly brackets
5) Click the plus sign again and this time choose Global
Functions, Timeline Control, gotoAndPlay
Next
Making Your Button Interactive
• Now you need to type just a small bit of the code to
tell the button where it is to go and play…
6) Your code now looks like this
7) Click between the brackets and type…
“name of your scene”, 1
This is the name of your scene in “”
This is the frame number you would like your scene to start from
Troubleshooting• You click the correct answer but it doesn’t go to the
correct scene.o Have you written your scene name in “” e.g. gotoAndPlay(“question1”,1)?
o Try renaming your scene to lowercase and no spaces
• Your scene won’t playo Have you moved your stop () to the last frame?
• Flash won’t let you add your ActionScript, the code
is disabledo Have you converted your image/text to a button?