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

Chapter 7. Communication Between haXe Programs

Using haXe remoting.

haXe is a language perfectly suited for web-applications. When one says web applications, it generally means connected applications. Fortunately, haXe has a system to help applications communicate: haXe remoting.

In this chapter, we will talk about haXe remoting and how it can be used to make our haXe applications communicate. As you will see, it is in fact pretty easy to use.

In this chapter, we will:

  • Learn about the haXe serializer

  • Use Neko and PHP applications as clients and servers

  • Create a JS client

  • Create a Flash client

  • Communicate between Flash and JS

Although this is all pretty easy to do and understand, it is also very useful.

So, if you are ready, let's move on!