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 3. Being Cross-platform with haXe

Targeting different platforms with the same code-base.

This chapter is about how to target several platforms from the same haXe code – the thing that haXe is known for.

haXe allows us to target several platforms; so, you may want to take advantage of this feature to be able to use your applications or libraries on several platforms. Unfortunately, there are some drawbacks, but don't worry, we will go through them and see how to work around them.

In this chapter, we will:

  • See what is cross-platform in the standard library

  • Talk about platform-specific packages

  • Learn about their specificities

  • Learn about conditional compilation

So, not only are we going to talk about being cross-platform, but also about platform-specific things. So, if you're ready, let's get started!