RE: [FlexJS] About Component Cycle and Events

2016-12-15 Thread Yishay Weiss
I see your point about overrides. It looks like set strand() is not the place 
to load partner beads. If that’s the case, is it a bug that 
ContainerView.strand calls createViewport() which loads the model and the 
viewport?



From: Alex Harui
Sent: Thursday, December 15, 2016 9:30 AM
To: dev@flex.apache.org
Subject: Re: [FlexJS] About Component Cycle and Events




On 12/14/16, 10:25 PM, "Yishay Weiss"  wrote:
>
>That was my intent, load it when necessary. My point was that there was
>no reason to attach event handlers when you need the bead, you can just
>check for its existence and load it if necessary.

I just took a look at strandutils.  Sure it packages up a common pattern
(check for bead, load bead from values manager), but I'm not understanding
how it would work if called from within the strand setter.  For example,
if in MXML, someone did:


  



I don't think SomeBead can use StrandUtils.  The desired partner bead is
about to be added to the strand right after SomeBead as an override for
the default partner bead that would be fetched from ValuesManager.  You
could require that overrides have to be before the other partner bead, but
some beads are peers and you can't really specify the order.

I think that's why we recommend using an event.  Once all beads are added,
you get an event if you want it, and can get events when beads are added
"later".

-Alex



Re: [FlexJS] Getting started code example snippets!

2016-12-15 Thread Evyatar Ben Halevi-Arbib
Hey,

Looking good, but I think these wiki pages must include a working example,
as it currently all seems only theoretical.
Good luck!

Regards,
Evyatar

On Thu, Dec 15, 2016 at 6:13 AM, Josh Tynjala  wrote:

> Hi, FlexJS community!
>
> In order to make it easier for developers everywhere to get started
> building apps with FlexJS components, I started putting together some
> simple code examples. I'm talking about the most foundational things that
> you might want to do with each different component, like setting data,
> listening to events, and setting common styles.
>
> Here's an example of one of the pages that I created. It shows how to use
>  from the FlexJS basic component set:
>
> https://cwiki.apache.org/confluence/display/FLEX/List
>
> For more components in the FlexJS basic set, visit the following page:
>
> https://cwiki.apache.org/confluence/display/FLEX/FlexJS+Basic+components
>
> Not every component has its own page yet, and this collection of examples
> will definitely be expanded over time. Everything needs to start somewhere,
> though. Even if this isn't a complete guide yet, I wanted to share it
> sooner rather than later!
>
> Josh Tynjala
>


Re: Moonshine 1.3.0 Release

2016-12-15 Thread yishayw
Window is stuck at the top of the screen, can't move it, or use the menu
buttons. Running windows. Is this the place to report this?

http://screencast.com/t/pHhBMO5xnxHm





--
View this message in context: 
http://apache-flex-development.247.n4.nabble.com/Moonshine-1-3-0-Release-tp57223p57284.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.


Re: [FLEXJS] ASDoc App

2016-12-15 Thread Christofer Dutz
Hi Alex,

great to hear that ... being someone who still thinks the static API 
documentation is important, I would like to work on a maven site mojo to 
generate that static stuff. I am very experienced with XSLT, so that shouldn’t 
be a problem. You mentioned, that the Falcon compiler outputs XML ... where is 
that output to and what do I need to do to make him generate that?

Chris

Am 14.12.16, 18:38 schrieb "Alex Harui" :

Hi,

Today I finally got enough of a FlexJS ASDoc app running to mention it on
the list, in hope that other folks can pitch in to help us finish it and
help prove that FlexJS can help folks do something useful, as well as make
it easier for folks to write code with FlexJS.

Normally, our ASDoc is published as a pile of HTML files.  The regular
Flex MXMLC compiler has code that generates a pile of XML files and then
MXMLC calls into the Saxon library to apply XSLT to generate the HTML.
The Falcon codebase didn't have any of this code, but instead of copying
in the code and the Saxon dependency from flex-sdk, I chose to take a
completely different approach because I think that ASDoc for FlexJS may
need to be more interactive.  There are so many more classes that have
different categorizations and different usage contexts that I want to
provide more sophisticated filtering, so users can filter down to, for
instance, "top-level components", or "view beads", etc.  This is certainly
possible to do with a pile of HTML, but that would require that I and
anyone else who wants to help to learn or know XSLT.  It makes more sense
to me to use ActionScript and MXML instead since everyone in this
community knows that.  And turning this into a production-quality app
would force us to develop some new code that other folks will probably
want.

The source code is checked into the flex-asjs repo under
examples\flexjs\ASDoc.  The apacheflexbuild CI server will re-build the
ASDoc app on any change to the flex-asjs repo, so you can see your results
here [1][2].  If you run it now, you'll see its pretty ugly.  All I wanted
to get working was the ability to parse the underlying JSON files, which I
think is mostly working.  It would be great to see folks pitch in to:
-make it look better
-use links for the base classes
-provide an "All classes" and "index"
-provide filters
-localization?
-maven build
-deep linking
-search engine support

And tons of other improvements.  Just compare it to the current ASDoc to
see what is missing.  My vision for filtering would be to allow folks to
check off a list of attributes that correlate to asdoc tags.  We could
annotate all top-level components with @toplevel, and beads with @bead
and/or @viewbead and the app would offer the list of known tags and you
could check which ones you want to see or hide.  I'll probably implement
the beginnings of that after I catch up on some other issues, but you
don't have to wait for me.

Hope you can find time to help,
-Alex

[1] SWF version: 
http://apacheflexbuild.cloudapp.net:8080/job/FlexJS%20ASDoc%20Example/lastS
uccessfulBuild/artifact/examples/flexjs/ASDoc/bin-debug/ASDoc.html
[2] JS Debug: 
http://apacheflexbuild.cloudapp.net:8080/job/FlexJS%20ASDoc%20Example/lastS
uccessfulBuild/artifact/examples/flexjs/ASDoc/bin/js-debug/index.html

Note, the js-release version may not run since the code is currently using
lots of plain objects.







Re: [FLEXJS] ASDoc App

2016-12-15 Thread Christofer Dutz
If there now is a „asdoc.jar“ created by the ant build, the proper way to do 
this in Maven would be to create a „asdoc“ module. Creating multiple jars from 
one codebase is usually an indicator for the need to refactor.

Chris

Am 14.12.16, 19:10 schrieb "Alex Harui" :



On 12/14/16, 10:00 AM, "carlos.rov...@gmail.com on behalf of Carlos
Rovira"  wrote:

>Hi Alex,
>
>great work! :)
>
>I updated the pom.xml and uploaded, but doesn't has any content yet at the
>momento (but compilation is working in js) :)

Yeah, the simple part of adding the pom to compile the sources I know how
to do.  There are two pieces that I would rather someone else do:

1) There is now an asdoc.jar from flex-falcon/compiler-jx.  This needs to
be integrated into the Maven build for flex-falcon and the jar deployed as
a Maven artifact
2) The Ant script not only build the ASDoc app, it then calls the
asdoc.jar to generate a pile of JSON files from the flex-asjs sources.  I
have no idea how to do that in Maven.  I think that might require another
mojo.

Thanks,
-Alex





RE: Attached document

2016-12-15 Thread Kessler CTR Mark J
Please don't open random documents sent as email attachments.   Especially ones 
marked macro enabled.


-Mark





Re: [FlexJS] Compilation error - difficult to debug

2016-12-15 Thread Christofer Dutz
Hi Carlos,

unfortunately this type of problem often originates from some of the problems 
in Falcon. Falcon hadles the case in which code and configuration is correct 
nicely. I reported the presence of a lot of problems in Falcon when compiling 
not correct code as a large number of execution paths in the compiler for 
example are guaranteed to produce NullPointerExceptions if not compiling 
correct code. Tracking down these errors is quite frustrating as due to the NPE 
the context gets lost (I had to do that quite a lot in order to get the initial 
Maven version of the build running). 

I still think working on these issues is not a waste of time.

Chris


Am 14.12.16, 19:42 schrieb "carlos.rov...@gmail.com im Auftrag von Carlos 
Rovira" :

Just created one:

FLEX-35218 - FlexJS Errors unable to debug


2016-12-14 2:38 GMT+01:00 Alex Harui :

> File a bug with a test case.
>
> On 12/13/16, 5:23 PM, "carlos.rov...@gmail.com on behalf of Carlos Rovira"
>  wrote:
>
> >> >
> >> >Could not find file for class:
> >> >org.apache.flex.html.beads.models.ToggleButtonModel
> >> >File not found: org.apache.flex.html.beads.models.ToggleButtonModel
> >>
> >> This file in not in one of the SWCs in the project, but some code needs
> >>it.
> >
> >
> >
> >But that's not the problem Alex. The change I introduced from one
> >successful compilation to one failing is this line in the new TextNode.as
> >
> >var e:HTMLElement = textNode.parentNode;
> >e.innerHTML = text;
> >
> >If I introuduced that and compiler reports that something wrong goes with
> >ToggleButtonModel is clear that something wrong is going in some 
internals
> >in falcon...
>
>


-- 

Carlos Rovira
Director General
M: +34 607 22 60 05
http://www.codeoscopic.com
http://www.avant2.es

Este mensaje se dirige exclusivamente a su destinatario y puede contener
información privilegiada o confidencial. Si ha recibido este mensaje por
error, le rogamos que nos lo comunique inmediatamente por esta misma vía y
proceda a su destrucción.

De la vigente Ley Orgánica de Protección de Datos (15/1999), le comunicamos
que sus datos forman parte de un fichero cuyo responsable es CODEOSCOPIC
S.A. La finalidad de dicho tratamiento es facilitar la prestación del
servicio o información solicitados, teniendo usted derecho de acceso,
rectificación, cancelación y oposición de sus datos dirigiéndose a nuestras
oficinas c/ Paseo de la Habana 9-11, 28036, Madrid con la documentación
necesaria.




Re: [FlexJS] Getting started code example snippets!

2016-12-15 Thread Josh Tynjala
Hi Evyatar,

Can you explain to me in more detail what you mean by "working example"?
These pages contain actual code that you can copy-paste into a real project.

If you mean that you want an example project that you can compile and run,
several are included when you download FlexJS.

- Josh

On Dec 15, 2016 12:21 AM, "Evyatar Ben Halevi-Arbib" 
wrote:

> Hey,
>
> Looking good, but I think these wiki pages must include a working example,
> as it currently all seems only theoretical.
> Good luck!
>
> Regards,
> Evyatar
>
> On Thu, Dec 15, 2016 at 6:13 AM, Josh Tynjala 
> wrote:
>
> > Hi, FlexJS community!
> >
> > In order to make it easier for developers everywhere to get started
> > building apps with FlexJS components, I started putting together some
> > simple code examples. I'm talking about the most foundational things that
> > you might want to do with each different component, like setting data,
> > listening to events, and setting common styles.
> >
> > Here's an example of one of the pages that I created. It shows how to use
> >  from the FlexJS basic component set:
> >
> > https://cwiki.apache.org/confluence/display/FLEX/List
> >
> > For more components in the FlexJS basic set, visit the following page:
> >
> > https://cwiki.apache.org/confluence/display/FLEX/FlexJS+Basic+components
> >
> > Not every component has its own page yet, and this collection of examples
> > will definitely be expanded over time. Everything needs to start
> somewhere,
> > though. Even if this isn't a complete guide yet, I wanted to share it
> > sooner rather than later!
> >
> > Josh Tynjala
> >
>


Re: [FlexJS] Compilation error - difficult to debug

2016-12-15 Thread Carlos Rovira
Hi Chris,

I assume that this is a compiler problem, so whatever build tool will be
affected by the same problem. Didn't try to build with ANT but I suppose
that this will make the same effect that MAVEN. I think as well that this
kind of errors needs to be addressed since is the main point of our
position "use our languages and compilers and you will get info about
what's happening without the need of discovering yourself", and this
problem makes the developer with the task of make that discovering himself
so not getting nothing better than using HTML/JS directly.

Thanks

Carlos


2016-12-15 12:09 GMT+01:00 Christofer Dutz :

> Hi Carlos,
>
> unfortunately this type of problem often originates from some of the
> problems in Falcon. Falcon hadles the case in which code and configuration
> is correct nicely. I reported the presence of a lot of problems in Falcon
> when compiling not correct code as a large number of execution paths in the
> compiler for example are guaranteed to produce NullPointerExceptions if not
> compiling correct code. Tracking down these errors is quite frustrating as
> due to the NPE the context gets lost (I had to do that quite a lot in order
> to get the initial Maven version of the build running).
>
> I still think working on these issues is not a waste of time.
>
> Chris
>
>
> Am 14.12.16, 19:42 schrieb "carlos.rov...@gmail.com im Auftrag von Carlos
> Rovira"  carlos.rov...@codeoscopic.com>:
>
> Just created one:
>
> FLEX-35218 - FlexJS Errors unable to debug
> 
>
> 2016-12-14 2:38 GMT+01:00 Alex Harui :
>
> > File a bug with a test case.
> >
> > On 12/13/16, 5:23 PM, "carlos.rov...@gmail.com on behalf of Carlos
> Rovira"
> > 
> wrote:
> >
> > >> >
> > >> >Could not find file for class:
> > >> >org.apache.flex.html.beads.models.ToggleButtonModel
> > >> >File not found: org.apache.flex.html.beads.
> models.ToggleButtonModel
> > >>
> > >> This file in not in one of the SWCs in the project, but some code
> needs
> > >>it.
> > >
> > >
> > >
> > >But that's not the problem Alex. The change I introduced from one
> > >successful compilation to one failing is this line in the new
> TextNode.as
> > >
> > >var e:HTMLElement = textNode.parentNode;
> > >e.innerHTML = text;
> > >
> > >If I introuduced that and compiler reports that something wrong
> goes with
> > >ToggleButtonModel is clear that something wrong is going in some
> internals
> > >in falcon...
> >
> >
>
>
> --
>
> Carlos Rovira
> Director General
> M: +34 607 22 60 05
> http://www.codeoscopic.com
> http://www.avant2.es
>
> Este mensaje se dirige exclusivamente a su destinatario y puede
> contener
> información privilegiada o confidencial. Si ha recibido este mensaje
> por
> error, le rogamos que nos lo comunique inmediatamente por esta misma
> vía y
> proceda a su destrucción.
>
> De la vigente Ley Orgánica de Protección de Datos (15/1999), le
> comunicamos
> que sus datos forman parte de un fichero cuyo responsable es
> CODEOSCOPIC
> S.A. La finalidad de dicho tratamiento es facilitar la prestación del
> servicio o información solicitados, teniendo usted derecho de acceso,
> rectificación, cancelación y oposición de sus datos dirigiéndose a
> nuestras
> oficinas c/ Paseo de la Habana 9-11, 28036, Madrid con la documentación
> necesaria.
>
>
>


-- 

Carlos Rovira
Director General
M: +34 607 22 60 05
http://www.codeoscopic.com
http://www.avant2.es

Este mensaje se dirige exclusivamente a su destinatario y puede contener
información privilegiada o confidencial. Si ha recibido este mensaje por
error, le rogamos que nos lo comunique inmediatamente por esta misma vía y
proceda a su destrucción.

De la vigente Ley Orgánica de Protección de Datos (15/1999), le comunicamos
que sus datos forman parte de un fichero cuyo responsable es CODEOSCOPIC
S.A. La finalidad de dicho tratamiento es facilitar la prestación del
servicio o información solicitados, teniendo usted derecho de acceso,
rectificación, cancelación y oposición de sus datos dirigiéndose a nuestras
oficinas c/ Paseo de la Habana 9-11, 28036, Madrid con la documentación
necesaria.


Re: [FlexJS] Compilation error - difficult to debug

2016-12-15 Thread Josh Tynjala
Indeed, Chris, those definitely aren't a waste of time, and no one would
disagree with this. When the compiler errors with a stack trace, that's a
serious bug and should be reported on JIRA ASAP.

- Josh


On Dec 15, 2016 3:09 AM, "Christofer Dutz" 
wrote:

Hi Carlos,

unfortunately this type of problem often originates from some of the
problems in Falcon. Falcon hadles the case in which code and configuration
is correct nicely. I reported the presence of a lot of problems in Falcon
when compiling not correct code as a large number of execution paths in the
compiler for example are guaranteed to produce NullPointerExceptions if not
compiling correct code. Tracking down these errors is quite frustrating as
due to the NPE the context gets lost (I had to do that quite a lot in order
to get the initial Maven version of the build running).

I still think working on these issues is not a waste of time.

Chris


Am 14.12.16, 19:42 schrieb "carlos.rov...@gmail.com im Auftrag von Carlos
Rovira" :

Just created one:

FLEX-35218 - FlexJS Errors unable to debug


2016-12-14 2:38 GMT+01:00 Alex Harui :

> File a bug with a test case.
>
> On 12/13/16, 5:23 PM, "carlos.rov...@gmail.com on behalf of Carlos
Rovira"
>  wrote:
>
> >> >
> >> >Could not find file for class:
> >> >org.apache.flex.html.beads.models.ToggleButtonModel
> >> >File not found: org.apache.flex.html.beads.
models.ToggleButtonModel
> >>
> >> This file in not in one of the SWCs in the project, but some code
needs
> >>it.
> >
> >
> >
> >But that's not the problem Alex. The change I introduced from one
> >successful compilation to one failing is this line in the new
TextNode.as
> >
> >var e:HTMLElement = textNode.parentNode;
> >e.innerHTML = text;
> >
> >If I introuduced that and compiler reports that something wrong goes
with
> >ToggleButtonModel is clear that something wrong is going in some
internals
> >in falcon...
>
>


--

Carlos Rovira
Director General
M: +34 607 22 60 05
http://www.codeoscopic.com
http://www.avant2.es

Este mensaje se dirige exclusivamente a su destinatario y puede contener
información privilegiada o confidencial. Si ha recibido este mensaje por
error, le rogamos que nos lo comunique inmediatamente por esta misma
vía y
proceda a su destrucción.

De la vigente Ley Orgánica de Protección de Datos (15/1999), le
comunicamos
que sus datos forman parte de un fichero cuyo responsable es CODEOSCOPIC
S.A. La finalidad de dicho tratamiento es facilitar la prestación del
servicio o información solicitados, teniendo usted derecho de acceso,
rectificación, cancelación y oposición de sus datos dirigiéndose a
nuestras
oficinas c/ Paseo de la Habana 9-11, 28036, Madrid con la documentación
necesaria.


Re: [FlexJS] Compilation error - difficult to debug

2016-12-15 Thread Josh Tynjala
Indeed, Chris, those aren't a waste of time, and no one would disagree with
that. When the compiler errors with a stack trace, that's a serious bug and
should be reported on JIRA.

- Josh


On Dec 15, 2016 3:09 AM, "Christofer Dutz" 
wrote:

Hi Carlos,

unfortunately this type of problem often originates from some of the
problems in Falcon. Falcon hadles the case in which code and configuration
is correct nicely. I reported the presence of a lot of problems in Falcon
when compiling not correct code as a large number of execution paths in the
compiler for example are guaranteed to produce NullPointerExceptions if not
compiling correct code. Tracking down these errors is quite frustrating as
due to the NPE the context gets lost (I had to do that quite a lot in order
to get the initial Maven version of the build running).

I still think working on these issues is not a waste of time.

Chris


Am 14.12.16, 19:42 schrieb "carlos.rov...@gmail.com im Auftrag von Carlos
Rovira" :

Just created one:

FLEX-35218 - FlexJS Errors unable to debug


2016-12-14 2:38 GMT+01:00 Alex Harui :

> File a bug with a test case.
>
> On 12/13/16, 5:23 PM, "carlos.rov...@gmail.com on behalf of Carlos
Rovira"
>  wrote:
>
> >> >
> >> >Could not find file for class:
> >> >org.apache.flex.html.beads.models.ToggleButtonModel
> >> >File not found: org.apache.flex.html.beads.mod
els.ToggleButtonModel
> >>
> >> This file in not in one of the SWCs in the project, but some code
needs
> >>it.
> >
> >
> >
> >But that's not the problem Alex. The change I introduced from one
> >successful compilation to one failing is this line in the new
TextNode.as
> >
> >var e:HTMLElement = textNode.parentNode;
> >e.innerHTML = text;
> >
> >If I introuduced that and compiler reports that something wrong goes
with
> >ToggleButtonModel is clear that something wrong is going in some
internals
> >in falcon...
>
>


--

Carlos Rovira
Director General
M: +34 607 22 60 05
http://www.codeoscopic.com
http://www.avant2.es

Este mensaje se dirige exclusivamente a su destinatario y puede contener
información privilegiada o confidencial. Si ha recibido este mensaje por
error, le rogamos que nos lo comunique inmediatamente por esta misma
vía y
proceda a su destrucción.

De la vigente Ley Orgánica de Protección de Datos (15/1999), le
comunicamos
que sus datos forman parte de un fichero cuyo responsable es CODEOSCOPIC
S.A. La finalidad de dicho tratamiento es facilitar la prestación del
servicio o información solicitados, teniendo usted derecho de acceso,
rectificación, cancelación y oposición de sus datos dirigiéndose a
nuestras
oficinas c/ Paseo de la Habana 9-11, 28036, Madrid con la documentación
necesaria.


Re: [FlexJS, MDL] Color and Image in ContactChip bead

2016-12-15 Thread Carlos Rovira
Hi Pitor,

I had to remove color="teal" to compile and get:

AContact Chip

So If I understand right, the problem is duplicated mdl-color-teal right?

What I'm doing with class asignament and ensure I'm removing classes, is in
the setter, first remove the class with classList.remove (based on some var
and string composition), then update the var to the new value, and finaly
apply the class (with classList.add)





2016-12-15 7:38 GMT+01:00 piotrz :

> Hi Carlos,
>
> I have some concerns about MdlColor as an bead:
>
> 
> 
> 
> 
> 
> 
>
> In that case I wanted to that ContactChip bead will take MdlColor and apply
> to yourself.
> MdlColor is a bead which apply color to his Strand - in that case to Chip,
> so if I also use MdlColor and apply to ContactChip I end up with css class
> applied to Chip and ContactChip. - Take a look into pushed code.
> ContactChip
> - loadColorBead.
>
> Do you think that removing from Chip manually some classes if MdlColor
> exists + ContactChip is a good way ?
>
> Piotr
>
>
>
> -
> Apache Flex PMC
> piotrzarzyck...@gmail.com
> --
> View this message in context: http://apache-flex-
> development.247.n4.nabble.com/FlexJS-MDL-Color-and-
> Image-in-ContactChip-bead-tp56972p57280.html
> Sent from the Apache Flex Development mailing list archive at Nabble.com.
>



-- 

Carlos Rovira
Director General
M: +34 607 22 60 05
http://www.codeoscopic.com
http://www.avant2.es

Este mensaje se dirige exclusivamente a su destinatario y puede contener
información privilegiada o confidencial. Si ha recibido este mensaje por
error, le rogamos que nos lo comunique inmediatamente por esta misma vía y
proceda a su destrucción.

De la vigente Ley Orgánica de Protección de Datos (15/1999), le comunicamos
que sus datos forman parte de un fichero cuyo responsable es CODEOSCOPIC
S.A. La finalidad de dicho tratamiento es facilitar la prestación del
servicio o información solicitados, teniendo usted derecho de acceso,
rectificación, cancelación y oposición de sus datos dirigiéndose a nuestras
oficinas c/ Paseo de la Habana 9-11, 28036, Madrid con la documentación
necesaria.


Re: [FlexJS] Getting started code example snippets!

2016-12-15 Thread Evyatar Ben Halevi-Arbib
Hey,

I mean a working demo the page viewers can see and play with.
You have it many sites and it really helps understanding how should the
relevant component look & feel.

Regards,
Evyatar

On Thu, Dec 15, 2016 at 1:25 PM, Josh Tynjala  wrote:

> Hi Evyatar,
>
> Can you explain to me in more detail what you mean by "working example"?
> These pages contain actual code that you can copy-paste into a real
> project.
>
> If you mean that you want an example project that you can compile and run,
> several are included when you download FlexJS.
>
> - Josh
>
> On Dec 15, 2016 12:21 AM, "Evyatar Ben Halevi-Arbib" 
> wrote:
>
> > Hey,
> >
> > Looking good, but I think these wiki pages must include a working
> example,
> > as it currently all seems only theoretical.
> > Good luck!
> >
> > Regards,
> > Evyatar
> >
> > On Thu, Dec 15, 2016 at 6:13 AM, Josh Tynjala 
> > wrote:
> >
> > > Hi, FlexJS community!
> > >
> > > In order to make it easier for developers everywhere to get started
> > > building apps with FlexJS components, I started putting together some
> > > simple code examples. I'm talking about the most foundational things
> that
> > > you might want to do with each different component, like setting data,
> > > listening to events, and setting common styles.
> > >
> > > Here's an example of one of the pages that I created. It shows how to
> use
> > >  from the FlexJS basic component set:
> > >
> > > https://cwiki.apache.org/confluence/display/FLEX/List
> > >
> > > For more components in the FlexJS basic set, visit the following page:
> > >
> > > https://cwiki.apache.org/confluence/display/FLEX/
> FlexJS+Basic+components
> > >
> > > Not every component has its own page yet, and this collection of
> examples
> > > will definitely be expanded over time. Everything needs to start
> > somewhere,
> > > though. Even if this isn't a complete guide yet, I wanted to share it
> > > sooner rather than later!
> > >
> > > Josh Tynjala
> > >
> >
>


Re: [FlexJS] Getting started code example snippets!

2016-12-15 Thread Carlos Rovira
Great work Josh!

That was something I want to do in a blog or something, but didn't have the
time to work on. So great to have this just now! :)

I think Evyatar says that code would be more helpful if just a side we
could get the running version. I think that's right, and I was thinking on
have it too in the blog I mention but this requires more work to be done of
course...


2016-12-15 12:25 GMT+01:00 Josh Tynjala :

> Hi Evyatar,
>
> Can you explain to me in more detail what you mean by "working example"?
> These pages contain actual code that you can copy-paste into a real
> project.
>
> If you mean that you want an example project that you can compile and run,
> several are included when you download FlexJS.
>
> - Josh
>
> On Dec 15, 2016 12:21 AM, "Evyatar Ben Halevi-Arbib" 
> wrote:
>
> > Hey,
> >
> > Looking good, but I think these wiki pages must include a working
> example,
> > as it currently all seems only theoretical.
> > Good luck!
> >
> > Regards,
> > Evyatar
> >
> > On Thu, Dec 15, 2016 at 6:13 AM, Josh Tynjala 
> > wrote:
> >
> > > Hi, FlexJS community!
> > >
> > > In order to make it easier for developers everywhere to get started
> > > building apps with FlexJS components, I started putting together some
> > > simple code examples. I'm talking about the most foundational things
> that
> > > you might want to do with each different component, like setting data,
> > > listening to events, and setting common styles.
> > >
> > > Here's an example of one of the pages that I created. It shows how to
> use
> > >  from the FlexJS basic component set:
> > >
> > > https://cwiki.apache.org/confluence/display/FLEX/List
> > >
> > > For more components in the FlexJS basic set, visit the following page:
> > >
> > > https://cwiki.apache.org/confluence/display/FLEX/
> FlexJS+Basic+components
> > >
> > > Not every component has its own page yet, and this collection of
> examples
> > > will definitely be expanded over time. Everything needs to start
> > somewhere,
> > > though. Even if this isn't a complete guide yet, I wanted to share it
> > > sooner rather than later!
> > >
> > > Josh Tynjala
> > >
> >
>



-- 

Carlos Rovira
Director General
M: +34 607 22 60 05
http://www.codeoscopic.com
http://www.avant2.es

Este mensaje se dirige exclusivamente a su destinatario y puede contener
información privilegiada o confidencial. Si ha recibido este mensaje por
error, le rogamos que nos lo comunique inmediatamente por esta misma vía y
proceda a su destrucción.

De la vigente Ley Orgánica de Protección de Datos (15/1999), le comunicamos
que sus datos forman parte de un fichero cuyo responsable es CODEOSCOPIC
S.A. La finalidad de dicho tratamiento es facilitar la prestación del
servicio o información solicitados, teniendo usted derecho de acceso,
rectificación, cancelación y oposición de sus datos dirigiéndose a nuestras
oficinas c/ Paseo de la Habana 9-11, 28036, Madrid con la documentación
necesaria.


Re: [FlexJS] Removing bead

2016-12-15 Thread Carlos Rovira
Hi,

justo reading the problem, I think things for our users (devs) should be
more easy and don't expect they know he must remove something for two
places instead of one.
Could we have the beads storage unified? if not I think it could be very
hard to deal with

2016-12-15 6:08 GMT+01:00 Alex Harui :

>
>
> On 12/14/16, 8:59 PM, "Josh Tynjala"  wrote:
>
> >Would it keep something in memory that should be garbage collected,
> >though?
>
> Yes, sure.  If you remove a bead you declared in MXML you should search
> that array and remove it.  We could write a utility function that does
> that if folks do it often.
>
> If you gave the bead an id, you will have to null the slot for it as well.
>  If you are listening to an event on that bead via:
>
>   
>
> you have to remove that event listener (which is impossible in Flex, but
> possible in FlexJS).
>
> -Alex
>
>


-- 

Carlos Rovira
Director General
M: +34 607 22 60 05
http://www.codeoscopic.com
http://www.avant2.es

Este mensaje se dirige exclusivamente a su destinatario y puede contener
información privilegiada o confidencial. Si ha recibido este mensaje por
error, le rogamos que nos lo comunique inmediatamente por esta misma vía y
proceda a su destrucción.

De la vigente Ley Orgánica de Protección de Datos (15/1999), le comunicamos
que sus datos forman parte de un fichero cuyo responsable es CODEOSCOPIC
S.A. La finalidad de dicho tratamiento es facilitar la prestación del
servicio o información solicitados, teniendo usted derecho de acceso,
rectificación, cancelación y oposición de sus datos dirigiéndose a nuestras
oficinas c/ Paseo de la Habana 9-11, 28036, Madrid con la documentación
necesaria.


Re: Moonshine 1.3.0 Release

2016-12-15 Thread Peter Ent
My installation of Moonshine failed - twice.

I'm running macOS Sierra, 10.12.1.

The first time, I got the dialog saying Moonshine needed SDKs and to
install the Helper. The Helper downloaded and installed. Then Moonshine
reported it could not find any SDKs and put up a dialog box about using
Java 8. I made a mistake at this point: I went to copy the link presented
and accidentally erased it (this field should be read-only). I didn't know
what to do about that, so I uninstalled Moonshine and its Helper.

The second time, the Moonshine install and Helper went fine and this time,
I got a dialog with a list of SDKs. Moonshine then proceeded to download
them but failed to load Ant_1.9.7. I've copied the log below. I don't know
how critical ANT is to Moonshine's operation, but I'm forging ahead and
closing this installer window. I did manage to copy the path to Java 8 and
that worked.

Sorry.
‹peter

Using Locale: en_US
Fetched the SDK download mirror URL from the CGI.
SDK version Apache Flex SDK 4.15.0
AIR version 23.0
Flash Player version 23.0
Creating Apache Flex home
Creating temporary directory
Downloading Apache Flex SDK from:
http://www-us.apache.org/dist/flex/4.15.0/binaries/apache-flex-sdk-4.15.0-b
in.tar.gz
Verifying Apache Flex SDK MD5 Signature
The Apache Flex SDK MD5 Signature of the downloaded files matches the
reference. The file is valid.
Uncompressing: 
/Users/pent/Downloads/MoonshineSDKs/Flex_SDK/Flex_4.15.0_AIR_23.0/temp/apac
he-flex-sdk-4.15.0-bin.tar.gz
Finished uncompressing:
/Users/pent/Downloads/MoonshineSDKs/Flex_SDK/Flex_4.15.0_AIR_23.0/temp/apac
he-flex-sdk-4.15.0-bin.tar.gz
Downloading Adobe AIR Runtime Kit for Mac from:
http://airdownload.adobe.com/air/mac/download/23.0//AdobeAIRSDK.tbz2
Validating download:
/Users/pent/Downloads/MoonshineSDKs/Flex_SDK/Flex_4.15.0_AIR_23.0/in/AdobeA
IRSDK.tbz2
Finished untaring: 
/Users/pent/Downloads/MoonshineSDKs/Flex_SDK/Flex_4.15.0_AIR_23.0/in/airsdk
/AdobeAIRSDK.tar
Copying files from 
/Users/pent/Downloads/MoonshineSDKs/Flex_SDK/Flex_4.15.0_AIR_23.0/in/airsdk
/frameworks/libs/air to
/Users/pent/Downloads/MoonshineSDKs/Flex_SDK/Flex_4.15.0_AIR_23.0/framework
s/libs
Copying files from 
/Users/pent/Downloads/MoonshineSDKs/Flex_SDK/Flex_4.15.0_AIR_23.0/in/airsdk
/frameworks/projects/air to
/Users/pent/Downloads/MoonshineSDKs/Flex_SDK/Flex_4.15.0_AIR_23.0/framework
s/projects
Copying files from 
/Users/pent/Downloads/MoonshineSDKs/Flex_SDK/Flex_4.15.0_AIR_23.0/in/airsdk
/include to 
/Users/pent/Downloads/MoonshineSDKs/Flex_SDK/Flex_4.15.0_AIR_23.0
Copying files from 
/Users/pent/Downloads/MoonshineSDKs/Flex_SDK/Flex_4.15.0_AIR_23.0/in/airsdk
/lib/android to 
/Users/pent/Downloads/MoonshineSDKs/Flex_SDK/Flex_4.15.0_AIR_23.0/lib
Copying files from 
/Users/pent/Downloads/MoonshineSDKs/Flex_SDK/Flex_4.15.0_AIR_23.0/in/airsdk
/lib/aot to 
/Users/pent/Downloads/MoonshineSDKs/Flex_SDK/Flex_4.15.0_AIR_23.0/lib
Copying files from 
/Users/pent/Downloads/MoonshineSDKs/Flex_SDK/Flex_4.15.0_AIR_23.0/in/airsdk
/lib/nai to 
/Users/pent/Downloads/MoonshineSDKs/Flex_SDK/Flex_4.15.0_AIR_23.0/lib
Copying files from 
/Users/pent/Downloads/MoonshineSDKs/Flex_SDK/Flex_4.15.0_AIR_23.0/in/airsdk
/runtimes to 
/Users/pent/Downloads/MoonshineSDKs/Flex_SDK/Flex_4.15.0_AIR_23.0
Copying files from 
/Users/pent/Downloads/MoonshineSDKs/Flex_SDK/Flex_4.15.0_AIR_23.0/in/airsdk
/samples/badge to 
/Users/pent/Downloads/MoonshineSDKs/Flex_SDK/Flex_4.15.0_AIR_23.0/samples
Copying files from 
/Users/pent/Downloads/MoonshineSDKs/Flex_SDK/Flex_4.15.0_AIR_23.0/in/airsdk
/samples/icons to 
/Users/pent/Downloads/MoonshineSDKs/Flex_SDK/Flex_4.15.0_AIR_23.0/samples
Copying files from 
/Users/pent/Downloads/MoonshineSDKs/Flex_SDK/Flex_4.15.0_AIR_23.0/in/airsdk
/templates/air to 
/Users/pent/Downloads/MoonshineSDKs/Flex_SDK/Flex_4.15.0_AIR_23.0/templates
Copying files from 
/Users/pent/Downloads/MoonshineSDKs/Flex_SDK/Flex_4.15.0_AIR_23.0/in/airsdk
/templates/extensions to
/Users/pent/Downloads/MoonshineSDKs/Flex_SDK/Flex_4.15.0_AIR_23.0/templates
Copying files from 
/Users/pent/Downloads/MoonshineSDKs/Flex_SDK/Flex_4.15.0_AIR_23.0/in/airsdk
/templates/sdk to 
/Users/pent/Downloads/MoonshineSDKs/Flex_SDK/Flex_4.15.0_AIR_23.0/templates
Installing Adobe Flash Player playerglobal.swc from:
http://fpdownload.macromedia.com/get/flashplayer/updaters/23//playerglobal2
3_0.swc
Validating download:
/Users/pent/Downloads/MoonshineSDKs/Flex_SDK/Flex_4.15.0_AIR_23.0/framework
s/libs/player/23.0/playerglobal.swc
Downloading 2.2.zip from: https://github.com/swfobject/swfobject/archive
Validating download:
/Users/pent/Downloads/MoonshineSDKs/Flex_SDK/Flex_4.15.0_AIR_23.0/in/swfobj
ect_2_2.zip
Download complete
Downloading OSMF2_0.swc?format=raw from:
http://sourceforge.net/adobe/flexsdk/code/HEAD/tree/trunk/frameworks/libs
Validating download:
/Users/pent/Downloads/MoonshineSDKs/Flex_SDK/Flex_4.15.0_AIR_23.0/framework
s/libs/osmf.swc
Downloading afe.jar?format=raw from:
http://sourceforge.net/adobe/flexsdk/c

Re: [FlexJS] About Component Cycle and Events

2016-12-15 Thread Peter Ent
Having done a bunch of these, I'd like to propose something a little
controversial. 

A new class, BaseBead, from which all Beads derive (you can choose not to
do this in your custom beads, just implement IBead). BaseBead has:

public function set strand(value:IStrand):void {Š}
public function get strand():IStrand {Š}

public function strandReady():void
- your bead class overrides strandReady() which is called by the strand
setter function and in your override you set up your bead. If your bead
needs to be aware of other beads, override the next function:

public function beadsLoaded():void
- your bead class, if it needs to, overrides beadsLoaded() and completes
it set up. You can use strand.getBeadByType() to look for any other beads
your bead might need.

I separated the setting of the strand into two functions so that bead
authors have a clear path in that they always override strandReady and
optionally override beadsLoaded. This would give a consistent pattern to
bead loading and allow the underlaying bead framework to be changed in the
future. I don't think this will add much overhead to the PAYG plan, and I
think it will be easier for developers to know what to do if there is a
consistent set of steps to follow. These functions in BaseBead may be
minor, but it would save developers from having to do the same thing over
and over.

‹peter

On 12/15/16, 3:01 AM, "Yishay Weiss"  wrote:

>I see your point about overrides. It looks like set strand() is not the
>place to load partner beads. If that¹s the case, is it a bug that
>ContainerView.strand calls createViewport() which loads the model and the
>viewport?
>
>
>
>From: Alex Harui
>Sent: Thursday, December 15, 2016 9:30 AM
>To: dev@flex.apache.org
>Subject: Re: [FlexJS] About Component Cycle and Events
>
>
>
>
>On 12/14/16, 10:25 PM, "Yishay Weiss"  wrote:
>>
>>That was my intent, load it when necessary. My point was that there was
>>no reason to attach event handlers when you need the bead, you can just
>>check for its existence and load it if necessary.
>
>I just took a look at strandutils.  Sure it packages up a common pattern
>(check for bead, load bead from values manager), but I'm not understanding
>how it would work if called from within the strand setter.  For example,
>if in MXML, someone did:
>
>
>  
>
>
>
>I don't think SomeBead can use StrandUtils.  The desired partner bead is
>about to be added to the strand right after SomeBead as an override for
>the default partner bead that would be fetched from ValuesManager.  You
>could require that overrides have to be before the other partner bead, but
>some beads are peers and you can't really specify the order.
>
>I think that's why we recommend using an event.  Once all beads are added,
>you get an event if you want it, and can get events when beads are added
>"later".
>
>-Alex
>



Re: Moonshine 1.3.0 Release

2016-12-15 Thread Peter Ent
One more thing:

I just created the FlexJS browser app and picked Project->Build and Run.
The console shows this:


: Moonshine IDE 1.3.0
: Source is under Apache License, Version 2.0
: http://code.google.com/p/moonshineproject/
: Uses as3abc (LGPL), as3swf (MIT), fzip (ZLIB), asblocks (Apache 2),
NativeApplicationUpdater (LGPL)
: Running on Adobe AIR 22.0.0.153
: Dec 15, 2016 11:20:54 AM org.xsocket.connection.Server$LifeCycleHandler
onConnected 
: INFO: server listening on 0:0:0:0:0:0:0:0:58080 (xSocket 2.8.15)
 
: Compiling HelloWorld
: /bin/bash: /Users/pent/Apache/FlexJS0.6.0/bin/mxmlc: /bin/sh: bad
interpreter: Operation not permitted

Why would Moonshine opt to use an old version of the FlexJS SDK that's not
even in my path? Shouldn't it use the SDK it downloaded? Here's my
environment from a clean Terminal:

TERM_PROGRAM=Apple_Terminal
SHELL=/bin/bash
TERM=xterm-256color
TMPDIR=/var/folders/zx/2gkxjt093x3c97238xwqx270gn/T/
Apple_PubSub_Socket_Render=/private/tmp/com.apple.launchd.dab3bsWupH/Render
TERM_PROGRAM_VERSION=387
TERM_SESSION_ID=9E132E9D-53D2-40A0-8419-E405EBC3829D
ANT_HOME=/Users/pent/tools/apache-ant-1.8.4
ANT_OPTS=-Xmx256m -Djsse.enableSNIExtension=false
USER=pent
SSH_AUTH_SOCK=/private/tmp/com.apple.launchd.ATre0lHh7V/Listeners
__CF_USER_TEXT_ENCODING=0x1F5:0x0:0x0
PATH=/Users/pent/tools/apache-ant-1.8.4/bin:/usr/local/bin:/usr/bin:/bin:/u
sr/sbin:/sbin:/usr/local/MacGPG2/bin
PWD=/Users/pent
JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.7.0_75.jdk/Contents/Home
LANG=en_US.UTF-8
XPC_FLAGS=0x0
XPC_SERVICE_NAME=0
SHLVL=1
HOME=/Users/pent
LOGNAME=pent
_=/usr/bin/env




—peter

On 12/15/16, 11:21 AM, "Peter Ent"  wrote:

>My installation of Moonshine failed - twice.
>
>I'm running macOS Sierra, 10.12.1.
>
>The first time, I got the dialog saying Moonshine needed SDKs and to
>install the Helper. The Helper downloaded and installed. Then Moonshine
>reported it could not find any SDKs and put up a dialog box about using
>Java 8. I made a mistake at this point: I went to copy the link presented
>and accidentally erased it (this field should be read-only). I didn't know
>what to do about that, so I uninstalled Moonshine and its Helper.
>
>The second time, the Moonshine install and Helper went fine and this time,
>I got a dialog with a list of SDKs. Moonshine then proceeded to download
>them but failed to load Ant_1.9.7. I've copied the log below. I don't know
>how critical ANT is to Moonshine's operation, but I'm forging ahead and
>closing this installer window. I did manage to copy the path to Java 8 and
>that worked.
>
>Sorry.
>‹peter
>
>Using Locale: en_US
>Fetched the SDK download mirror URL from the CGI.
>SDK version Apache Flex SDK 4.15.0
>AIR version 23.0
>Flash Player version 23.0
>Creating Apache Flex home
>Creating temporary directory
>Downloading Apache Flex SDK from:
>http://www-us.apache.org/dist/flex/4.15.0/binaries/apache-flex-sdk-4.15.0-
>b
>in.tar.gz
>Verifying Apache Flex SDK MD5 Signature
>The Apache Flex SDK MD5 Signature of the downloaded files matches the
>reference. The file is valid.
>Uncompressing: 
>/Users/pent/Downloads/MoonshineSDKs/Flex_SDK/Flex_4.15.0_AIR_23.0/temp/apa
>c
>he-flex-sdk-4.15.0-bin.tar.gz
>Finished uncompressing:
>/Users/pent/Downloads/MoonshineSDKs/Flex_SDK/Flex_4.15.0_AIR_23.0/temp/apa
>c
>he-flex-sdk-4.15.0-bin.tar.gz
>Downloading Adobe AIR Runtime Kit for Mac from:
>http://airdownload.adobe.com/air/mac/download/23.0//AdobeAIRSDK.tbz2
>Validating download:
>/Users/pent/Downloads/MoonshineSDKs/Flex_SDK/Flex_4.15.0_AIR_23.0/in/Adobe
>A
>IRSDK.tbz2
>Finished untaring:
>/Users/pent/Downloads/MoonshineSDKs/Flex_SDK/Flex_4.15.0_AIR_23.0/in/airsd
>k
>/AdobeAIRSDK.tar
>Copying files from
>/Users/pent/Downloads/MoonshineSDKs/Flex_SDK/Flex_4.15.0_AIR_23.0/in/airsd
>k
>/frameworks/libs/air to
>/Users/pent/Downloads/MoonshineSDKs/Flex_SDK/Flex_4.15.0_AIR_23.0/framewor
>k
>s/libs
>Copying files from
>/Users/pent/Downloads/MoonshineSDKs/Flex_SDK/Flex_4.15.0_AIR_23.0/in/airsd
>k
>/frameworks/projects/air to
>/Users/pent/Downloads/MoonshineSDKs/Flex_SDK/Flex_4.15.0_AIR_23.0/framewor
>k
>s/projects
>Copying files from
>/Users/pent/Downloads/MoonshineSDKs/Flex_SDK/Flex_4.15.0_AIR_23.0/in/airsd
>k
>/include to 
>/Users/pent/Downloads/MoonshineSDKs/Flex_SDK/Flex_4.15.0_AIR_23.0
>Copying files from
>/Users/pent/Downloads/MoonshineSDKs/Flex_SDK/Flex_4.15.0_AIR_23.0/in/airsd
>k
>/lib/android to 
>/Users/pent/Downloads/MoonshineSDKs/Flex_SDK/Flex_4.15.0_AIR_23.0/lib
>Copying files from
>/Users/pent/Downloads/MoonshineSDKs/Flex_SDK/Flex_4.15.0_AIR_23.0/in/airsd
>k
>/lib/aot to 
>/Users/pent/Downloads/MoonshineSDKs/Flex_SDK/Flex_4.15.0_AIR_23.0/lib
>Copying files from
>/Users/pent/Downloads/MoonshineSDKs/Flex_SDK/Flex_4.15.0_AIR_23.0/in/airsd
>k
>/lib/nai to 
>/Users/pent/Downloads/MoonshineSDKs/Flex_SDK/Flex_4.15.0_AIR_23.0/lib
>Copying files from
>/Users/pent/Downloads/MoonshineSDKs/Flex_SDK/Flex_4.15.0_AIR_23.0/in/airsd
>k
>/runtimes to 
>/Users/pent/Downloads/Moo

Re: [FlexJS] About Component Cycle and Events

2016-12-15 Thread Alex Harui


On 12/15/16, 12:01 AM, "Yishay Weiss"  wrote:

>I see your point about overrides. It looks like set strand() is not the
>place to load partner beads. If that’s the case, is it a bug that
>ContainerView.strand calls createViewport() which loads the model and the
>viewport?
>

I purposefully chose terms like beads and strands because order matters,
otherwise I probably would have chosen something like rice and nigiri.  If
you plan to override the Viewport, you have to put it on the strand first.
 Beads specified in MXML are loaded before View beads.  So the strandutils
code is useful in many cases in a strand setter, but not all and I think
you will need to use an event to know when to run it.

-Alex



Re: [FlexJS] About Component Cycle and Events

2016-12-15 Thread Alex Harui


On 12/15/16, 8:22 AM, "Peter Ent"  wrote:

>Having done a bunch of these, I'd like to propose something a little
>controversial. 
>
>A new class, BaseBead, from which all Beads derive (you can choose not to
>do this in your custom beads, just implement IBead). BaseBead has:
>
>public function set strand(value:IStrand):void {Š}
>public function get strand():IStrand {Š}
>
>public function strandReady():void
>- your bead class overrides strandReady() which is called by the strand
>setter function and in your override you set up your bead. If your bead
>needs to be aware of other beads, override the next function:
>
>public function beadsLoaded():void
>- your bead class, if it needs to, overrides beadsLoaded() and completes
>it set up. You can use strand.getBeadByType() to look for any other beads
>your bead might need.
>
>I separated the setting of the strand into two functions so that bead
>authors have a clear path in that they always override strandReady and
>optionally override beadsLoaded. This would give a consistent pattern to
>bead loading and allow the underlaying bead framework to be changed in the
>future. I don't think this will add much overhead to the PAYG plan, and I
>think it will be easier for developers to know what to do if there is a
>consistent set of steps to follow. These functions in BaseBead may be
>minor, but it would save developers from having to do the same thing over
>and over.

Hmm. Maybe.  How would the base class know when and whether to call
beadsLoaded.  Having every bead listen for beadsAdded might add up to
something.

-Alex



Re: [FLEXJS] ASDoc App

2016-12-15 Thread Alex Harui


On 12/15/16, 2:59 AM, "Christofer Dutz"  wrote:

>Hi Alex,
>
>great to hear that ... being someone who still thinks the static API
>documentation is important, I would like to work on a maven site mojo to
>generate that static stuff. I am very experienced with XSLT, so that
>shouldn’t be a problem. You mentioned, that the Falcon compiler outputs
>XML ... where is that output to and what do I need to do to make him
>generate that?

I have the beginnings of a DITA emitter, but it needs finishing.  You are
welcome to finish it.  IMO, the project is better off not having new
dependencies on XSLT.  It is great that you are an expert at it, but it is
more important that we have redundancy in the community, so relying on
languages most of us know is better.  If you want to modify the ASDoc app
to generate HTML pages that's great as well, but I don't understand why
static pages are better than dynamic pages.  If your concern is search
engines, that is a problem we need to solve for every FlexJS app and the
answer hopefully isn't to generate a pile of HTML from your app.

My 2 cents,
-Alex



Re: [FLEXJS] ASDoc App

2016-12-15 Thread Alex Harui


On 12/15/16, 3:02 AM, "Christofer Dutz"  wrote:

>If there now is a „asdoc.jar“ created by the ant build, the proper way to
>do this in Maven would be to create a „asdoc“ module. Creating multiple
>jars from one codebase is usually an indicator for the need to refactor.

Well, you are welcome to propose another refactor.  In Ant, we still
output an mxmlc.jar and compc.jar.  These client jars are empty and just
have different entry points to the client classes in jsc.jar.  The ASDoc
JSON output is generated via a different emitter in compiler-jx.

-Alex



Re: [FlexJS] Compilation error - difficult to debug

2016-12-15 Thread Alex Harui
If one of you is planning to work on this issue, please assign the JIRA to
yourself.  Otherwise I will look into it.

-Alex

On 12/15/16, 3:33 AM, "Josh Tynjala"  wrote:

>Indeed, Chris, those aren't a waste of time, and no one would disagree
>with
>that. When the compiler errors with a stack trace, that's a serious bug
>and
>should be reported on JIRA.
>
>- Josh
>
>
>On Dec 15, 2016 3:09 AM, "Christofer Dutz" 
>wrote:
>
>Hi Carlos,
>
>unfortunately this type of problem often originates from some of the
>problems in Falcon. Falcon hadles the case in which code and configuration
>is correct nicely. I reported the presence of a lot of problems in Falcon
>when compiling not correct code as a large number of execution paths in
>the
>compiler for example are guaranteed to produce NullPointerExceptions if
>not
>compiling correct code. Tracking down these errors is quite frustrating as
>due to the NPE the context gets lost (I had to do that quite a lot in
>order
>to get the initial Maven version of the build running).
>
>I still think working on these issues is not a waste of time.
>
>Chris
>
>
>Am 14.12.16, 19:42 schrieb "carlos.rov...@gmail.com im Auftrag von Carlos
>Rovira" carlos.rov...@codeoscopic.com>:
>
>Just created one:
>
>FLEX-35218 - FlexJS Errors unable to debug
>
>
>2016-12-14 2:38 GMT+01:00 Alex Harui :
>
>> File a bug with a test case.
>>
>> On 12/13/16, 5:23 PM, "carlos.rov...@gmail.com on behalf of Carlos
>Rovira"
>> 
>wrote:
>>
>> >> >
>> >> >Could not find file for class:
>> >> >org.apache.flex.html.beads.models.ToggleButtonModel
>> >> >File not found: org.apache.flex.html.beads.mod
>els.ToggleButtonModel
>> >>
>> >> This file in not in one of the SWCs in the project, but some code
>needs
>> >>it.
>> >
>> >
>> >
>> >But that's not the problem Alex. The change I introduced from one
>> >successful compilation to one failing is this line in the new
>TextNode.as
>> >
>> >var e:HTMLElement = textNode.parentNode;
>> >e.innerHTML = text;
>> >
>> >If I introuduced that and compiler reports that something wrong
>goes
>with
>> >ToggleButtonModel is clear that something wrong is going in some
>internals
>> >in falcon...
>>
>>
>
>
>--
>
>Carlos Rovira
>Director General
>M: +34 607 22 60 05
>http://www.codeoscopic.com
>http://www.avant2.es
>
>Este mensaje se dirige exclusivamente a su destinatario y puede
>contener
>información privilegiada o confidencial. Si ha recibido este mensaje
>por
>error, le rogamos que nos lo comunique inmediatamente por esta misma
>vía y
>proceda a su destrucción.
>
>De la vigente Ley Orgánica de Protección de Datos (15/1999), le
>comunicamos
>que sus datos forman parte de un fichero cuyo responsable es
>CODEOSCOPIC
>S.A. La finalidad de dicho tratamiento es facilitar la prestación del
>servicio o información solicitados, teniendo usted derecho de acceso,
>rectificación, cancelación y oposición de sus datos dirigiéndose a
>nuestras
>oficinas c/ Paseo de la Habana 9-11, 28036, Madrid con la
>documentación
>necesaria.



Re: [FlexJS] Removing bead

2016-12-15 Thread Alex Harui


On 12/15/16, 4:04 AM, "carlos.rov...@gmail.com on behalf of Carlos Rovira"
 wrote:

>Hi,
>
>justo reading the problem, I think things for our users (devs) should be
>more easy and don't expect they know he must remove something for two
>places instead of one.
>Could we have the beads storage unified? if not I think it could be very
>hard to deal with

My point was that things specified in MXML are tricky to get rid of in
other ways as well.  If you have a proposal on how to do that without a
lot of overhead, please propose it.  And you are welcome to create a
component set with such overhead.  IMO, most things declared in MXML do
not get removed.

In particular, the Arrays are not watchable, so there is no way to know if
the beads Array gets modified, and I didn't want to introduce a watchable
Array just-in-case.  MXML knows about arrays so specifying a list of beads
didn't require new compiler work.

-Alex



Re: [FlexJS] About Component Cycle and Events

2016-12-15 Thread Peter Ent


On 12/15/16, 12:33 PM, "Alex Harui"  wrote:

>
>
>On 12/15/16, 8:22 AM, "Peter Ent"  wrote:
>
>>Having done a bunch of these, I'd like to propose something a little
>>controversial. 
>>
>>A new class, BaseBead, from which all Beads derive (you can choose not to
>>do this in your custom beads, just implement IBead). BaseBead has:
>>
>>public function set strand(value:IStrand):void {Š}
>>public function get strand():IStrand {Š}
>>
>>public function strandReady():void
>>- your bead class overrides strandReady() which is called by the strand
>>setter function and in your override you set up your bead. If your bead
>>needs to be aware of other beads, override the next function:
>>
>>public function beadsLoaded():void
>>- your bead class, if it needs to, overrides beadsLoaded() and completes
>>it set up. You can use strand.getBeadByType() to look for any other beads
>>your bead might need.
>>
>>I separated the setting of the strand into two functions so that bead
>>authors have a clear path in that they always override strandReady and
>>optionally override beadsLoaded. This would give a consistent pattern to
>>bead loading and allow the underlaying bead framework to be changed in
>>the
>>future. I don't think this will add much overhead to the PAYG plan, and I
>>think it will be easier for developers to know what to do if there is a
>>consistent set of steps to follow. These functions in BaseBead may be
>>minor, but it would save developers from having to do the same thing over
>>and over.
>
>Hmm. Maybe.  How would the base class know when and whether to call
>beadsLoaded.  Having every bead listen for beadsAdded might add up to
>something.

Yes, that's true. Maybe in strandReady() you set a boolean like
needsToWait which then triggers the BaseBead to set up the event listener.

>
>-Alex
>



Re: [FlexJS] Compilation error - difficult to debug

2016-12-15 Thread Josh Tynjala
I am currently working on updating Closure compiler in FalconJX.

- Josh

On Thu, Dec 15, 2016 at 9:54 AM, Alex Harui  wrote:

> If one of you is planning to work on this issue, please assign the JIRA to
> yourself.  Otherwise I will look into it.
>
> -Alex
>
> On 12/15/16, 3:33 AM, "Josh Tynjala"  wrote:
>
> >Indeed, Chris, those aren't a waste of time, and no one would disagree
> >with
> >that. When the compiler errors with a stack trace, that's a serious bug
> >and
> >should be reported on JIRA.
> >
> >- Josh
> >
> >
> >On Dec 15, 2016 3:09 AM, "Christofer Dutz" 
> >wrote:
> >
> >Hi Carlos,
> >
> >unfortunately this type of problem often originates from some of the
> >problems in Falcon. Falcon hadles the case in which code and configuration
> >is correct nicely. I reported the presence of a lot of problems in Falcon
> >when compiling not correct code as a large number of execution paths in
> >the
> >compiler for example are guaranteed to produce NullPointerExceptions if
> >not
> >compiling correct code. Tracking down these errors is quite frustrating as
> >due to the NPE the context gets lost (I had to do that quite a lot in
> >order
> >to get the initial Maven version of the build running).
> >
> >I still think working on these issues is not a waste of time.
> >
> >Chris
> >
> >
> >Am 14.12.16, 19:42 schrieb "carlos.rov...@gmail.com im Auftrag von Carlos
> >Rovira"  >carlos.rov...@codeoscopic.com>:
> >
> >Just created one:
> >
> >FLEX-35218 - FlexJS Errors unable to debug
> >
> >
> >2016-12-14 2:38 GMT+01:00 Alex Harui :
> >
> >> File a bug with a test case.
> >>
> >> On 12/13/16, 5:23 PM, "carlos.rov...@gmail.com on behalf of Carlos
> >Rovira"
> >> 
> >wrote:
> >>
> >> >> >
> >> >> >Could not find file for class:
> >> >> >org.apache.flex.html.beads.models.ToggleButtonModel
> >> >> >File not found: org.apache.flex.html.beads.mod
> >els.ToggleButtonModel
> >> >>
> >> >> This file in not in one of the SWCs in the project, but some code
> >needs
> >> >>it.
> >> >
> >> >
> >> >
> >> >But that's not the problem Alex. The change I introduced from one
> >> >successful compilation to one failing is this line in the new
> >TextNode.as
> >> >
> >> >var e:HTMLElement = textNode.parentNode;
> >> >e.innerHTML = text;
> >> >
> >> >If I introuduced that and compiler reports that something wrong
> >goes
> >with
> >> >ToggleButtonModel is clear that something wrong is going in some
> >internals
> >> >in falcon...
> >>
> >>
> >
> >
> >--
> >
> >Carlos Rovira
> >Director General
> >M: +34 607 22 60 05
> >http://www.codeoscopic.com
> >http://www.avant2.es
> >
> >Este mensaje se dirige exclusivamente a su destinatario y puede
> >contener
> >información privilegiada o confidencial. Si ha recibido este mensaje
> >por
> >error, le rogamos que nos lo comunique inmediatamente por esta misma
> >vía y
> >proceda a su destrucción.
> >
> >De la vigente Ley Orgánica de Protección de Datos (15/1999), le
> >comunicamos
> >que sus datos forman parte de un fichero cuyo responsable es
> >CODEOSCOPIC
> >S.A. La finalidad de dicho tratamiento es facilitar la prestación del
> >servicio o información solicitados, teniendo usted derecho de acceso,
> >rectificación, cancelación y oposición de sus datos dirigiéndose a
> >nuestras
> >oficinas c/ Paseo de la Habana 9-11, 28036, Madrid con la
> >documentación
> >necesaria.
>
>


Re: (FLEX-35212) [FlexJS] DataGrid requires a way to select it's row(s) automatically

2016-12-15 Thread Peter Ent
If I were to add in multi-selection, I think you need a dataProvider that
can hold the array of selections (ArraySelectionModel holds only a single
selected index) and add some new events maybe. The itemRenderer code
should not care about the number of selections, its really an issue for
the model.

‹peter

On 12/15/16, 12:39 AM, "Santanu Karar (JIRA)"  wrote:

>
>[ 
>https://issues.apache.org/jira/browse/FLEX-35212?page=com.atlassian.jira.p
>lugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15750451#com
>ment-15750451 ] 
>
>Santanu Karar commented on FLEX-35212:
>--
>
>Hello Peter. Thank you for this new feature, I surely test this very soon
>from nightly build.
>
>Regarding selecting multiple rows, custom bead extending which bead or
>adding a new bead you're referring to?
>
>> [FlexJS] DataGrid requires a way to select it's row(s) automatically
>> 
>>
>> Key: FLEX-35212
>> URL: https://issues.apache.org/jira/browse/FLEX-35212
>> Project: Apache Flex
>>  Issue Type: Improvement
>>Affects Versions: Apache FlexJS 0.8.0
>>Reporter: Santanu Karar
>>Assignee: Peter Ent
>> Fix For: Apache FlexJS 0.8.0
>>
>>
>> At present {{DataGrid.selectedIndex}} is a read-only property. We
>>probably need a way to select one or multiple rows at runtime to
>>DataGrid.
>
>
>
>--
>This message was sent by Atlassian JIRA
>(v6.3.4#6332)



Re: Moonshine 1.3.0 Release

2016-12-15 Thread JoelProminic
Hi Peter,

I retested the Java 8 text, and it looks like this field is read-only
already.  I did see a related issue where dragging downward makes the text
disappear (drag up to restore it).  If this does not match what you saw,
could you clarify what you did to delete the text?

If this happens to someone else, restarting Moonshine should restore the
prompt.

I think the issue with the Ant installation is because we are using a bad
download link or mirror.  I will report this for further review.

For the SDK issue, please check the configured SDK under Moonshine ->
Settings -> MXMLC Compiler -> Default Apache Flex SDK.   I suspect that this
s set to the FlexJS 0.6.0 SDK that you listed above, probably from a
previous instalation of Moonshine.  If I remember correctly, Moonshine will
only replace the Default SDK value if it was already set to one of the
automatically downloaded SDKs.  

Joel Anderson
My Apache Flex community contribution is working on the open source
Moonshine-IDE.com for FlexJS. 




--
View this message in context: 
http://apache-flex-development.247.n4.nabble.com/Moonshine-1-3-0-Release-tp57223p57309.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.


Re: Moonshine 1.3.0 Release

2016-12-15 Thread Peter Ent
Thanks for help, Joel. Making the modification of the loaded SDK did the
trick. I was able to run the HelloWorld example.

I will try to run Moonshine more often now.
‹peter

On 12/15/16, 3:33 PM, "JoelProminic"  wrote:

>Hi Peter,
>
>I retested the Java 8 text, and it looks like this field is read-only
>already.  I did see a related issue where dragging downward makes the text
>disappear (drag up to restore it).  If this does not match what you saw,
>could you clarify what you did to delete the text?
>
>If this happens to someone else, restarting Moonshine should restore the
>prompt.
>
>I think the issue with the Ant installation is because we are using a bad
>download link or mirror.  I will report this for further review.
>
>For the SDK issue, please check the configured SDK under Moonshine ->
>Settings -> MXMLC Compiler -> Default Apache Flex SDK.   I suspect that
>this
>s set to the FlexJS 0.6.0 SDK that you listed above, probably from a
>previous instalation of Moonshine.  If I remember correctly, Moonshine
>will
>only replace the Default SDK value if it was already set to one of the
>automatically downloaded SDKs.
>
>Joel Anderson
>My Apache Flex community contribution is working on the open source
>Moonshine-IDE.com for FlexJS.
>
>
>
>
>--
>View this message in context:
>http://apache-flex-development.247.n4.nabble.com/Moonshine-1-3-0-Relea
>se-tp57223p57309.html
>Sent from the Apache Flex Development mailing list archive at Nabble.com.



[FlexJS] Using @flexjsignorecoercion to inline JavaScript

2016-12-15 Thread Tim Diggle
Hi, I've been building some of the Flex JS samples and am particularly 
interested in the createjs samples. Looking at the component source, I notice 
that the @flexjsignorecoercion flag is used to allow createjs javascript calls 
to be made and the results attached to a WrappedHTMLElement. I was hoping we 
could use this directly in a Flex JS project to quickly prototype stuff before 
rolling it into a component - however even with the directive and the 
-keep-as-doc compiler setting, the compiler still complains about not 
recognizing the create js classes and imports. How is this overcome when the 
components are built, and where is the compiler looking to get the create is 
imports at that stage? Is it possible to inline the JavaScript directly in a 
project as described, or should we always follow the multiple compile steps to 
make a component swc to use these JavaScript libraries?

Many thanks

Tim

Re: [FlexJS] Build Failing

2016-12-15 Thread yishayw
Added [1] per you request.

[1] https://issues.apache.org/jira/browse/FLEX-35220



--
View this message in context: 
http://apache-flex-development.247.n4.nabble.com/FlexJS-Build-Failing-tp57179p57312.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.


Re: [FlexJS] Using @flexjsignorecoercion to inline JavaScript

2016-12-15 Thread Alex Harui
Hi Tim,

@flexjsignorecoercion only controls output after the parsing.  It skips
output of the JS for "as WrappedHTMLElement" so no coercion is done.  All
of the types need to be available for the parser.

The CreateJS.swc in frameworks/libs contains components that present
Flex-like APIs on top of CreateJS.  These components can be used in MXML.
The createjs.swc in js/libs contains the AS APIs for parts of CreateJS
(most of EaselJS and TweenJS).  These classes cannot be used in MXML, only
in AS.  This sounds like the swc you are missing.  It should be added to
the -external-library-path (not the -library-path).  If you have
connections to the CreateJS community, we'd love to get them more involved
and enable FlexJS to create any CreateJS app.

Thanks,
-Alex

On 12/15/16, 8:42 PM, "Tim Diggle"  wrote:

>Hi, I've been building some of the Flex JS samples and am particularly
>interested in the createjs samples. Looking at the component source, I
>notice that the @flexjsignorecoercion flag is used to allow createjs
>javascript calls to be made and the results attached to a
>WrappedHTMLElement. I was hoping we could use this directly in a Flex JS
>project to quickly prototype stuff before rolling it into a component -
>however even with the directive and the -keep-as-doc compiler setting,
>the compiler still complains about not recognizing the create js classes
>and imports. How is this overcome when the components are built, and
>where is the compiler looking to get the create is imports at that stage?
>Is it possible to inline the JavaScript directly in a project as
>described, or should we always follow the multiple compile steps to make
>a component swc to use these JavaScript libraries?
>
>Many thanks
>
>Tim