AW: AW: [Falcon] Declaring defines in config xml doesn't seem to work

2016-06-09 Thread Christofer Dutz

Hi Alex,


you were right ... the strange thing was that I looked at your "this instead of 
that" and couldn't notice the difference. Had to look at it 3 or 4 times to 
notice the missing "3" ... gee ... I seem to be blind for the details.


Just to quote a German saying: "As soon as you start doing it right, it starts 
working" ;-)


I also added the -include-lookup-only to the config options of the maven plugin 
and now the Flat project also produces the correct output in the catalog.xml.


Now I'm down to some examples not compiling ... but I'll try to sort this out 
on my own first ...


Chris





Von: Alex Harui 
Gesendet: Mittwoch, 8. Juni 2016 18:09:26
An: dev@flex.apache.org
Betreff: Re: AW: [Falcon] Declaring defines in config xml doesn't seem to work



On 6/8/16, 8:46 AM, "Christofer Dutz"  wrote:

>Hi Alex,
>
>
>could it be possible that it doesn't work when doing the
>"js-compilation"? I added this to the compile-js-config.xml:

The cross-compile is also using compile-js-config and is working for me.
>
>
>COMPILE::JS
>true
>
>
>COMPILE::AS
>false
>
>
>
>But I get:
>
>Can not resolve config constant: 'AS3'
>COMPILE::AS3
>^
>
>So eventually it works in falcon itself, but doesn't in the FlexJS
>compiler?
>

Well, could it be that you have:
COMPILE::AS

instead of:

COMPILE::AS3


-Alex



Re: [FLEXJS] Named Configs for JS, JQuery, Node, and CreateJS

2016-06-09 Thread Harbs
Nice.

This should make things much easier. Good direction!

On Jun 8, 2016, at 12:34 PM, Alex Harui  wrote:

> Hi,
> 
> I just pushed changes to create more named configs for FlexJS.  I don't
> know how many folks were aware, but named configs can be used to more
> easily switch defaults at compile time.  If you've ever built both Web and
> AIR/Mobile apps, you were using named configs whether you knew it or not.
> 
> The compiler supports a +configname option.  The default configname is
> "flex" which is why, when building Web apps, the compiler uses
> flex-config.xml.  But when you compile an AIR app, especially if you use
> command-line launchers like amxmlc instead of mxmlc, your compile settings
> either specifically said to use air-config.xml, or used +configname=air to
> tell the compiler to use air-config.xml instead of flex-config.xml.
> 
> The changes I just pushed add more named configs, so you can use
> +configname=js to get the default compiler options for JS-only projects,
> or +configname=node to get default compiler options for NodeJS projects,
> and similar for JQuery and CreateJS projects.
> 
> By packaging defaults into named config files, it will hopefully make it
> easier for IDE vendors to keep up with changes to FlexJS.  Instead of each
> IDE vendor needing to know the full set of SWCs and other options for the
> various project types, they should now be able to tell the compiler to
> load one of these -config.xml files instead.  I'm hopeful, for example,
> that FDT will do such a thing.  We've been discussing it in this JIRA
> issue: http://bugs.powerflasher.com/jira/browse/FDT-3661
> 
> Thanks,
> -Alex
> 



Re: AW: AW: [Falcon] Declaring defines in config xml doesn't seem to work

2016-06-09 Thread Alex Harui


On 6/9/16, 1:49 AM, "Christofer Dutz"  wrote:

>
>Hi Alex,
>
>
>you were right ... the strange thing was that I looked at your "this
>instead of that" and couldn't notice the difference. Had to look at it 3
>or 4 times to notice the missing "3"

Yeah, I didn't notice it right away either.  FWIW, I've thought about
replacing COMPILE::AS3 with COMPILE::SWF since all the code is really AS3
and the flag maybe should dictate the output.  And then it would also
cause fewer folks to miss the '3'.  Thoughts?

-Alex



Re: [FLEXJS] Named Configs for JS, JQuery, Node, and CreateJS

2016-06-09 Thread Alex Harui


On 6/9/16, 4:25 AM, "Harbs"  wrote:

>Nice.
>
>This should make things much easier. Good direction!

Thanks.  There are some limitations because the naming scheme is
one-dimensional.  For example, I did not create a cordova-config.xml
because you might actually use Jquery as the UI framework in a Cordova app
and/or Google Maps in the same app and then we'd need every combination of
configname (jquery-cordova-googlemaps-config.xml)

Also, it occurred to me that now that we have named configs, we can
re-think some of how the externs SWCs are configured.  For example, the
node-config.xml references js.swc, but I'm now wondering if we should
break out the browser APIs from js.swc into a browser.swc so anyone doing
node work won't be offered Window/Document/MouseEvent in the
code-assistance.  Then we can make such changes behind the named-configs
and affect fewer people.

Thoughts?
-Alex



Re: [FLEXJS] Named Configs for JS, JQuery, Node, and CreateJS

2016-06-09 Thread Josh Tynjala
It occurred to me too that a separate SWC for browser APIs would make
sense, since Node should only need a subset of JS types from js.swc. I
think it's a good idea.

- Josh

On Thu, Jun 9, 2016 at 8:17 AM, Alex Harui  wrote:

>
>
> On 6/9/16, 4:25 AM, "Harbs"  wrote:
>
> >Nice.
> >
> >This should make things much easier. Good direction!
>
> Thanks.  There are some limitations because the naming scheme is
> one-dimensional.  For example, I did not create a cordova-config.xml
> because you might actually use Jquery as the UI framework in a Cordova app
> and/or Google Maps in the same app and then we'd need every combination of
> configname (jquery-cordova-googlemaps-config.xml)
>
> Also, it occurred to me that now that we have named configs, we can
> re-think some of how the externs SWCs are configured.  For example, the
> node-config.xml references js.swc, but I'm now wondering if we should
> break out the browser APIs from js.swc into a browser.swc so anyone doing
> node work won't be offered Window/Document/MouseEvent in the
> code-assistance.  Then we can make such changes behind the named-configs
> and affect fewer people.
>
> Thoughts?
> -Alex
>
>


Re: [FLEXJS] Named Configs for JS, JQuery, Node, and CreateJS

2016-06-09 Thread jude
Is it possible to use local config files? So using your example, we could
create a ../src/jquery-cordova-googlemaps-config.xml config in your project?

On Thu, Jun 9, 2016 at 10:22 AM, Josh Tynjala  wrote:

> It occurred to me too that a separate SWC for browser APIs would make
> sense, since Node should only need a subset of JS types from js.swc. I
> think it's a good idea.
>
> - Josh
>
> On Thu, Jun 9, 2016 at 8:17 AM, Alex Harui  wrote:
>
> >
> >
> > On 6/9/16, 4:25 AM, "Harbs"  wrote:
> >
> > >Nice.
> > >
> > >This should make things much easier. Good direction!
> >
> > Thanks.  There are some limitations because the naming scheme is
> > one-dimensional.  For example, I did not create a cordova-config.xml
> > because you might actually use Jquery as the UI framework in a Cordova
> app
> > and/or Google Maps in the same app and then we'd need every combination
> of
> > configname (jquery-cordova-googlemaps-config.xml)
> >
> > Also, it occurred to me that now that we have named configs, we can
> > re-think some of how the externs SWCs are configured.  For example, the
> > node-config.xml references js.swc, but I'm now wondering if we should
> > break out the browser APIs from js.swc into a browser.swc so anyone doing
> > node work won't be offered Window/Document/MouseEvent in the
> > code-assistance.  Then we can make such changes behind the named-configs
> > and affect fewer people.
> >
> > Thoughts?
> > -Alex
> >
> >
>


Re: AW: AW: [Falcon] Declaring defines in config xml doesn't seem to work

2016-06-09 Thread jude
+1 for COMPILE::SWF

On Thu, Jun 9, 2016 at 10:10 AM, Alex Harui  wrote:

>
>
> On 6/9/16, 1:49 AM, "Christofer Dutz"  wrote:
>
> >
> >Hi Alex,
> >
> >
> >you were right ... the strange thing was that I looked at your "this
> >instead of that" and couldn't notice the difference. Had to look at it 3
> >or 4 times to notice the missing "3"
>
> Yeah, I didn't notice it right away either.  FWIW, I've thought about
> replacing COMPILE::AS3 with COMPILE::SWF since all the code is really AS3
> and the flag maybe should dictate the output.  And then it would also
> cause fewer folks to miss the '3'.  Thoughts?
>
> -Alex
>
>


Re: [FLEXJS] Named Configs for JS, JQuery, Node, and CreateJS

2016-06-09 Thread Alex Harui


On 6/9/16, 9:47 AM, "jude"  wrote:

>Is it possible to use local config files? So using your example, we could
>create a ../src/jquery-cordova-googlemaps-config.xml config in your
>project?

For sure. You can create bunches of -config.xml files and specify them
with -load-config, but you can only use +configname once.  And also, the
compiler automatically loads {project-name}-config.xml if there is one.

-Alex



Re: [FLEXJS] Named Configs for JS, JQuery, Node, and CreateJS

2016-06-09 Thread Josh Tynjala
I didn't know about {project-name}-config.xml. That could be really useful.
{project-name} would be the name of the main class you pass to the compiler
right, so if I had HelloWorld.as, it would be HelloWorld-config.xml?

- Josh

On Thu, Jun 9, 2016 at 12:47 PM, Alex Harui  wrote:

>
>
> On 6/9/16, 9:47 AM, "jude"  wrote:
>
> >Is it possible to use local config files? So using your example, we could
> >create a ../src/jquery-cordova-googlemaps-config.xml config in your
> >project?
>
> For sure. You can create bunches of -config.xml files and specify them
> with -load-config, but you can only use +configname once.  And also, the
> compiler automatically loads {project-name}-config.xml if there is one.
>
> -Alex
>
>


Re: [FLEXJS] Named Configs for JS, JQuery, Node, and CreateJS

2016-06-09 Thread Alex Harui


On 6/9/16, 12:53 PM, "Josh Tynjala"  wrote:

>I didn't know about {project-name}-config.xml. That could be really
>useful.
>{project-name} would be the name of the main class you pass to the
>compiler
>right, so if I had HelloWorld.as, it would be HelloWorld-config.xml?

Yes.  In flex-sdk, in the frameworks/tests/basicTests folder is an example.

-Alex



AW: AW: AW: [Falcon] Declaring defines in config xml doesn't seem to work

2016-06-09 Thread Christofer Dutz
+1



Von meinem Samsung Galaxy Smartphone gesendet.


 Ursprüngliche Nachricht 
Von: jude 
Datum: 09.06.16 18:50 (GMT+01:00)
An: dev 
Betreff: Re: AW: AW: [Falcon] Declaring defines in config xml doesn't seem to 
work

+1 for COMPILE::SWF

On Thu, Jun 9, 2016 at 10:10 AM, Alex Harui  wrote:

>
>
> On 6/9/16, 1:49 AM, "Christofer Dutz"  wrote:
>
> >
> >Hi Alex,
> >
> >
> >you were right ... the strange thing was that I looked at your "this
> >instead of that" and couldn't notice the difference. Had to look at it 3
> >or 4 times to notice the missing "3"
>
> Yeah, I didn't notice it right away either.  FWIW, I've thought about
> replacing COMPILE::AS3 with COMPILE::SWF since all the code is really AS3
> and the flag maybe should dictate the output.  And then it would also
> cause fewer folks to miss the '3'.  Thoughts?
>
> -Alex
>
>


[FlexJS] Hello World

2016-06-09 Thread Tom Dowdell
Hi,

It's my first day using Builder, Flex and FlexJS -- I have zero experience
with Adobe development. Following the great instructions here (
https://cwiki.apache.org/confluence/display/FLEX/Using+FlexJS+with+Adobe+Flash+Builder)
I was able to get "Hello World" running pretty quickly but am confused by
two things:

- When I launch the html in a browser it uses the flash plug-in. I saw this
in the html...not sure if related:
*"SWFObject's dynamic embed method replaces this alternative HTML content
with Flash content when enough *
* JavaScript and Flash plug-in support is available. The div is
initially hidden so that it doesn't show*
* when JavaScript is disabled." *

- Check out the error in the console window. Not sure what to do about it.

Any clarity you can provide would be appreciated.

[image: Inline image 1]

Thanks,

Tom


Re: [FlexJS] Hello World

2016-06-09 Thread Alex Harui
The image didn't come through for me.  Please post a link to the image instead.

Thanks,
-Alex

From: Tom Dowdell mailto:tomcat.dowd...@gmail.com>>
Reply-To: "dev@flex.apache.org" 
mailto:dev@flex.apache.org>>
Date: Thursday, June 9, 2016 at 2:52 PM
To: "dev@flex.apache.org" 
mailto:dev@flex.apache.org>>
Subject: [FlexJS] Hello World

Hi,

It's my first day using Builder, Flex and FlexJS -- I have zero experience with 
Adobe development. Following the great instructions here 
(https://cwiki.apache.org/confluence/display/FLEX/Using+FlexJS+with+Adobe+Flash+Builder)
 I was able to get "Hello World" running pretty quickly but am confused by two 
things:

- When I launch the html in a browser it uses the flash plug-in. I saw this in 
the html...not sure if related:
"SWFObject's dynamic embed method replaces this alternative HTML content with 
Flash content when enough
 JavaScript and Flash plug-in support is available. The div is 
initially hidden so that it doesn't show
 when JavaScript is disabled."

- Check out the error in the console window. Not sure what to do about it.

Any clarity you can provide would be appreciated.

[Inline image 1]

Thanks,

Tom



Re: [Falcon] Declaring defines in config xml doesn't seem to work

2016-06-09 Thread Harbs
+1

On Jun 10, 2016, at 1:32 AM, Christofer Dutz  wrote:

> +1
> 
> 
> 
> Von meinem Samsung Galaxy Smartphone gesendet.
> 
> 
>  Ursprüngliche Nachricht 
> Von: jude 
> Datum: 09.06.16 18:50 (GMT+01:00)
> An: dev 
> Betreff: Re: AW: AW: [Falcon] Declaring defines in config xml doesn't seem to 
> work
> 
> +1 for COMPILE::SWF
> 
> On Thu, Jun 9, 2016 at 10:10 AM, Alex Harui  wrote:
> 
>> 
>> 
>> On 6/9/16, 1:49 AM, "Christofer Dutz"  wrote:
>> 
>>> 
>>> Hi Alex,
>>> 
>>> 
>>> you were right ... the strange thing was that I looked at your "this
>>> instead of that" and couldn't notice the difference. Had to look at it 3
>>> or 4 times to notice the missing "3"
>> 
>> Yeah, I didn't notice it right away either.  FWIW, I've thought about
>> replacing COMPILE::AS3 with COMPILE::SWF since all the code is really AS3
>> and the flag maybe should dictate the output.  And then it would also
>> cause fewer folks to miss the '3'.  Thoughts?
>> 
>> -Alex
>> 
>>