~ubuntu-branches/ubuntu/lucid/mtasc/lucid

« back to all changes in this revision

Viewing changes to ocaml/mtasc/doc/HelloWorld.as

  • Committer: Bazaar Package Importer
  • Author(s): Paul Wise
  • Date: 2007-05-23 19:17:16 UTC
  • mto: (2.1.1 gutsy)
  • mto: This revision was merged to the branch mainline in revision 3.
  • Revision ID: james.westby@ubuntu.com-20070523191716-lpvac307yorewp3g
Tags: upstream-1.13
ImportĀ upstreamĀ versionĀ 1.13

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
// Run: mtasc -swf helloworld.swf -main -header 640:480:20 HelloWorld.as
 
2
// Your basic Hello World app that every language needs
 
3
class HelloWorld {
 
4
 
 
5
        static var app : HelloWorld;
 
6
 
 
7
        function HelloWorld() {
 
8
                _root.createTextField("tf",0,0,0,640,480);
 
9
                _root.tf.text = "Hello world !";
 
10
        }
 
11
 
 
12
        static function main(mc) {
 
13
                app = new HelloWorld();
 
14
        }
 
15
}