Is any plans to port other flash API or Frameworks like Starling?

43 views
Skip to first unread message

Kevin

unread,
Mar 31, 2021, 3:37:02 AM3/31/21
to StageXL
Hi!

1. I compare Dart/StageXL with Haxe/OpenFL. OpenFL implements overwhelming majority classes from as3 flash api. Do you have plans to do this?
For example I need ExternallInterface, URLLoader, URLRequest, getTimer etc.
I understand that Dart covers this functionality itself. But it can be more easy to port big project from flash if we have same API not only for render.

2. I think you know about Starling Framework (https://gamua.com/starling/)

I think a lot of modern serious game use it. Not only for gpu render but for other additional functionality (AssetsManager and other utils). So if we have same API it help to migrate and support game in different platforms (AIR for mobile/desktop and StageXL for web).

Bernhard Pichler

unread,
Mar 31, 2021, 1:12:32 PM3/31/21
to StageXL
Hi Kevin,

I think OpenFL tries even harder to be as compatible as possible. As you said, for some things there is an alternative in Dart and i did not try to create an abstraction that looks more like the Flash version (for example ExternalInterface). The getTimer was not added because i think its better to use the Juggler framework for time based stuff. Of course all credits for the Juggler framework go to Daniel, the creator of the Starling Framework. It's a funny coincidence that Daniel and i were coworkers some years ago and we even work in the same building today. He started the Starling Framework which inspired me to create StageXL for Dart.

I was thinking about porting StageXL to Flutter, but at that time there was no easy way to access OpenGL. Maybe this has changed and could be done. There is an abstraction layer in StageXL for WebGL and Canvas2D - both web based technologies and it should be easy to do it for OpenGL as well. 

Hope this helps a little bit,
Bernhard

Kevin

unread,
Sep 6, 2021, 3:11:45 AM9/6/21
to StageXL
Ok

What about adding new useful classes to StageXL? For example ButtonBehavior (https://doc.starling-framework.org/current/starling/utils/ButtonBehavior.html). So we can use every complex sprite as Button

Thanks!

Reply all
Reply to author
Forward
0 new messages