It's telling me that one is void but I don't understand. BTW I am only trying this out because somebody has written it in a game I am using. I am a newbie so would always write out the long.handed conditional.
var strAnimal:String = "animal";
strAnimal = "animal" ? trace("animal"): trace("not an animal");
Change that second line to:
strAnimal == "animal" ? trace("animal"): trace("not an animal");
The first part is supposed to be a conditional test (==), not an assignment (=)
Brilliant - you guys know everything. It also makes it clearer about = signs.