Browse Source

fixed Tuto

Nicolas Cannasse 20 years ago
parent
commit
34bb273431
1 changed files with 2 additions and 2 deletions
  1. 2 2
      doc/tutos.html

+ 2 - 2
doc/tutos.html

@@ -50,8 +50,8 @@
 <k>class</k> Hello {
     <k>function new</k>() {
     	<g>// creates a textfield named 'tf'</g>
-        Boot.current.createTextField(<t>"tf"</t>,0,0,0,Stage.width,Stage.height);
-        var tf : TextField = Boot.current.tf;
+        Stage.current.createTextField(<t>"tf"</t>,0,0,0,Stage.width,Stage.height);
+        var tf : TextField = Stage.current.tf;
         tf.text = <t>"hello world !"</t>;
     }
     <k>static var</k> init : Hello = <k>new</k> Hello();