• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

Data-Driven Everything

There are still some missing details. Most important, the answers are dynamic but the questions are not. We correct this by making a question object q with a text variable. This is established in the code on the first frame of the base movie.

ActionScript

q= new Object();
q.text="Which of these names does<br><b>not</b> belong with the others?"
answer0.text="William the Conqueror";
answer1.text="William the Bastard";
answer2.text="William the Bald";
answer2.score=1;
answer3.text="William the Duke of Normandy";
stop ();


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint