I want to create an interactive word search puzzle game to embed in an interactive PDF newsletter. I need it so you can highlight either the full word in the graph or highlight letter by letter so people know which words they have found. I would also like to give the same feature to the word list so they can be marked once found. Right now, the word search is an image, but I can easily remake it in word/excel/indesign, etc...
What is the best way to do this? I have Flash CS6
you can use the textfield link event to cause each letter to call a function that tracks the clicked letter. you would need to add logic to determine when a word should start and end and whether the clicked letters constituted a found word.
I'm thinking I can put an opaque white square over every letter in the image. Then, when the user finds a word, he clicks each letter and the square changes color and lessens the opacity so it stays a different color. How can I get the shape to change color when clicked?
each shape should be a movieclip. you can then use the transform.colorTransform property of the movieclip to change its color. for example:
var ct:ColorTransform=new ColorTransform();
but, i think you'll find your approach will be unworkable except in most basic situations. my suggestion is a much better approach.
Okay, i figured out another way that seems to be working. I created an opaque box, turned it into a motion tween that fades in quickly when clicked and then stops. When you click it again, the motion starts over making it disappear again. This will work great when placed over an image of the word search. However, when I duplicate my box (layer and actions) it interferes with my motion and it no longer stops, but just cycles through over and over.
Is there an easy way to duplicate this and then move it slightly over so eventually I'll have a grid full of them?