1 // makeswf -v 7 -s 200x150 -r 1 -o mask-textfield.swf mask-textfield.as
3 rectangle
= function (mc
, color
, x
, y
, w
, h
)
8 mc
.lineTo
(x
+ w
, y
+ h
);
14 createTextField
("text", 0, 0, 0, 100, 100);
15 text
.background
= true;
16 text
.backgroundColor
= 0xFF00;
17 text
.text
= "Hello World";
19 createEmptyMovieClip
("a", 1);
20 rectangle
(a
, 0xFF, 50, 50, 100, 100);
22 text
.setMask
= a
.setMask
;