Static Methods
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; } }