Profile

Member Since
January 09, 2012

Search Members

  

Confidant

19
@confidant_ca

Badges

This user hasn't earned any badges yet.

Posts

Viewing 1 to 19 (19 Total)

Re: Embed an NME application in another?

I'm having some success with this. In my iFrame, I can use JQuery to trigger actions in the parent window by doing like so:
parent.$('body').trigger( 'gotoTab',"#tab3-link" );

(I don't have any Haxe application in the iFrame yet.)

In my parent window Haxe app, I have set up a listener for this event like so:
var body: Dynamic=new JQuery("body");
body.bind( 'gotoTab' , gotoTab);

private function gotoTab(e: Dynamic,v:String):Void{
trace("go2tab:"+v);
}

Now what I am wondering is how I can have the iFrame respond to external events. Within the iFrame I tried using JQuery's .on() handler with a custom event, but it seems that my parent window app cannot trigger events in the iframe using the JQuery extern. I can do other JQuery manipulations, just no event triggering. (I can trigger events in the main window no problem.) The only way I've found so far to trigger functions within an iFrame is to call them like so:

js.Lib.eval('document.getElementById("tab3frame").contentWindow.init();');

This is all with Haxe 2.10. Any suggestions, Joshua? smiling I'd like to have a more elegant method than using eval().

Posted on May 29, 2013 at 3:41 PM

Re: about SVG

I've been using it, and just know a bit. The SVG library parses the SVG and then uses the drawing api to return shapes to the graphics object in a Sprite. From that point onward it's treated like any other Sprite. I don't know offhand if there are certain targets that have limitations with blending mode, etc. in NME.

I also know that the supported features from SVG are limited. I had trouble implementing real text and gradients. Poking around in the code it seems that there is supposed to be support for these, so it may not have liked what Adobe Illustrator was outputting.

I think SVG filters are unsupported. And that's about all I know right now. smiling

Posted on August 30, 2012 at 2:30 PM

Trouble compiling NME on Mac OS X Lion

I'm trying to follow the instructions here.

I did "sudo haxelib dev nme /usr/lib/haxe/lib/nme/nekonme-read-only" and it seems to have worked. Haxelib list shows that as the dev directory.

Now I try "sudo nme rebuild tools" and get: "This command can only be run from a development build of NME".

How to fix please? smiling

Posted on August 29, 2012 at 11:15 PM

Re: Non-game Applications?

I am currently building a "media framework" which can be used for e-books or interactive tours. I will post code on GitHub once I think anyone will find it useful.

Posted on August 09, 2012 at 12:28 PM

Re: Accessibility in Jeash

In that case, it appears that mirroring Flash's AccessibilityProperties class would be best. Then whatever got put into the "name" and "description" properties would result in an HTML equivalent when using Jeash.

Posted on August 08, 2012 at 10:55 PM

Accessibility in Jeash

Would it be much of a job to be able to specify some fallback content for the canvas elements that get created in Jeash? For example, when you create a Sprite, perhaps an additional attribute could specify what's rendered in the HTML.

var s=new Sprite();
s.accessible='Sorry, you are blind!';

Posted on July 31, 2012 at 2:55 PM

Re: Why NME?

I agree with the aforementioned advantages. I think I would sum it up by saying that I see Haxe/NME as the perfect "next step" for an ActionScript developer. I can dive in as far as I want and if for some strange reason I ever need to go back (it's never happened), I can just compile back to AS3. I don't use NME for everything, but boy I sure need good reason to NOT use it when it has the HTML5 target and others.

Posted on July 06, 2012 at 10:25 PM

Re: Embed an NME application in another?

Thanks a lot! I think this pretty much summarises how I feel about all that:http://www.youtube.com/watch?v=Vh78T--ZUxY...

Posted on March 15, 2012 at 11:01 AM

Dead code elimination?

I was noticing on this page that there is a command-line option "--dead-code-elimination" for reducing file bloat in Jeash. Is there an easy way to use this when using the HTML5 target?

Posted on March 14, 2012 at 4:49 PM

Re: Embed an NME application in another?

At this point I'm considering using the multicore version of PureMVC to keep things organised. Either that or just target Flash/HTML5 and have separate HTML pages for different content (then worry about a mobile app at a later date).

Posted on March 12, 2012 at 11:47 AM

Re: Embed an NME application in another?

Thanks! Even knowing it's NOT possible helps me to determine my options. smiling

Posted on March 12, 2012 at 10:28 AM

Embed an NME application in another?

Like the title, I am wondering if it is possible to have NME load another NME application into itself, like how a Flash SWF can load an independent SWF into itself. I am trying to build a slideshow of sorts for multiple targets (HTML5, Flash, iOS) where some slides are interactive and I only want their assets and logic loaded when requested.

Posted on March 09, 2012 at 9:55 AM

Auto-complete

To get auto-complete working I had to go into FDT preferences>haXe and input the paths to haXe and neko SDKs.

/usr/lib/haxe
/usr/lib/neko

Posted on January 17, 2012 at 11:53 AM

Re: Ant task for NME, for use in FDT or FlashBuilder

Sorry, no further tips at this time—I'm having the same issues.

I first used FDT about a year ago for a haXe project. I kind of poked along not knowing all the features it offered for AS3. Then I did a major AS3 project over the summer and learned what coding should be like ideally. Now I'm getting back into haXe and it's pretty painful. I'll post more if I have anything. smiling

Posted on January 14, 2012 at 8:42 PM

Re: Problem with rebuilding libraries

Thanks, that works now. That page said "In order to compile the binaries for each C++ target, you will also need to check-out the 'sdl-static' repository ". Because I did not intend to use C++ I did not install it before.

Posted on January 12, 2012 at 11:35 AM

Problem with rebuilding libraries

I followed the instructions on this page and when I got to the build command "haxelib run hxcpp Build.xml" I get a pile of errors related to Freetype:

./common/FreeType.cpp:5:22: error: ft2build.h: No such file or directory
./common/FreeType.cpp:6:10: error: #include expects "FILENAME" or
etc.

Help is appreciated!

Posted on January 12, 2012 at 11:11 AM

ANT task

I tried the shell script and got:
Called from InstallTool.hx line 609
Uncaught exception - load.c(232) : Failed to load library : nme.ndll (dlopen(nme.ndll, 1): image not found)

Check out my ANT task I posted here.

Posted on January 12, 2012 at 10:48 AM

Re: Ant task for NME, for use in FDT or FlashBuilder

And excuse me, I meant FlashDevelop, not Flash Builder. Glad it helped someone.

Posted on January 10, 2012 at 4:06 AM

Ant task for NME, for use in FDT or FlashBuilder

Hi all,

This is also on the haXe Google group so sorry for the re-post. I made this simple Ant file which calls NME tests. Hopefully someone will find it useful as a starting point for more complex purposes. I'm using it so I don't have to visit the Terminal.

Open the file below into your text editor. Change the "nmePath" and "nmmlFile" properties to match your situation. If you're on a Mac, the nmePath should be okay.

Save the file in your project directory (I used "src/ant/NME-Build.xml") and then go to the FDT Ant tab and click the little "add buildfiles" button to select the file. Once that's done you can see "NME-Build" in the tasks list, plus a list of targets. Double-click the targets to make the magic happen.

Attachments: NME-Build.xml
Posted on January 09, 2012 at 1:50 PM