Hi people XD Im using this code in flash 8 but it’s not working. (It’s only part of the code but its repeated with some other stuff added but anyway, I think this is all you really need to see. It’s for a contact form)
on (press) {
initial_name = “0”;
initial_comment = “0”;
if (Number(length(name))>=1) {
initial_name = “100”;
colorRequired = new color (bg_name);
colorRequired.setRGB(0xF1F3F3);
} else {
colorRequired = new color (bg_name);
colorRequired.setRGB(0xFFECE7);
}
I get the error -
Warning Scene=Scene 1, layer=Fields, frame=1:Line 6: The identifier ‘color’ will not resolve to built-in object ‘Color’ at runtime.
colorRequired = new color (bg_name);
Total ActionScript Errors: 1 Reported Errors: 1
In flash 8… I couldn’t find any colorRequired function in the help bit… so I’m guessing this is probably from an older version of flash… Any suggestions?