HaXe 2 Beginner's Guide.
Develop exciting applications with this multi-platform programming language.
Clasificación: | Libro Electrónico |
---|---|
Autor principal: | |
Formato: | Electrónico eBook |
Idioma: | Inglés |
Publicado: |
Birmingham :
Packt Pub.,
2011.
|
Temas: | |
Acceso en línea: | Texto completo |
Tabla de Contenidos:
- HaXe 2; haxe 2; Credits; Foreword; About the Author; About the Reviewers; www.PacktPub.com; Support files, eBooks, discount offers and more; Why subscribe?; Free access for Packt account holders; Preface; Here is haXe; Where and for what is haXe used?; Where is haXe used?; What is haXe used for?; One language to rule them all; Object-oriented programming; haXe versions; haXe and the new models of web applications; haXe as an universal language; Getting help; Reading some documentation; Asking questions; The haXe forum; The haXe mailing list; Some advice; Reading some blogs; Nicolas Cannasse.
- WeblobGameHaXe; A Bug's Life; Blog.haxe.org; Helping the community; The mailing list and the forum; The wiki; Write on your blog or website; Writing libraries or tools; Talking about haXe; What this book covers; What you need for this book; Who this book is for; Conventions; Time for action-heading; What just happened?; Pop quiz-heading; Have a go hero-heading; Reader feedback; Customer support; Downloading the example code for this book; Errata; Piracy; Questions; 1. Getting to know haXe; Installing haXe; Two ways to install: The installer and sources compilation; Installing on Windows.
- Installing on MacOSXInstalling on Linux; Installing nightly builds; Verifying your installation; Choosing an editor; FlashDevelop 3; The TextMate bundle; VIM; Writing your first program; Time for action-Writing a Hello World; What just happened?; A program with some interaction; Time for action-Interacting with the user; What just happened?; Pop quiz-basic knowledge; Summary; 2. Basic Syntax and Branching; Modules, packages, and classes; Packages; Modules; Classes; Accessing a class; Constants and its types; Booleans; Integers; Floats; Base 10; Scientific notation; Strings.
- Regular expressionsThe null value; Flash9 and above; Binary and unary operators; Binary operators; Assigning values; Comparison operators; Arithmetic operators; Boolean operators; Bitwise operators; Unary operators; Blocks; Variable declaration and scope; Declaring a variable; At class level; Time for action-Declaring some fields; What just happened?; In a block of instructions; Field access and function calls; Constructing class instance; Conditional branching; If; Switch; Loops; While; For; Break and continue; Time for action-Using the break keyword; What just happened?
- Time for action-Using the continue keywordWhat just happened?; Return; Exception handling; Anonymous objects; Local functions; Managing a fridge; Time for action-Managing a fridge; What just happened?; Have a go hero-Throw Exceptions to prevent crashes; Summary; 3. Being Cross-platform with haXe; What is cross-platform in the library; Object storage; The Std class; The haxe package; The haxe.remoting package; The haxe.rtti package; The haxe. Http class; Regular expressions and XML handling; Regular expressions; XML handling; Input and output; The DOM interface; The Flash interface.