Packtpub.haXe.2.Beginners.Guide.Jul.2011.pdf

(2985 KB) Pobierz
679992718 UNPDF
679992718.003.png
haXe 2
Beginner's Guide
Develop exciing applicaions with this muli-plaform
programming language
Benjamin Dasnois
BIRMINGHAM - MUMBAI
679992718.004.png 679992718.005.png 679992718.006.png
haxe 2
Beginner's Guide
Copyright © 2011 Packt Publishing
All rights reserved. No part of this book may be reproduced, stored in a retrieval system,
or transmited in any form or by any means, without the prior writen permission of the
publisher, except in the case of brief quotaions embedded in criical aricles or reviews.
Every efort has been made in the preparaion of this book to ensure the accuracy of the
informaion presented. However, the informaion contained in this book is sold without
warranty, either express or implied. Neither the author, nor Packt Publishing, and its dealers
and distributors will be held liable for any damages caused or alleged to be caused directly or
indirectly by this book.
Packt Publishing has endeavored to provide trademark informaion about all of the
companies and products menioned in this book by the appropriate use of capitals.
However, Packt Publishing cannot guarantee the accuracy of this informaion.
First published: July 2011
Producion Reference: 1180711
Published by Packt Publishing Ltd.
32 Lincoln Road
Olton
Birmingham, B27 6PA, UK.
ISBN 978-1-849512-56-5
www.packtpub.com
Cover Image by Asher Wishkerman ( a.wishkerman@mpic.de )
Credits
Author
Benjamin Dasnois
Copy Editor
Neha Shety
Reviewers
Marcus Bergström
Andy Li
Franco Ponicelli
Project Coordinator
Shubhanjan Chaterjee
Proofreader
Lisa Brady
Acquisiion Editor
Dilip Venkatesh
Indexer
Tejal Daruwale
Development Editor
Maitreya Bhakal
Producion Coordinator
ArvindKumar Gupta
Technical Editors
Kavita Iyer
Azharuddin Sheikh
Cover Work
ArvindKumar Gupta
679992718.001.png 679992718.002.png
Foreword
Remember the olden days?
I vaguely remember this odd box called a computer gradually conquering corners of my
living room and bedroom. Can you recall those imes? We would "use a computer" for some
speciic tasks, such as wriing a leter.
The term computer was quite popular back then. Now, the word is no longer part of our
acive vocabulary, let alone "use a computer", who says that anymore? Nobody does. That is
because computers are no longer odd boxes in corners. They are the notebooks and mobile
phones that we use every day. They are also the hybrids between the two, such as tablets
and netbooks. They are the servers that run websites we constantly use as well. Even today's
TVs are full-blown computers.
I ind this change fascinaing. I think we live in a very exciing ime to be paricipaing in the
business. All these new devices bring us opportuniies enabling us to express our creaivity,
while their diferences challenge us and keep us invenive.
Unlike PHP or AcionScript, haXe is not designed for one speciic purpose. It is just a
programming language. That is why it is so versaile. Whether it is the hip new phone in the
hands of a Japanese ad girl or a big bulky machine in a server room; whether it has a mouse,
a muli-touch screen, a bendable/deformable interface; or even a mind reading sensor, haXe
can be remixed and used for the device.
This means that you can use the same language and even the same codebase across the
browser and the server part of your project, for example. To me, that is why haXe is so relevant.
Benjamin Dasnois is one of the people that has been around since haXe-day one. He remixes
haXe to make it it new needs. Benjamin is best known within the community for working on
the Java target. (I would also say, that he is second to none for his funny French accent.)
Zgłoś jeśli naruszono regulamin