joshtynjala / openfl-custom-air-application-descriptor-xml-sample

A sample OpenFL project that customizes the air/template/application.xml template file

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

OpenFL custom application.xml template for Adobe AIR

The OpenFL library for Haxe contains a number of template files that are used when building a project. You can find them in the assets/templates directory. Using the <template> element in project.xml, it's possible to replace one or more of these template files with custom versions, on a per-project basis, and without forking OpenFL.

This sample project contains a directory named custom-templates. It is configured in project.xml like this:

<template path="custom-templates"/>

Inside custom-templates, there's a file at air/template/application.xml. The relative path to this file matches the file named air/template/application.xml inside Lime's templates directory.

To confirm that the custom air/template/application.xml is being used by the project, simply compile, and you should see your changes in bin/air.

openfl build air

Sample created by Josh Tynjala, the author of Feathers UI and core contributor to OpenFL.

About

A sample OpenFL project that customizes the air/template/application.xml template file


Languages

Language:Haxe 100.0%