Use a for loop to check whether a string contains the @ character
package{
import flash.display.Sprite;
publicclass Main extends Sprite{
public function Main(){
var address = "me@moock.org";
var isValidAddress = false;
for (var i = 0; i < address.length; i++) {
if (address.charAt(i) == "@") {
isValidAddress = true;
break;
}
}
}
}
}