1 // makeswf -v 7 -r 1 -o textformat-init-7.swf textformat-init.as
3 function check_and_reset
() {
4 _global
.TextFormat.prototype
.hasOwnProperty
= ASnative
(101, 5);
5 trace
(_global
.TextFormat.prototype
.hasOwnProperty
("size"));
6 _global
.TextFormat.prototype
= new Object ();
9 trace
("Check when TextFormat's native properties are initialized");
11 // FIXME: Not tested yet: The properties should only be created if the
12 // prototype Object has not been initialized by any object's constructor with
13 // native properties (TextField, TextFormat, XML, XMLNode at least)
16 var tmp
= new TextFormat ();
19 var tmp
= new TextField.StyleSheet ();
20 tmp
.parse
(".a { text-size: 4; }");
23 this.createTextField
("t", 0, 0, 0, 100, 100);
26 t
.getNewTextFormat
();
28 t
.setNewTextFormat
(new Object ());
32 t
.getTextFormat
(20, 21);
34 t
.getTextFormat
(1, 2);
36 t
.setTextFormat
(new Object ());
43 loadMovie
("FSCommand:quit", "");