2 import flash.display.MovieClip
3 public class Main extends flash.display.MovieClip {
5 function get mystring(s="s\0s\xff") {
10 var email = "test@test.de";
11 if(email.length == 12) trace("ok 1/7");
12 if(email.charAt(4)!='@') trace("error");
16 for(x=0;x<email.length;x++) {
17 if(email.charAt(x)=='.') {
21 if(y) trace("ok 2/7");
23 var zero1 = "test\0test";
24 if(zero1.charAt(4)!='\0') trace("error");
27 if(this.mystring.charAt(1)!='\0') trace("error");
29 if(this.mystring.charAt(3)!='\xff') trace("error");
35 var str:String = "ok 7/7";
36 trace(str.toString());