package{
import flash.display.Sprite;
publicclass Main extends Sprite{
public function Main(){
var address = "me@moock.org";
var isValidAddress = false;
var i = 0;
while (i < address.length) {
if (address.charAt(i) == "@") {
isValidAddress = true;
}
i++;
}
}
}
}