var str:String = "Flash Flex Java PHP Perl JavaScript ...."; if(str.indexOf("Flex") != -1 && str.indexOf("PHP") != -1){ trace("TRUE"); }