Hi
I have a textarea (st1a) and a red rectangle above it (st1b). When the word 'England' is entered into st1a, I want st1b to change to Green. When anything else is entered into st1a, then st1b should be red
I've tried this :
on(change){
if (st1a.text == "England") {
_root.st1b.setRGB(0x66CC33);
} else {
_root.st1b.setRGB(0xFF0000);
}
}
However, othing happens when I enter England into the textarea. The rectangle just remains red. I am very new to actionscript and flash, so I wouldn't be suprised if I've got it totally wrong
Any help would be much appreciated
I have a textarea (st1a) and a red rectangle above it (st1b). When the word 'England' is entered into st1a, I want st1b to change to Green. When anything else is entered into st1a, then st1b should be red
I've tried this :
on(change){
if (st1a.text == "England") {
_root.st1b.setRGB(0x66CC33);
} else {
_root.st1b.setRGB(0xFF0000);
}
}
However, othing happens when I enter England into the textarea. The rectangle just remains red. I am very new to actionscript and flash, so I wouldn't be suprised if I've got it totally wrong
Any help would be much appreciated