[Flash] Tutorial #8 - Easy flash quiz
taken from: http://cgtutorials.com
1. Open new flash file and choose background
2. Write title
3. Lock layer and add new layer.
4. On new layer, write first question and answers. Every line separately.
5. Add one more layer
6. Select frames 2 to 5 for all layers and press F6. You should have this:
7. On “questions” layer in frames 2, 3 and 4 change question and answers.
8. Convert all answers (on all frames in layer questions) to buttons:
9. Write actionscript for every button:
For RIGHT answer write:
*FOR 1 st QUESTION DESTINATION IS “02” FOR 2 nd QUESTION “03” ECT.
10. Name every frame in action layer. 1 st frame is 01, 2 nd 02 ect
11. On last frame of second layer (questions layer) delete all content and write this:
*In number of questions line write how many questions you have
12. Near “Correct answers” line add new text “100” and set it to dynamic text. Add var: score
13. Do the same with the text near Percent line. Text is 1000, dynamic text and Var: percent:
14. Add stop script on every frame in action layer:
15. On first frame in action layer also add:
16. On last frame in action layer (frame where results are) add:
17. That’s it. Test your movie.