Skip to content

Files

Latest commit

Jan 22, 2023
be45cce · Jan 22, 2023

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Jan 22, 2023
Jan 22, 2023
Jan 22, 2023

Chapter 6

Sample code translated to OpenFL and Haxe from Chapter 6 of Foundation ActionScript 3.0 Animation: Making Things Move by Keith Peters (Apress, 2007).

Ported and shared with permission. Thank you, Keith.

Samples

Several samples from this chapter are available in the src directory.

Requirements

Build & Run

This directory contains an OpenFL project. The project.xml file specifies the project's configuration options, and the Haxe source code appears in the src directory.

To run this project, open a terminal in this directory, and run the following command:

openfl test html5

The project.xml file contains a line for each sample, like this:

<app main="Bouncing1"/>

All except one of the samples are commented out:

<!-- <app main="Fountain"/> -->

To switch between samples, comment out the currently selected sample, and uncomment a different sample. Then, run openfl test html5 again.

Alternatively, you can switch between samples without modifying project.xml by specifying the --app-main command line option with the sample name.

openfl test html5 --app-main=Fountain