[FalconJX] -js-output-type=node

2016-01-11 Thread Josh Tynjala
FalconJX just got Node.js support today. //--- begin HelloNode.as package { public class HelloNode { public function HelloNode() { trace("Hello Node!"); trace(process.version); } } } var process:Object = require("process"); //--- end

Re: [FalconJX] -js-output-type=node

2016-01-11 Thread OmPrakash Muppirala
Whoaaa! On Mon, Jan 11, 2016 at 5:25 PM, Josh Tynjala wrote: > FalconJX just got Node.js support today. > > //--- begin HelloNode.as > > package > { > public class HelloNode > { > public function HelloNode() > { > trace("Hello Node!");

Re: [FalconJX] -js-output-type=node

2016-01-11 Thread Alex Harui
Sweet! On 1/11/16, 8:26 PM, "Josh Tynjala" wrote: >You would need to use a utility like externc or dts2as, if you wanted to >get code suggestions in an IDE or strict type checking with the compiler. > >Out of the box, dynamic access will always work: > >var

Re: [FalconJX] -js-output-type=node

2016-01-11 Thread Josh Tynjala
You would need to use a utility like externc or dts2as, if you wanted to get code suggestions in an IDE or strict type checking with the compiler. Out of the box, dynamic access will always work: var example_module:Object = require("example"); You can access anything on example_module because