Profile

Member Since
November 03, 2011

Search Members

  

AdamHarte

17
@AdamHarte
adamharte.com

Badges

This user hasn't earned any badges yet.

Posts

Viewing 1 to 17 (17 Total)

Has anyone got a recent version of Away3d working in Haxe?

I have a project I am just starting, and need to use Away3d. Unfortunately, after trying for a few hours, I have not been able to get even a simple example running.

I really don't want to have to go back to AS3 for this, but I fear I might have to if I can't get Away3d working in Haxe.

I see there is a haxelib for Away3dLite (source on github), and there are even some examples. But it looks it has not been updated in some time, and is still running on Haxe 2.6. I can not get this to compile at all.

I have also tried to link to the AS3 SWF library (by unzipping the SWC), but did not have any luck with that either.

I am no expert with Haxe, so I could be doing everything wrong. So if anyone can help, or give me advice, you would be a legend! smiling

Thanks,
Adam

Posted on August 28, 2012 at 7:16 PM

Re: NME Samples

I definitely like the idea of a separate repo for clear and simple sample applications, and keep NME itself focused and clean. Then have bigger samples (like pirate pig) as there own individual repos like you say.

Then it is really easy to point people to the samples repo or individual bigger samples that they can just go get themselves. And they know exactly what they are getting.

I would be very keen to start sorting out some "consistent, clear and up-to-date samples". I think a lot of the current samples are quite dated, and don't seem to follow the current Haxe best practices. They also seem to be setup very different from each other. It would be quite confusing for someone with little experience.

I am working on a list of sample applications with descriptions that I think would be useful. I am basing them off the current samples, as I think there is a good base there already. However I think some can be simplified, split up in multiple samples, or even removed all together. I can post my notes here when I have something.

In the mean time, it might be nice to get other peoples opinions on what kind of samples should go in this collection.

Posted on July 25, 2012 at 10:53 PM

NME Samples

I am relatively new to Haxe and NME. Been "giving it a go" for a little over a year now. But have been doing Flash for what seems like forever (since the Flash5 AS2 & even AS1 days).

I noticed the other day that there is a samples folder in the NME haxelib folder. So I tried to run some of them, with mixed results. Some of them worked fine, but others gave me errors and would not compile at all. I also took a look at the code for each sample, and a lot of them seem to be confusing, messy, inconsistent, and un-commented.

I think sample applications like these are a great resource, along with the recipes on github:gist. So I decided the other day to fork the NME repo on github. I have been going through all the samples, fixing them up, and at least get them to compile with the current version of Haxe and NME, with the goal of pulling the changes into the main repo later. I got through a bunch of them, but now I have a few questions.

Who are these samples targeted towards?
At first I thought they were targeting people who are new to the platform, and possibly Haxe. And that they are there to help you get started with the very basics of how things work. But on looking at the code, there seems to be some "tricky stuff" in a lot of the samples, and seems more like "here is some crazy things NME can do".

Is anyone attached to these samples?
I am tempted to change all the samples to how I think they should be, and then submit them for people to review before merging them back.

What do you think is good/bad about the current samples?

What makes a good sample application?

I think I am in a really good position to help fix up these samples, as I am kind of a new user to NME and Haxe, but also have been programming with Flash and other platforms for some time. Also, it is all open source right?! So anyone can edit them once I get them checked it smiling

Thanks,
Adam

Posted on July 25, 2012 at 9:27 PM

Re: Haxe C# target and Windows Phone 7

Metro target would be awesome. Especially if it was all set to go before Windows 8 official release day smiling

I think Haxe and NME could draw even more numbers to the platform if this works out.

Has there been any sort of start on a metro target by anyone yet? I haven't seen anything around.

Posted on June 16, 2012 at 12:03 AM

Try Haxe on Hacker News. Vote it up!

Just saw it on Hacker News at number 11. Vote it up to get it to number 1:
http://news.ycombinator.com/

Posted on June 10, 2012 at 5:43 PM

No TextField getTextFormat

I am outputting my Haxe/NME project to the windows target, but get the following error:
nme.text.TextField has no field getTextFormat
Is the getTextFormat missing from the TextField class for windows for any reason?

Posted on May 29, 2012 at 12:49 AM

Re: Download page, not showing what will be installed

Awesome, looks like someone made that change, thanks.

I also noticed that on the download page under "Next steps", there is a link to a FlashDevelop project template. It looks like FlashDevelop comes now comes with a NME project template, So that link is probably not needed anymore.

Posted on May 23, 2012 at 2:50 AM

Download page, not showing what will be installed

On the NME download page (http://www.haxenme.org/download/), it is not stated anywhere what components will/can be installed with the NME installer.

Might be a good idea for people who are new to Haxe/NME to list all the optional components that you can install with the NME installer.

It would be good to at least say that you don't need to install Haxe yourself, because it can install the latest version for you.

So far it looks like the Installer (for Windows at least) installs Haxe, Neko, NME, HXCPP, Jeash, Actuate, and SWF. That is a whole lot of goodies straight out of the box. We should be advertising this. Could even have a one liner for what each does.

Posted on April 25, 2012 at 9:04 PM

DCPU-16 support

Would be great if we could compile into something that works in DCPU-16. Have no idea if this is possible given the limitations, but could be a nice challenge smiling

Posted on April 16, 2012 at 10:50 PM

Re: Problem with using Accelerometer on Android target

Running "haxelib upgrade nme" says "All projects are up-to-date". Also it seems to check all the libs, not just NME with that command.

Running "haxelib info nme" tells me I am using version 3.1.1 so seems to be current. However, I am still having issues, and have noticed a few strange things.

My class from nme.ui package looks basically the same as the one in SVN here: nme/ui/Accelerometer.hx, except the comment has changed positions.

The class from nme.sensors is quite different from SVN. My version has this line:
public static var isSupported (default, null):Bool;
Where as the version from SVN matches more along the lines of aaulia's diff. So seems like I don't have the latest version. Should I just use the SVN version? How do I go about this?

Thanks.

Posted on January 17, 2012 at 12:53 AM

Re: Problem with using Accelerometer on Android target

I seem to be having the same issues with my Motorola Milestone (Droid in US). Have these updates made it into the main release? I am using NME 3.1 RC1. Should this be working?

I am getting no data with either nme.sensors.Accelerometer or nme.ui.Accelerometer.

For nme.sensors.Accelerometer, Accelerometer.isSupported always returns false. And for nme.ui.Accelerometer, Accelerometer.get() always returns null.

I know that my accelerometer actually works, but just can't figure this out.

Posted on January 16, 2012 at 3:23 AM

Re: Development Tools & IDE's

crayfellow, I know you don't mean to minimize the great work which has already been done, and I get what you are saying, but have you actually looked at what has been done lately with FlashDevelop for NME? And paired with the NME installer Joshua has been working on, it has come a long way.

Do you think this is the track it should be heading down?

Posted on January 06, 2012 at 5:55 PM

Methods of Flash's Number class

With AS3 I sometimes used the formatting methods that came with the Number class such as toFixed(), toExponential(), and toPrecision(). But with haxe/nme I can't find anything similar. What should I use for this?

Posted on January 01, 2012 at 7:04 AM

Re: addEventListener useWeakReference wont compile cpp

Wow, that's cool. Thanks for that. I think I will wait for the released version smiling as it's not so urgent.

Thanks again.

Posted on December 22, 2011 at 12:32 AM

addEventListener useWeakReference wont compile cpp

When I use the useWeakReference flag on the addEventListener method when publishing for the cpp target, I get the following compilation error:

Called from ApplicationMain_obj::main, bin/cpp/windows/haxe/ApplicationMain.hx 13
Called from Lib_obj::create, C:\NME\NME_3.1_RC1/nme/Lib.hx 42
Called from CFunction
Called from Main_obj::main, src/Main.hx 32
Called from EventDispatcher_obj::addEventListener, C:\NME\NME_3.1_RC1/nme/utils/WeakRef.hx 16
Called from CFunction
Error : Finalizer not on abstract object

I do not get this when compiling for Flash

Here is the line that is breaking it:

addEventListener(Event.ADDED_TO_STAGE, init , false , 0, true);

If I give the last argument as false, then it will compile and run with no problems.

Any ideas of why this would happen? Can we not use weak refs when targeting c++?

Posted on December 21, 2011 at 3:13 AM

Re: In Game Adverts, A Solution?

A quick google tells me there have been a few people who have ported the Mochi AS3 API to HaXe.

This is probably your best bet (although that post was written in 2009):
http://www.hesselboom.com/mochi/...

Here is also another more current work around:
http://wootfu.com/2011/08/using-mochiads-with-haxe/...

Posted on November 17, 2011 at 7:11 PM

Re: All-in-one NME installer

Worked great for me. I already had everything installed so choose the "re-install everything" option.

I am running Windows 7, and did get a "This program might not have installed correctly" prompt after NME finished installing. I just selected "This program installed correctly", and everything seems to be working smiling

Thanks for the installer, I think anything that makes the barrier of entry easier, is a great thing for haxe, NME, and the community.

Posted on November 17, 2011 at 4:27 PM