Lists

Click here to download the sample file.

Edit the Score Script

on exitFrame
  go
to the frame
end

Create the Word

Type a word with a blank line before and after the word. Choose a typeface.

Select the word on the stage.

Bring up the Window->Inspectors->Property Inspector.

Go to the behavior tab   dir_behicon.jpg
         Hold down the
+,  select New Behavior
         Name it change
         Click the script button dir_scriptbut.jpg  in the Property Inspector
         Type the following script:

property clickcount

on beginsprite
  clickcount = 0
end

on
mouseDown
  fontlist = ["unisect-bold","arial","courier","rosewood regular"]
 
  clickcount = clickcount +
1
  if clickcount > 4 then
    clickcount = 1
  end if
 
  member(1).font = fontlist[clickcount]     --change the font using this list
  put fontlist[clickcount] into member(1)
 
end


See: http://www.cda.ucla.edu/faculty/jennifer/TT_class/fun/html/fun16_matrix.html  for more advanced lists and matricies.