Mrs. Bealls Game Show - PowerPoint PPT Presentation

1 / 10
About This Presentation
Title:

Mrs. Bealls Game Show

Description:

Thinking of a program as a movie. Flash specific vernacular. Learn ActionScript for Flash ... questions.shuffle(); Thank you. Take Questions. Have a Merry Christmas ... – PowerPoint PPT presentation

Number of Views:65
Avg rating:3.0/5.0
Slides: 11
Provided by: Gatew167
Category:
Tags: bealls | game | mrs | show

less

Transcript and Presenter's Notes

Title: Mrs. Bealls Game Show


1
Mrs. Bealls Game Show
  • Final Project for Intro to Hypermedia
  • Taught by Dr. Jan Stelovsky Dana Behling

2
Goals
  • Learn Flash
  • Flashs User Interface
  • ActionScript
  • Provide an easy to use testing environment for
    teachers.
  • Provide students with a fun way to learn.

3
Objectives
  • Obtain Install Flash
  • Learn to use Flash
  • Using graphic design tools.
  • Thinking of a program as a movie.
  • Flash specific vernacular.
  • Learn ActionScript for Flash
  • Putting this together to make a working program.

4
Functionality
  • Multiple Choice Quiz
  • Single Multiplayer Modes
  • Randomized Ordering of
  • Groups
  • Questions
  • Multiple Choice Answers
  • Display associated image with question
  • Keep track of scores, players questions

5
User Interface Design
  • Play The Game

6
Software Design
  • Players
  • One array to keep track of players names
  • Another to keep track of each players score.
  • Questions
  • An array of questions
  • Each question consists of
  • Text (The text of the actual wording of the
    question.)
  • An array of possible answers
  • A URL to an image

7
Code Samples Answer Class
  • /
  • Question Class
  • Author Dana Behling
  • Version 1
  • Modified December 11, 2005
  • This creates a answers object. Where an answer
    has a value of
  • either true for right answers or false for wronge
    answers.
  • /
  • class Answer
  • private var _txtString
  • private var _truthBoolean
  • public function Question(p_txtString,
    p_truthBoolean)
  • this._txt p_txt
  • this._truth p_truth
  • public function get txt()String
  • return this._txt

8
Code Samples XML to ActionScript
  • Flash Provids Functions for Working with XMLs
  • // Get the XML
  • var my_xml new XML()
  • my_xml.ignoreWhite true
  • my_xml.onLoad function(success)
  • if (success)
  • // trace(this)
  • my_xml.load(fileName)

9
Code Samples Using XML Class
  • var questionsArray new Array()
  • for (var i 0 iltnumberOfQuestions i)
  • // Create new question
  • var qQuestion new Question()
  • // Set text part of question
  • q.txt arrayOfQuestionsi.firstChild
  • // Sets the image name and file extention
  • q.image arrayOfQuestionsi.childNodes1
  • // Create an array of Answers
  • var answersArray new Array()
  • for (var j 0 jltarrayOfQuestionsi.childNodes
    .length-2 j)
  • var aAnswer new Answer()
  • a.txt arrayOfQuestionsi.childNodesj2
  • a.truth arrayOfQuestionsi.childNodesj2.a
    ttributes.isCorrect
  • answersj a
  • answers.shuffle()
  • q.answers answers
  • questionsi q

10
Thank you
  • Take Questions
  • Have a Merry Christmas
Write a Comment
User Comments (0)
About PowerShow.com