Profile

Member Since
November 01, 2011

Search Members

  

starpause

13
@

Badges

This user hasn't earned any badges yet.

Posts

Viewing 1 to 13 (13 Total)

Re: More tutorials?

@singmajesty I'd love to see a tutorial on the ExternalInterface class. I'm currently trying to get a demo app of that going for html5 & flash targets.

Posted on June 11, 2012 at 4:44 PM

Re: Re: Application width and height

that works fine for me targeting flash and html5 as well. stage.stageHeight wasn't, so thank you for the tip!

Posted on March 08, 2012 at 7:11 PM

Re: template (without FlashDevelop)?

Thanks! Tarwin started hacking on a bash script for this today as well, had to leave the hackathon before we saw results.

Posted on March 03, 2012 at 10:38 PM

template (without FlashDevelop)?

Is there a template or howto for starting an nme project from scratch, without FlashDevelop? I'm using sublimetext2 on osx. Right now I'm just grabbing the Actuate Example and modifying it but if there's a better way, I'm all ears!

Posted on March 03, 2012 at 2:16 PM

Re: nme on osx

@singmajesty thanks so much! i'm sure that had to be documented somewhere appreciate the fast response. Ah, here's the line I was following from the 3.2 blog post release that may have led me astray: You can install the beta by running “haxelib test NME-3.2-Beta.zip” using a command-prompt or terminal. You can switch back to the last release at any time by running “haxelib set nme 3.1.1″ if you want to.

Posted on March 02, 2012 at 3:54 PM

Re: nme on osx

@singmajesty you're so right about NME 3.0.1, I'd installed it as a beta previously and now I can't figure out how to set 3.2.0 as my default again. does my haxelib set command line look ok?

$ haxelib list
actuate: 1.35 [1.38]
air2: 0.2.1 [0.2.2]
box2d: [1.11]
hxcpp: 2.07.0 2.08.0 [2.08.1]
jeash: 0.8.5 [0.8.7]
neash: [1.0.3]
nme: 2.0.1 3.0.1 3.2.0 [dev:/Users/starpause/SDKs/NME_3.1_Beta/]
nodejs: [0.6.4]
physaxe: [1.2]
swf: [1.07]
jgray$ haxelib set nme 3.2.0
jgray$ haxelib list
actuate: 1.35 [1.38]
air2: 0.2.1 [0.2.2]
box2d: [1.11]
hxcpp: 2.07.0 2.08.0 [2.08.1]
jeash: 0.8.5 [0.8.7]
neash: [1.0.3]
nme: 2.0.1 3.0.1 3.2.0 [dev:/Users/starpause/SDKs/NME_3.1_Beta/]
nodejs: [0.6.4]
physaxe: [1.2]
swf: [1.07]

Posted on March 02, 2012 at 2:09 PM

Re: Get Started: HTML5 (osx error)

Thanks for the tip--will "build" instead of "test"! Configurable launch for html5 would be great in the future but I understand there's lots to do.

Posted on March 02, 2012 at 2:06 PM

Re: Get Started: HTML5 (osx error)

Ok, so within an hour of sitting back down at my desk everything is working ;)

1st, I didn't need to be running nme as root. I was down that dark path because my regular user's repository path was pointing at ~/nme/ rather than /usr/lib/haxe/lib. I fixed that with "haxelib setup" and pointing it at the right path.

2nd, haxe is able to build the html5 project, but it's not able to execute it. So if I open /Actuate_Example/Export/html5/bin/index.html by hand then I can see the demo running.

Workable, but I'm left with the question of if I can fix this "Uncaught exception - Error running: ./index.html Export/html5/bin" ...

Is there a haxe/haxelib/nme configuration option that needs to be set? Maybe the issue is that by default I handle html files with a text editor rather than a web browser? It would be excellent if there was a way to specify what command was used to test an html5 project after building it, hope I just haven't found it yet.

Posted on March 01, 2012 at 12:15 PM

Get Started: HTML5 (osx error)

Trying to run through the Get Started guide. If I'm root, I have no problem running the nme test command for mac or flash. However, if I try running the html5 command, I get the following error:

root# nme test "Actuate Example.nmml" html5
sh: ./index.html: Permission denied
Called from ? line 1
Called from InstallTool.hx line 403
Called from a C function
Called from InstallTool.hx line 83
Called from a C function
Called from installers/InstallerBase.hx line 126
Called from installers/HTML5Installer.hx line 55
Called from installers/InstallerBase.hx line 1005
Called from InstallTool.hx line 218
Uncaught exception - Error running: ./index.html Export/html5/bin

I know I'm spamming the board a bit today with my n00b issues, hanging in #haXe on freenode as well, just trying to get back into things after some weeks/months away!

Posted on February 28, 2012 at 7:24 PM

sudo haxelib run nme setup (error on osx)

$ sudo haxelib run nme setup
Called from nme/utils/ByteArray.hx line 88
Called from nme/Loader.hx line 107
Called from nme/Loader.hx line 117
Called from nme/Loader.hx line 71
Called from C:\Motion-Twin\haxe/std/neko/Lib.hx line 33
Uncaught exception - load.c(232) : Failed to load library : nme.ndll (dlopen(nme.ndll, 1): image not found)

I'm not sure how I got to this sorry state, maybe it's better to blow everything away and start installing from fresh? Also seems strange I'm getting a reference to my C:\ drive when on a Mac.

Posted on February 28, 2012 at 6:30 PM

Re: -bash: nme: command not found!

I'm in the same boat, OSX 10.6.8. The path exists: /usr/lib/haxe/lib/nme/3,2,0 ... and when i run "sudo haxelib run nme setup" as suggested in the getting started, I get the following:

Unknown command: setup
Usage : haxelib run nme [-v] COMMAND ...
COMMAND : copy-if-newer source destination
COMMAND : update build.nmml [-DFLAG -Dname=val... ]
COMMAND : (build|update|run|rerun|test) [-debug] build.nmml target
COMMAND : (trace|uninstall) build.nmml target

Any ideas?

Posted on February 28, 2012 at 6:09 PM

Re: getting started html5 error

ah, i didn't think to open up the index.html in the browser myself. working fine that way, brilliant!

on mac i'd type "open index.html" and it would pop open in my default browser, but i actually prefer just to build for html5 and hit reload myself since my default handler for html files is to edit them as text. is the command to run after building something i can specify?

will grab the latest jeash, thanks for the tip & fast response =)

Posted on November 01, 2011 at 10:42 PM

getting started html5 error

yo team, happy got the Actuate_Example project running on flash, mac, and ios (nme 3.1). however, when i try and run this command

haxelib run nme test "Actuate Example.nmml" html5

i get the following error:

machine:Actuate_Example user$ haxelib run nme test "Actuate Example.nmml" html5
sh: ./index.html: Permission denied
Called from ? line 1
Called from InstallTool.hx line 403
Called from a C function
Called from InstallTool.hx line 83
Called from a C function
Called from installers/InstallerBase.hx line 126
Called from installers/HTML5Installer.hx line 55
Called from installers/InstallerBase.hx line 1005
Called from InstallTool.hx line 218
Uncaught exception - Error running: ./index.html Export/html5/bin

for reference, my NME beta is in a directory i have write permission, the project is in a directory i have write permission, and i've tried doing sudo for the command.

any ideas? thanks much in advance!

Posted on November 01, 2011 at 8:37 PM