package{ import flash.display.Sprite; public class Main extends Sprite{ public function Main(){ StringUtils.contains("me@moock.org", "@"); } }}internal class StringUtils { public static function contains (string, character) { for (var i:int = 0; i <= string.length; i++) { if (string.charAt(i) == character) { return true; } } return false; }}
Name (required)
email (will not be published) (required)
Website