Re: [FlexJS] - Is FlexJS ready for production?

2017-02-14 Thread Carlos Rovira
Hi Lizhi, in order to get more usable your library I think it will need to be tested with Actual Apache FlexJS 0.8.0-SNAPSHOT and see what errors you find and try to fix it. People reported that trying to use it with actual FlexJS was not possible since it was generating errors. What do you think

Re: [FlexJS, MDL] Mixing Basic and MDL

2017-02-14 Thread Carlos Rovira
Hi 2017-02-14 7:05 GMT+01:00 yishayw : > Thanks for the explanation. I see your points, and it would probably be > better if we had an MDL like theme for the basic set so we don't have to > worry about layout and style conflicts. Pragmatically speaking, right now > our best bet is to re-use your

Re: [FlexJS] - Is FlexJS ready for production?

2017-02-14 Thread lizhi
I have downloaded the latest version many times. Has not found the problem.https://github.com/matrix3d/spriteflexjs/issues/10#issuecomment-279165933 This link is friends three days ago to download the 0.8 version, but also successfully compiled through. I think spriteflexjs does not have compilati

Re: [FlexJS] - Is FlexJS ready for production?

2017-02-14 Thread Carlos Rovira
Hi Lizhi, I'll try to get some time to download spriteflexjs and mavenize it to try and report here. thanks 2017-02-14 11:13 GMT+01:00 lizhi : > > I have downloaded the latest version many times. Has not found the > problem.https://github.com/matrix3d/spriteflexjs/issues/ > 10#issuecomment-2791

Re: [FlexJS] - Is FlexJS ready for production?

2017-02-14 Thread lizhi
thank you too. i do not test on the mvn. but it is baseon the bat. https://github.com/matrix3d/spriteflexjs/wiki/how-run - spriteflexjs.com -- View this message in context: http://apache-flex-development.247.n4.nabble.com/FlexJS-Is-FlexJS-ready-for-production-tp59129p59381.html Sent fr

Re: [FlexJS] MDL Build Failing in Ant

2017-02-14 Thread yishayw
That was it. Thanks. -- View this message in context: http://apache-flex-development.247.n4.nabble.com/FlexJS-MDL-Build-Failing-in-Ant-tp59303p59382.html Sent from the Apache Flex Development mailing list archive at Nabble.com.

Re: [FlexJS] background images not showing

2017-02-14 Thread Alex Harui
On 2/13/17, 11:46 PM, "Justin Mclean" wrote: >Hi, > >Can anyone confirm this is a bug? > > I’m getting the text showing but no image showing. I can see in the >network panel that the image is being downloaded. Is this for SWF or JS? I don't think there is SWF-side support for backgroundImage.

Re: [FlexJS] - Is FlexJS ready for production?

2017-02-14 Thread Carlos Rovira
Hi Lizhi, I'm giving a try. The easiest way for me was trying to put the sprites folder in my flex-asjs framework/projects folder and create a pom.xml similar to other libraries there. Then maven requires "main/flex" structure. As I try to compile I get a lots of errors. That's normal for now sin

Re: [FlexJS] CompressionUtils (linking scripts)

2017-02-14 Thread Alex Harui
On 2/13/17, 11:51 PM, "Harbs" wrote: >Fair enough… ;-) > >The problem is creating libraries which can be used both in the browser >and in Node. > >Unless we add another set of swcs for Node with a new COMPILE::NODE >conditional, I don’t see how we can generalize FlexJS to be usable for >both. >

Re: [FlexJS] - Is FlexJS ready for production?

2017-02-14 Thread Josh Tynjala
You'll need to reference the js.swc typedefs. - Josh On Tue, Feb 14, 2017 at 7:52 AM, Carlos Rovira < carlos.rov...@codeoscopic.com> wrote: > Hi Lizhi, > > I'm giving a try. > > The easiest way for me was trying to put the sprites folder in my flex-asjs > framework/projects folder and create a p

Re: [FlexJS] CompressionUtils (linking scripts)

2017-02-14 Thread Josh Tynjala
The compiler supports special [JSModule] metadata for Node so that it emits the correct require() calls. It might be possible to make use of this for projects that target Node and other contexts. The compiler will probably need some tweaks, though. Here's an example: package { [JSModule] publ

Re: [FlexJS] MDL List problems

2017-02-14 Thread sankar
Hi, Why the List component missing features like roll-over and selection? I know these features wasn't available to original MDL library List component too, but isn't this a bit odd? A general List component is very unlike to not have these usual features! Is there any beads or some CSS can add

Re: [FlexJS] Setting background colour at run time fails

2017-02-14 Thread Peter Ent
I'm going to try to incorporate this discussion into the Express package; seems like a great candidate for inclusion there. Peter Ent Adobe Systems/Apache Flex Project On 2/14/17, 12:54 AM, "Alex Harui" wrote: > > >On 2/13/17, 9:40 PM, "Justin Mclean" wrote: > >>Hi, >> >>> IMO, that isn't PAYG

Re: [FlexJS] Spacers and positioning

2017-02-14 Thread Peter Ent
You can use CSS Flexbox[1] on the JS side to handle these situations. I'm thinking about making a layout that makes it possible to specify Flexbox and have some/all of it work on the SWF side as well. Its a bit of work but I think it will be worth it. If anyone is interested in helping, let me kno

Re: [FlexJS] MDL List problems

2017-02-14 Thread Josh Tynjala
I recently used MDL in a non-FlexJS project. Here's how I changed the list item background color on roll over using CSS: a:hover.mdl-list__item { background: #f0f0f0; } I assume that you can do something similar with FlexJS. - Josh On Tue, Feb 14, 2017 at 8:40 AM, sankar wrote: > Hi, > >

Re: [FlexJS] maven faling (WeakMap)

2017-02-14 Thread piotrz
Guys, Build is still failing [1]. Can we do something with this? [1] http://apacheflexbuild.cloudapp.net:8080/job/flex-asjs/ Piotr - Apache Flex PMC piotrzarzyck...@gmail.com -- View this message in context: http://apache-flex-development.247.n4.nabble.com/FlexJS-maven-faling-WeakMa

Re: [FlexJS] CompressionUtils (linking scripts)

2017-02-14 Thread Harbs
> On Feb 14, 2017, at 6:00 PM, Alex Harui wrote: > > An Emitter could change the goog.requires in every file, and even use a > different require system like RequireJS. This might be a good solution. The initial compilation could be optimized for Node (and just require() all the assets) and it

Re: [FlexJS] MDL List problems

2017-02-14 Thread Carlos Rovira
Hi sankar, I think MDL needs more love since I think there's so much things that could be added or enhanced. Piotr and I did a first version as complete as possible based on what actual MDL 1.3.0 version. As well tried to set up structures like List or Table as Flex need (based on dataProvider and

Re: [FlexJS] maven faling (WeakMap)

2017-02-14 Thread piotrz
Alex, I will try to exclude this class from asdoc. Piotr - Apache Flex PMC piotrzarzyck...@gmail.com -- View this message in context: http://apache-flex-development.247.n4.nabble.com/FlexJS-maven-faling-WeakMap-tp59270p59395.html Sent from the Apache Flex Development mailing list arch

Re: [FlexJS] background images not showing

2017-02-14 Thread Justin Mclean
Hi, > Is this for SWF or JS? For JS. Assume any FlexJS codeI post is for JS, if I was targeting AS I’d used the FlexSDK. > For both platforms, you may need to set width/height on the View. As I said the text shows just not the images, so there's some width/height there. Can the parent view be

Re: [FlexJS] Setting background colour at run time fails

2017-02-14 Thread piotrz
I'm reading and reading this thread and still cannot understand how actually BindableCSSStyles should be used ? Can someone show me working example ? Another thing let say that I have this working example - BindableCSSStyles emits ValueChange event and how it is possible that UIBase is listening t

Re: [FlexJS] maven faling (WeakMap)

2017-02-14 Thread piotrz
When I'm looking into ObjectMap class it doesn't look like our AS3 class - I would change names of all methods "get", "set", "delete" etc. My exclude ObjectMap from build didn't work. Piotr - Apache Flex PMC piotrzarzyck...@gmail.com -- View this message in context: http://apache-flex-de

Re: [FlexJS] Setting background colour at run time fails

2017-02-14 Thread Peter Ent
I had to figure it out as well and looked at FlexJSStore. You use to add this to a component, like a Container: Then you use the id to change it: borderStyles.backgroundColor = "#CC"; I can't get it to work, though. I'm not sure what the "Bindable" part is yet. Doing background

Re: [FlexJS] Setting background colour at run time fails

2017-02-14 Thread piotrz
Peter, I see this in that way BindableCSSStyles is a simple VO class, with Bindable tags on their properties. If we wanted to be working we need to use some Bead "ContainerDataBinding" etc. But documentation is saying: "The BindableCSSStyles class contains CSS style properties supported by Simple

[FlexJS] COMPILE::SWF and COMPILE::JS

2017-02-14 Thread Justin Mclean
Hi, Can anyone tell me why this code: http://ns.adobe.com/mxml/2009"; xmlns:js="library://ns.apache.org/flexjs/basic" applicationComplete="init()"> Produces this code: /** * @export */ Co

Re: [FlexJS] Setting background colour at run time fails

2017-02-14 Thread Peter Ent
When you change one of the properties of BindableCSSStyles it dispatches a valueChange event. You need to make a bead, like SolidBackgroundBead (which is SWF only) listen for this event and then redraw itself using the new style(s) that were changed. I am hoping that the JS side "just works" but I

Re: [FlexJS] Setting background colour at run time fails

2017-02-14 Thread Alex Harui
Yes, there are bugs and missing pieces. BindableCSSStyles lets you use binding expressions to detect changes in styles. BindableCSSStyles emits binding events when a value changes. Then you have to trigger the right reaction to the event. In FlexJSStore, there is a LayoutChangeNotifier

Re: [FlexJS] Setting background colour at run time fails

2017-02-14 Thread piotrz
Thanks Alex, Peter. I just also experimented it a bit, so now I understand what is happening. Peter, One thought I think BindableCSSStyles do not need anymore extend EventDispatcher in order to works in your Bead. Try remove it. Piotr - Apache Flex PMC piotrzarzyck...@gmail.com -- View t

Re: [FlexJS] Setting background colour at run time fails

2017-02-14 Thread Peter Ent
Yes, writing a special bead for detecting changes to the styles and applying them does work. I have a SolidBackgroundWithChangeListenerBead that listens for the valueChange event and applies it. It needs some error handling and packaging into the HTML framework so I will do that tomorrow. I will al

Re: [FlexJS] background colour bug

2017-02-14 Thread Justin Mclean
Hi, This bug is in applyStyles in SimpleCSSCalueImpl.as, the applyStyles method have a list of styles it expect to see colour values in (colorStyles) but it’s looking for “”backgroundColor" not "background-color”. Thanks, Justin

Re: [FlexJS] - Is FlexJS ready for production?

2017-02-14 Thread Carlos Rovira
Hi Josh, thanks for the tip. I tried to add it to the pom: org.apache.flex.flexjs.typedefs flexjs-typedefs-js 0.8.0-SNAPSHOT swc typedefs but compilation fails in the same way. I'm a bit lost here :? 2017-02-14 17:04 GMT+01:00 Josh Tynjala : > You'll need

Re: [FlexJS] COMPILE::SWF and COMPILE::JS

2017-02-14 Thread Alex Harui
How are you setting these options? Maven, Ant, command-line, IDE? -Alex On 2/14/17, 1:44 PM, "Justin Mclean" wrote: >Hi, > >Can anyone tell me why this code: > > >http://ns.adobe.com/mxml/2009"; >xmlns:js="library://ns.apache.org/flexjs/basic" >applicationComple

Re: [FlexJS] COMPILE::SWF and COMPILE::JS

2017-02-14 Thread Justin Mclean
HI, > How are you setting these options? Maven, Ant, command-line, IDE? Maven using the boilerplate archtype, generated like so: mvn -s /Users/justinmclean/Documents/FlexJSTest/settings-template.xml archetype:generate -DarchetypeGroupId=org.apache.flex.flexjs.framework -DarchetypeArtifactId=f

Re: [FlexJS] COMPILE::SWF and COMPILE::JS

2017-02-14 Thread Alex Harui
I'm not sure Maven is set up to handle these flags properly for applications. In theory, we want app developers to not need to use these flags. -Alex On 2/14/17, 4:17 PM, "Justin Mclean" wrote: >HI, > >> How are you setting these options? Maven, Ant, command-line, IDE? > >Maven using the boil

Re: [FlexJS] COMPILE::SWF and COMPILE::JS

2017-02-14 Thread Justin Mclean
Hi, > I'm not sure Maven is set up to handle these flags properly for applications. Chris what's needed to support this? Is it possible? > In theory, we want app developers to not need to use these flags. Currently AFAIKS an application developer needs these as there several AS only component

[4.16.0] # Apache Flex SDK 4.16.0 nightly build 234: Successful

2017-02-14 Thread flex . ci . builds
flex-sdk_release-candidate - Build #234 - Successful Changes since last build: No changes For more information, check the console output at http://apacheflexbuild.cloudapp.net:8080/job/flex-sdk_release-candidate/234/.

Re: [FlexJS] COMPILE::SWF and COMPILE::JS

2017-02-14 Thread Alex Harui
On 2/14/17, 4:42 PM, "Justin Mclean" wrote: >Hi, > >> I'm not sure Maven is set up to handle these flags properly for >>applications. > >Chris what's needed to support this? Is it possible? Of course it is possible. In the dual branch I am setting up the compiler to handle COMPILE::SWF,AUTO.

Re: [FlexJS] maven faling (WeakMap)

2017-02-14 Thread piotrz
Harbs, This is my proposition for naming - taken from C# Dictionary: delete -> Remove(key) get -> GetValue(key) set -> Add(key, value) has(key) -> ContainsKey(key) I see that there is no method for checking whether value exists, maybe it is an good opportunity to have it: ContainsValue(value) cl

Re: [FlexJS] maven faling (WeakMap)

2017-02-14 Thread piotrz
Harbs, If you agree and won't have free cycles today I can do the changes. Sankar is waiting for Ant build to test my fixes for -> https://issues.apache.org/jira/browse/FLEX-35256 Piotr - Apache Flex PMC piotrzarzyck...@gmail.com -- View this message in context: http://apache-flex-develop

Re: [FlexJS] MDL List problems

2017-02-14 Thread sankar
Hi Carlos, Yes, I do understand what you and Piotr did already, is fantastic. Availability of kind of stuff to FlexJS scene to render HTML, is just marvelous. I also understand that it's only done it's first phase of development and things like features can be added as we progress. I already in

Re: [FlexJS] - Is FlexJS ready for production?

2017-02-14 Thread lizhi
I do not understand mvn, but suggest that you can try my command line, it is very simple, only one line - spriteflexjs.com -- View this message in context: http://apache-flex-development.247.n4.nabble.com/FlexJS-Is-FlexJS-ready-for-production-tp59129p59417.html Sent from the Apache Fl

RE: [FlexJS] COMPILE::SWF and COMPILE::JS

2017-02-14 Thread Yishay Weiss
We haven’t needed conditional compilation in our ported app so far. What cases have you run into? From: Justin Mclean Sent: Wednesday, February 15, 2017 2:42 AM To: dev@flex.apache.org Subject: Re: [FlexJS] COMPILE::SWF and COMPILE::J

Re: [FlexJS] - Is FlexJS ready for production?

2017-02-14 Thread Carlos Rovira
Hi Lizhi, if we want the software could be widely used we can't rely on a setup that would not take into account more scenarios. Take into account that IT departments use more stablished tools, and maven is one heavily used For example, at my company, if there's no maven support, then there's no w

Re: [FlexJS] - Is FlexJS ready for production?

2017-02-14 Thread Carlos Rovira
btw, forgot to mention, that after introduce licensing and other things, I still stuck trying to compile things like "CanvasRenderingContext2D" or "HTMLCanvasElement" someone can give a clue? Thanks! 2017-02-15 8:24 GMT+01:00 Carlos Rovira : > Hi Lizhi, > > if we want the software could be wi