Retrieve meta title from project.xml?

Is it possible to retrieve title String from project.xml on runtime?


From:

<meta title="TitleOfApp" package=... />

result should be “TitleOfApp”.

In project.xml:

<set name="title" value="TitleOfApp" />
<meta title="${title}" />
<haxedef name="title" value="${title}" />

In Haxe:

var title:String = haxe.macro.Compiler.getDefine("title");
trace(title); //TitleOfApp
1 Like

Thx for answer.

I was thinking if this meta is accessible somehow in a special way, but above solution will have to do.

If you are not using OpenFL legacy, try:

stage.application.config.windows[0].title;
1 Like

Thx @singmajesty, so this is what I’ve been looking for: lime.app.Config, it has version, build number, company… awesome! :smile:

2 Likes