Re: [FALCONJX] Using external JavaScript

2014-06-19 Thread Erik de Bruin
I was wrong: 'external-js-lib' contents are mapped to the '--externs' compiler option. So no need to change FalconJX, it looks like. Peter, do you have a small project that I can use to debug this issue? EdB On Wed, Jun 18, 2014 at 8:41 PM, Erik de Bruin e...@ixsoftware.nl wrote: Hi,

Re: [FALCONJX] Using external JavaScript

2014-06-19 Thread Erik de Bruin
Also, the 'official' externs voor Google Maps API v3 is here: https://github.com/google/closure-compiler/blob/master/contrib/externs/maps/google_maps_api_v3_11.js EdB On Thu, Jun 19, 2014 at 1:39 PM, Erik de Bruin e...@ixsoftware.nl wrote: I was wrong: 'external-js-lib' contents are mapped

Re: [FALCONJX] Using external JavaScript

2014-06-19 Thread Peter Ent
Thanks, Eric. I will try this shortly and let you know. --peter On 6/19/14 7:42 AM, Erik de Bruin e...@ixsoftware.nl wrote: Also, the 'official' externs voor Google Maps API v3 is here: https://github.com/google/closure-compiler/blob/master/contrib/externs/map s/google_maps_api_v3_11.js EdB

Re: [FALCONJX] Using external JavaScript

2014-06-19 Thread Peter Ent
Eric, I don't have a small project to do this with because... Let's say you want to use google.maps.MarkerOptions in your FlexJS app. There should be a corresponding ActionScript class in the FlexJS SDK. *Maybe* you can have this in your local project, but I think Falcon will just generate a JS

[FALCONJX] Using external JavaScript

2014-06-18 Thread Peter Ent
Hi, I'm running an experiment where I want to use external JavaScript declarations so that the compiler won't care that a JavaScript class isn't available at compile time. I've created a file called externs.js and into that I've put this declaration: google.maps.MarkerOptions = function() {};

Re: [FALCONJX] Using external JavaScript

2014-06-18 Thread Erik de Bruin
Hi, Externs need to be declared to the GCC with a special argument. I don't think the option you're using passes the file to that argument. I think FalconJX needs a new option. I'll look at it tomorrow. Can you maybe file a JIRA so we have a reference? EdB On Wednesday, June 18, 2014, Peter

Re: [FALCONJX] Using external JavaScript

2014-06-18 Thread Alex Harui
I suggested that Peter try -external-js-lib from looking at the publisher code. But it is a good question: Peter, if you don't have that file and param, do you get different results? If you add the param and don't specify a correct path to a file do you get an error? -Alex On 6/18/14 11:41 AM,

Re: [FALCONJX] Using external JavaScript

2014-06-18 Thread Peter Ent
I get the same error with or without the parameter. I don't get an error when I specify an invalid file name. I do get an error if I misspell the parameter, so external-js-lib seems to be valid, perhaps just not used. --peter On 6/18/14 2:49 PM, Alex Harui aha...@adobe.com wrote: I suggested

Re: [FALCONJX] Using external JavaScript

2014-06-18 Thread Alex Harui
Try this file: https://github.com/google/closure-compiler/blob/master/contrib/externs/goog le_maps_api_v2.js If that doesn't work, then we definitely have a bug in the compiler. -Alex On 6/18/14 12:11 PM, Peter Ent p...@adobe.com wrote: I get the same error with or without the parameter. I

Re: [FALCONJX] Using external JavaScript

2014-06-18 Thread Peter Ent
Hmm, On the off-chance that the -external-js-lib parameter worked with a URL, I supplied with the one below. No luck of course, but I did get an error saying that the file could not be read. So I downloaded the .js and ran it again. I got the same error about not being able to find