added kerning support to record device
[swftools.git] / lib / as3 / ok / strings.as
1 package {
2     import flash.display.MovieClip
3     public class Main extends flash.display.MovieClip {
4
5         function get mystring(s="s\0s\xff") {
6             return s;
7         }
8
9         function Main() {
10             var email = "test@test.de";
11             if(email.length == 12) trace("ok 1/7");
12             if(email.charAt(4)!='@') trace("error");
13
14             var x;
15             var y:Boolean=false;
16             for(x=0;x<email.length;x++) {
17                 if(email.charAt(x)=='.') {
18                     y=true;
19                 }
20             }
21             if(y) trace("ok 2/7");
22
23             var zero1 = "test\0test";
24             if(zero1.charAt(4)!='\0') trace("error");
25             else trace("ok 3/7");
26
27             if(this.mystring.charAt(1)!='\0') trace("error");
28             else trace("ok 4/7");
29             if(this.mystring.charAt(3)!='\xff') trace("error");
30             else trace("ok 5/7");
31
32             if("\w" == "\\w")
33                 trace("ok 6/7");
34
35             var str:String = "ok 7/7";
36             trace(str.toString());
37
38             trace("[exit]");
39         }
40     }
41 }
42