Reading Project

By Jessica Pressman, Mark C Marino and Jeremy Douglass

Reading Project

Annotation -- Source Code -- display.

myStoryMovie.box3.text = myStoryMovie.storyArray[myStoryMovie.i];
// flash spam word
myStoryMovie.box2.text = myStoryMovie.spamArray[myStoryMovie.i%spamLimit];

The question arose, are these words chosen at random?  When Mark checked the code, the answer appeared to be no.  In fact, not only were the words always displayed in order, they were alternated throughout the text.

This function shows the text as advanced first in the spam the array and then in the story array in alternation. 

Contents of this annotation:

This page has paths: