openfl

Haxe: How can I make the android menu bar stay hidden

陌路散爱 提交于 2020-01-06 05:08:43
问题 Im developing an app using haxe / openfl, with the flashdevelop ide. The default setup for a new project comes with the correctly configured android manifest so that the android menu bars dont show up. However when I touch anywhere on the device they pop up. How can I prevent this from happening. Okay, so I found the the template GameActivity.java file that the system was using to generate the apps code and modified it to include: @Override public void onWindowFocusChanged(boolean hasFocus) {

Haxe: How can I make the android menu bar stay hidden

倖福魔咒の 提交于 2020-01-06 05:08:05
问题 Im developing an app using haxe / openfl, with the flashdevelop ide. The default setup for a new project comes with the correctly configured android manifest so that the android menu bars dont show up. However when I touch anywhere on the device they pop up. How can I prevent this from happening. Okay, so I found the the template GameActivity.java file that the system was using to generate the apps code and modified it to include: @Override public void onWindowFocusChanged(boolean hasFocus) {

How to safely store secret key? [closed]

此生再无相见时 提交于 2020-01-06 04:26:09
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 5 years ago . As I have developed my app using openFL which uses haxe, and I am about to start the activation part of my software, I wonder how would I safely store my encryption secret key? would I just hard code it into my app??! I will be using this key to encrypt data before sending to

FlashDevelop/OpenFL: How to set default target to neko

半世苍凉 提交于 2019-12-23 03:52:20
问题 I am trying to write some cross-language code with Haxe/OpenFL and compile it using FalshDevelop. But I get an error as soon as I use the basic Sys.print function. A minimal example is as follows: package; import flash.display.Sprite; class Graphic extends Sprite { public function new () { super (); } static function main() { //used in standalone swf project Sys.print("Hi"); } } It turns out that the default compile command of FlashDevelop is something like: haxelib run openfl build project

How to exit Haxe/OpenFL program?

人走茶凉 提交于 2019-12-12 08:41:18
问题 I am making a game using Haxe, OpenFL (Formerly NME) and HaxeFlixel. However, problem is, I can't seem to find a good way to make a Flixel button that will shutdown the game when pressed. I was planning to make a "quit" button on the main menu. Is there any simple method to do so or is it impossible? 回答1: It depends on the compilation target: I'm going to assume you're compiling to CPP (Windows EXE). In which case you should just be able to use the following: import flash.system.System; // Or

FlashDevelop / Haxe - build halted with errors (haxelib.exe)

谁说我不能喝 提交于 2019-12-11 11:55:01
问题 I'm trying to get started with Haxe but I can't even get past the easiest step, compiling the "new project" template. I'm using FlashDevelop 4, installed Haxe and used the the command haxelib install openfl to install openfl (did the same for NME) though I still get the most basic compiler error: haxelib run openfl build C:\dev\haxeBox\openFlTest\application.xml android -debug [file_contents,C:\Program Files(x86)\Haxe\haxe\lib\openfl//.current] Build halted with errors (haxelib.exe). I've

How to learn Haxe as a JavaScript developer

梦想的初衷 提交于 2019-12-10 17:37:55
问题 I have been using JS for like 3 years. I want to use OpenFL for making mobile apps. However, I do not know Haxe. And I don't know other programming languages either. However, I am comfortable in learning classes, inheritance, etc.... Also, so far from what I have read, OpenFL is better than Adobe AIR in terms of performance and you need to know Haxe to use OpenFL. So how can I get started? Are there any good resources? All seem to be tailored toward AS3 developers. Do I need to understand

Using SWF animation in Haxe/OpenFL applications

强颜欢笑 提交于 2019-12-10 13:56:31
问题 As great as Haxe got with NME/OpenFL the big problem transitioning from AS3 development are assets. As much as Haxe is similar to as3 and OpenFL tries to provide a familiar API the lack of SWF support scares away many developers. My research on this topic led me to understand that current SWF is rather weak and buggy with many edits necessary to SWF file in order to run it in Haxe. The question is how do you use SWF animation in OpenFL apps, or if you don't - whats the best solution you've

How to send back to custom class which object of that class was clicked

荒凉一梦 提交于 2019-12-08 03:54:47
问题 I am stack at this problem can't figure out how to do it properly. [Haxe/OpenFL] I want to make following menu. On screen for player display three images/buttons. When player clicks on one of the images/buttons a text with description appears under that button. My is, i dont know how to send from Main (where i create this buttons and using them), send info to custom class of this images/buttons, what specific button/image was pressed. Here is example code, first from custom class of the