haxe

Are out there any PHP to Haxe translators?

So I want to port WordPress to Haxe. I need HP to Haxe translators. Where can I get tham? ...

Can we use compiled HAXE swf's swc's in Actionscript as normal libs?

Can we use compiled HAXE swf's swc's in Actionscript as normal libs? I have a swf compiled from haxe code (I can try to compile it into something else SWC for ex) I want to use it as lib in AS3. Is it possible? If yes how to do it? ...

Duplicate image with Haxe

Hello, My goal is to make a wide map using only one square image. Using actionscript 3 the solution is to simply make new Bitmap from the Loader: var loader:Loader = new Loader(); loader.load(new URLRequest("xyz.png")); this.addChild(loader); var duplicationBitmap:Bitmap = new Bitmap(Bitmap(loader.content).bitmapData); Unluckily,...

Is there any algorithm for turning simple HAXE code into C/C++ code files?

I have simple Haxe app like class Main { public static function main() { trace("hello world"); } } I know how to compile such app for windows (not as SWF but as app from pure C\C++ )(and you can see how here but be worned thay use hxcpp\0,4 ) The problem is - I do not want to compile app for Windows Vista or 7 or XP I want to get PUR...

actionscript development on mac

I know of FlashDevelop for windows but how about developing actionscript or haxe on a mac? besides flex plugin for eclipse, flex builder and FDT is there anny good IDE out there for actionscript development on mac? I would really like to se a good plugin for netbeans but it looks like all the projects on making something like this has ha...

Multilingual Flash

How do you make a Flash movie (using Haxe, or Actionscript code rather than the IDE) that supports multiple languages? Can you detect the browser's language? Are there utility classes for managing the strings and selecting the appropriate one based on language? ...

Writing a Web Application in hAxe without Apache and PHP?

hAxe has Apache httpd modules and can compile to PHP code. These are 2 options I know to make a web application that runs on the server. You can start a http server with nekotools, but this is supposed to be used for development only. Are there any more options? I can always use the NekoVM from within a C or C++ program, running a web ...

Flash function overloading in haXe

I am having some trouble figuring out how to overload a function in Flash using haXe. I know that Flash does not allow overloads but can accept function parameters without a type declared, but I am unsure as how to replicate this trick in haXe. EDIT: Since this does not appear to be possible, are there any known tricks that can be used ...

Not sure whether to use haXe of just plain flash

Hi Guys, A local sports clothing company has hired me to make them a flash based jersey colour picker sort of thing. They are wanting it so users can check out what particular designs would look like with certain colours. Now, I'm by no means a great developer (I'm 16, but I know my way around javascript, flash and a bit of AS2) but I'...

Pass arguments to a delayed function with Haxe

Hi everyone, do you know if there is an easy way to pass some arguments to a function called via haxe.Timer.delay(func, delay); By "easy" I mean without creating any custom timer. Thanks. ...

Loose programming in high level languages, how, why and how much?

I'm writing my code in haXe. This is quite irrelevant to the question though, as long as you keep in mind that it's a high level language and compareable with Java, ActionScript, JavaScript, C#, etc. (I'm using pseudocode here). I'm going to work on a big project and am busy preparing now. For this question I'll create a small scenario ...

HaXe download claims to have Lineage.gen trojan in it

I am setting myself up with FlashDevelop, and i went to download and install HaXe (which is the language i want to use) from this page (the windows installer), when my Windows Security Essentials said that Lineage.gen got stuck in my win32 directory from the downloaded installer (i didn't even run it yet). Did i download from the wrong s...

Flashdevelop + haxe -- repeated "An I/O error has occured" errors

I'm getting small dialog boxes that pop up saying I/O Error occurred. What causes this, and how should I fix this? Edit: what happens is that after i run my flash game, FlashDevelop will try to connect to the Flash debugger, but apparently fail and give me the above error. I have both the debug standalone player and the ActiveX debug co...

What's the AS3 equivalent for MovieClip.CreateEmptyMovieClip?

I have some older AS2-style Haxe code which uses flash.Lib.Current.CreateEmptyMovieClip() to create a slideshow of disk-based images. It creates a new clip for holding each image and simply fades each image in and out with alpha levels. Compiling it with -swf -swf-version 8 creates an SWF file fine and this works in the browser. Howeve...

HaXe -- code refuses to work

I have the following code: package ; import flash.display.DisplayObject; import flash.display.Graphics; import flash.display.MovieClip; import flash.display.Shape; import flash.display.Sprite; import flash.events.Event; import flash.events.MouseEvent; import flash.geom.Rectangle; import flash.Lib; import flash.utils.Timer; /** * ... ...

Haxe flash API -- how to get/set the the flash display size?

How do i get and set the size in pixels that the flash file's drawing output is? ...

FlashDevelop + haxe -- use an embedded font

I've added my TTF file to my HaXe project, and it appears to be embedded into the swf, but i have no clue how to get any of my TextFields to use it. How can i do that? Update: I have a project set up as the same (for the purposes of this question) as this tutorial, and my font is not showing up (while theirs is). It seems to have to do ...

Haxe syntax; what does the following mean?

I have the following bit of syntax: Void -> Void //in context example private var _onClickEvents : List < Void -> Void > ; which seems to be accepted as a type definition, the same as Bool or TextField. I presume it has similar use to how Haskell defines function type signatures? ...

HaXe -- Embed files like in ActionScript?

In ActionScript, you can do something like this: [Embed(source = "src/myfile.xml", mimeType = "application/octet-stream")] private var xml : Class; and it will embed your file to be used in code. How can i do something similar in HaXe? ...

FlashDevelop -- Specify an HXML file?

[a continuation of this question] In order to embed resources in a SWF file, I have to add lines to my HXML file. However, since I'm using FlashDevelop, I don't know where to find that. Where should I put stuff I would ordinarily specify in my HXML? ...