gfxpoly: added additional save method
[swftools.git] / lib / as3 / ok / constructorfunc.as
1 package {
2     import flash.display.MovieClip;
3     
4     public class Main extends flash.display.MovieClip {
5         function Main() {
6             function FooBar(x,y) {
7                 this.x = x;
8                 this.y = y;
9                 this.ok4 = "ok 4/5";
10                 this.f1 = function() {
11                     trace(this.ok4);
12                 }
13             };
14             FooBar.prototype.z = "ok 3/5";
15             FooBar.prototype.f2 = function () {
16                 trace(this.ok5);
17             }
18                 
19             var foobar = new FooBar("ok 1/5", "ok 2/5");
20             foobar.ok5 = "ok 5/5";
21             trace(foobar.x);
22             trace(foobar.y);
23             trace(foobar.z);
24             foobar.f1();
25             foobar.f2();
26             
27             trace("[exit]");
28         }
29     }
30 }