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 file for it. I *believe*, for this to work, the AS
version of this class should be in the FlexJS SDK.

So the first thing to do is modify the FlexJS SDK to include this class.
I've done that on my machine and I've now checked that into the repo. You
can use the flex-asjs/examples/MapSearch project to debug this; I've
modified that to reference this class.

Thanks for your help,
Peter 

On 6/19/14 7:39 AM, "Erik de Bruin" <e...@ixsoftware.nl> wrote:

>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,
>>
>> 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 Ent <p...@adobe.com> wrote:
>>
>>> 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() {};
>>>
>>> And then I build using this compiler option:
>>>-external-js-lib=externs.js
>>>
>>> I'm getting an error that google.maps.MarkerOptions cannot be found.
>>>Does
>>> anyone know if I'm declaring the class correctly in the externs.js
>>>file?
>>> I'm following information from [1]
>>> which doesn't really cover "classes" just external function
>>>declarations.
>>>
>>> Thanks,
>>> Peter Ent
>>> Adobe Systems
>>>
>>> [1]
>>> 
>>>https://developers.google.com/closure/compiler/docs/api-tutorial3#extern
>>>s
>>>
>>
>>
>> --
>> Ix Multimedia Software
>>
>> Jan Luykenstraat 27
>> 3521 VB Utrecht
>>
>> T. 06-51952295
>> I. www.ixsoftware.nl
>>
>
>
>
>-- 
>Ix Multimedia Software
>
>Jan Luykenstraat 27
>3521 VB Utrecht
>
>T. 06-51952295
>I. www.ixsoftware.nl

Reply via email to