Book Image

haXe 2 Beginner's Guide

5 (1)
Book Image

haXe 2 Beginner's Guide

5 (1)

Overview of this book

Table of Contents (21 chapters)
haxe 2
Credits
Foreword
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

The main class


Here is our main class; it contains the global list of computers:

import computerList.models.Computer;

class ComputerList
{
   public static var computers = new List<Computer>();

   public static function main():Void
   {
      new computerList.controllers.ComputerListController();
   }
}

Now, you can test our application and see that it works!