Are there pure "openfl" developers?

Are there pure “openfl” developers?

Can I add the following code in a pure “openfl” project to enable high “dpi”?

QQ20250910-225720

Not sure what you mean by “pure”.
For platforms or targets which support high dpi, the answer is yes—that XML will produce the result you desire. I use it myself for html5 target.

<window allow-high-dpi="true"/> does not work on all targets yet. Native Windows targets (hl, neko, cpp) don’t support high DPI rendering. They likely will in a future update, but not yet.

1 Like

Do you mean someone who’s only ever coded in Haxe + OpenFL? Or do you simply mean something like, non-Starling?

I expect most developers have learned and experienced various languages and frameworks.

I encountered this recently when deploying to a Windows display server (cpp target). My application had scaling issues and the high-dpi setting didn’t make a difference. The scaling issues were eventually resolved when I got on-site IT to switch off all Windows scaling.

Only use ‘haxe’ and ‘openfl’

Openfl "is used for primary rendering

Instead of using rendering libraries like ‘Starling’

Thank you for your answer. I always thought that all targets supported high “dpi”

I am a person who pursues perfection

I need to pursue some ‘exquisite effects’

In order to improve rendering performance, I previously learned “starling”

But it was found that the text for ‘starling’ is based on images

To ensure that the text is not blurry, I now set the text size to 50 and then “scale” it down

For beautiful text, I usually use luminescent filters to stroke

I have noticed two issues here

”1 "is a text that appears strange when reduced to a certain extent. I don’t know how to say it, so I use a very strange expression

‘2’ means that the luminous filter will not scale with the text

Studying learning difficulties alone, not knowing how to solve problems

So I directly used “openfl” for main rendering instead of “starling”

Starling "is great, but I feel it’s not suitable for the effect I want to achieve. Personal preference

The text boxes for “as3” and “openfl” are based on vector graphics

No matter how I scale the size, I don’t need to consider the issue of blurring

As for the filter size multiplied by the text box scaling size, it seems that it can be calculated

As I mentioned earlier, I am a person who pursues perfection, and I need to pursue some exquisite effects

The vector text of ‘openfl’ seems to be more suitable for me

Thank you very much for your positive response all along

Thank you to those who have always helped me. Thank you

I hope everyone can exchange more development experience and promote the development of “openfl”

Assets.getMusic
Assets.getSound

May I ask, what is the difference between these two?

I found that there are two ways to load ‘swf’

What is the difference between these two loading methods?

Assets.loadLibrary("library").onComplete(function (_) {
			var clip = Assets.getMovieClip("library:MySymbolClass");
			addChild(clip);
		});

You can also process files from the command-line, and load them later:

haxelib run swf process
haxelib run swf process path/to/swfs
haxelib run swf process test.swf
haxelib run swf process test.swf path/to/test.zip
haxelib run swf process test.swf output/path
For example:

haxelib run swf process test.swf
This will generate a “test.zip” file which can be loaded at runtime later:

import swf.exporters.animate.AnimateLibrary;
import openfl.utils.Assets;

AnimateLibrary.loadFromFile(“path/to/test.zip”).onComplete(function(library)
{
var clip = library.getMovieClip(“MyMovieClipName”);
// or
Assets.registerLibrary(“my-swf”, library);
var clip = Assets.getMovieClip(“my-swf:MyMovieClipName”);
});

I found that you can use the command line to convert “swf” to “zip”

If I have a lot of ‘swf’, converting them one by one would be too troublesome

Can you create a separate file, such as. bat, and put these command lines into bat to run?

Or is there any other way

haxelib run swf process
haxelib run swf process path/to/swfs
haxelib run swf process test.swf
haxelib run swf process test.swf path/to/test.zip
haxelib run swf process test.swf output/path

Are there pure “openfl” developers?

I don’t use haxe much since a little while now, but when I do it’s 99% of the time lime+openfl and away3D when it comes to anything 3D; away3D for 3D rendering and openfl for 2D Interface/GUI. If I need svg, I use svg also, and that’s about it when it comes to haxe. Now I’m mostly focused on SGDK, it’s a framework in C to dev megadrive/genesis games, works great. The whole point being retro gaming projects, of course… There’s a lot of downsides, that’s a given, it’s only a megadrive I’m running on after all… So it’s a tad limited regarding anything, to say the least. Now there are upsides of course, I can play VGM musics without hassle for instance, something that I can’t do or hardly can do with haxe/openfl, but most importantly, I don’t have to worry about portability since I rely on megadrive emulators to run the game on pretty much any given platform starting with aliexpress handhelds/consoles (anbernic, miyoo, etc..). I’ve tried to compile haxe projects for such devices but never succeeded, I guess it’s possible for some of them… Theoretically it should be possible to compile an haxe project for an RK3566 (ARM) based devices for instance… Good luck with that, I’ve thrown the towel and switched to SGDK and learned C in the process. C is pretty medieval compared to haxe, there’s no “new” keyword for objects creation as in “new MyClass(…)” instead the are “structs”… It’s buttfackugly, it feels like using json objects in javascript, sort of… It feels downright primitive, medieval as I’ve said already, but it does the job. It’s that or deving in ASM, and no, I’m not going to dev anything in ASM, that’s too much of a pain in the butt, I’m not going back to paleolithic era I’m not that insane, yet…

1 Like
  • Assets.getSound is pre-cached and access from memory. This is ideal for low latency playback.
  • Assets.getMusic is not pre-cache, and is streamed from disk / network. This is ideal for larger files (such as music) but may incur more latency when first played.

“Assets.getSound”
Can it be used to play background music?

“Assets.getMusic”
Can some target platforms only play one at a time?

I expect you can. It just has memory implications.

How to obtain instances of document classes?

I mean, is there a built-in method to obtain an instance of the document class for ‘openfl’.

You should start a new thread when the topic changes.
To answer your question, I was just talking about that recently here.

The text box in “openfl” is a vector image. Is there any bitmap text in “openfl”?

How many people are using ‘HaxeFlixel’?