haxe Questions
1
Solved
I often see people use the keyword using in their Haxe code. It seem to go after the import statements.
For example, I found this is a code snippet:
import haxe.macro.Context;
import haxe.macro.E...
1
This is part of my stack class. It works fine in flash, but in cpp/windows, the push method doesn't always work. I don't understand C++ well enough to understand why it could be inconsistent.
var ...
1
Solved
Recently, I have found (on Mac OS X Mavericks) OpenFL and LIME (with the command line tools) not working due to a 'segmentation fault'.
Before I get into the details, here's some background.
I o...
Achromic asked 30/3, 2015 at 1:12
1
Solved
How would I get the class name in string?
I tried this:
Type.getClassName(this));
Where this is the current class I am in, but I got error:
com.SubWidget should be Class<Dynamic>
Any h...
Quinque asked 10/2, 2015 at 15:2
1
Solved
My question is regarding properties in haxe.
If I understand it correctly, if I make property like this
var propertyInt(get, set):Int; according to haxe documentation it's not really a variable. B...
Acentric asked 13/1, 2015 at 20:37
1
Solved
Just yesterday, I decided to begin learning the Haxe programming language after having used Actionscript 3 for the past few years. Today I have been exploring abstract types, and I have come to rea...
Chemiluminescence asked 24/12, 2014 at 23:7
2
Solved
I'd like a (platform independent) way to list all classes from a package.
A possible way would be get a list of all classes known by Haxe, then filtering through it.
Hypoglycemia asked 8/12, 2014 at 11:4
1
Solved
I have an crossplatform implementation of own protocol, data-structures and logic written on Haxe. How I can build and use it in my enterprise-application (with native UI) for iOS and OSX?
1
Solved
I have compiled my Haxe JS project, and it's working fine.
What I have in Haxe is a Main class.
Now, I need to call a static function from a Haxe-compiled Main. I tried to call it like this:
Main...
Roulers asked 3/12, 2014 at 15:43
2
Solved
How do you create public constants in Haxe? I just need the analog of good old const in AS3:
public class Hello
{
public static const HEY:String = "hey";
}
Ultimogeniture asked 21/8, 2014 at 10:40
3
Solved
I have started to use Haxe to convert my ActionScript 3 projects into NME, but, I like to know please what is Neko in the world of Linux? I searched for it, I found its an animated cat!
Can any on...
3
So i've built a simple websocket client implementation using Haxe NME (HTML5 target ofc).
It connects to
ws://echo.websocket.org (sorry no link, SO sees this as an invalid domain)
which works p...
Innkeeper asked 14/5, 2012 at 12:1
2
For a client I've developed an iOS + Android app using Cordova (PhoneGap) for the user interface. Now, as an update to this app, I'm am attempting to add a game that was written in Haxe. Originally...
1
Solved
I would like to know how to read metadata from a class (and its methods) in a macro.
I tried to modify this example.
I added : to see if metadata without them is only available in generated code, ...
1
Solved
I have an enumerator type:
enum PlayerProps {
Attempts;
Gold;
Diamonds;
}
What should I do to iterate through all enum values? Something like:
var props = new Map<PlayerProps, Int>();
...
2
Solved
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 supp...
1
Solved
Haxe has trace(), which can be used on all targets to print contents.
trace("aa"); // Main.hx:89: aa
How do I print just the contents, without the file name and line number?
Shelba asked 26/12, 2013 at 21:37
2
Solved
I've been looking through the sites of Haxe / OpenFL / Flixel but am struggling to understand what each one is for.
As I understand it:
Haxe is a language that can be deployed to multiple platfor...
Freehearted asked 19/12, 2013 at 16:38
1
Solved
I am setting a property, I need to know who is setting the property value? is this possible in haxe 3?
Also, can I know who is calling a function from inside the function itself?
Khartoum asked 7/12, 2013 at 17:5
2
Solved
I'm trying to pass a Class reference and instantiate it in a function. This doesn't work:
function foo(myClassRef:Class):Void {
var myVar = new myClassRef();
}
foo(MyClass);
It gives Unexpected...
Transvalue asked 13/8, 2013 at 19:19
1
Solved
I've been googling for latest web apps, and found the following languages:
- Opa
- Dart
- Haxe
- CoffeeScript
Since these languages are new, there are not many information available.
...
Impound asked 12/8, 2013 at 5:59
1
Solved
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 pl...
Levileviable asked 5/7, 2013 at 15:5
5
In other programming languages, I can use int array[23][23] to declare a 2D array with 23 elements in each dimension. How do I achieve the same thing in Haxe?
Currently I need to do this:
var a...
Sale asked 1/5, 2013 at 11:47
2
Solved
I'm just trying to convert my code from C# to Haxe NME. I use enums as flags.
[Flags]
enum State
{
StateOne = 1,
StateTwo = 2,
StateThree = 4
}
And use it
if (someObj.HasState(State.StateOne...
Hileman asked 16/5, 2013 at 6:10
1
Solved
I'm using NME to create a small game. I like to display the objective in the title bar in the Neko and C++ targets. Is that possible?
Thanks.
© 2022 - 2024 — McMap. All rights reserved.