I am creating a word search game and am using this conditional statement to determine if the letter has been selected, then add or subtract a value dependent on that. I wrote the following function that works, but seems a bit lengthy - any ideas on how to streamline this function?
thanks!
if(e.currentTarget.name=="a1" && MovieClip(e.currentTarget.bak).currentFrameLabel =="on")
{
wordCount=-1.1;
}
if(e.currentTarget.name=="a1" && MovieClip(e.currentTarget.bak).currentFrameLabel =="off")
{
wordCount=1.1;
}