AW: AW: [FLEXJS, TYPEDEFS]

2016-07-26 Thread Christofer Dutz
Hi Greg, I'm happy that you like the build so far :-) Justin and I am currently finishing up a 2 hour video tutorial on Maven, which I hope we will be able to publish soon. I guess that should get rid of this black-box-magic feeling you might be encountering at the moment ;-) And hanks for

Re: Changed svg namespace

2016-07-26 Thread Alex Harui
On 7/26/16, 5:02 PM, "omup...@gmail.com on behalf of OmPrakash Muppirala" wrote: >On Jul 26, 2016 11:47 AM, "Harbs" wrote: >> >> I agree there should be a Group object. >> >> The problem is that the way the classes are currently constructed is >>that >100 pixel “Rect" positioned at 100,100 act

Re: AW: [FLEXJS, TYPEDEFS]

2016-07-26 Thread Greg Dove
Chris, I also encountered similar issues with the frameworks build, and started adding extra tags for the rat {insert maven-esque word for "task"/plugin here} to ignore things like intellij files and swfobject etc in flex-asjs pom.xml **/*.iml **/.idea/** But I found it easier in the end to dele

Re: FlexJS min/max width/height

2016-07-26 Thread Alex Harui
On 7/26/16, 1:58 PM, "Harbs" wrote: >Two issues: > >1. I’m not sure I understand how SimpleCSSStyles is working. Not every >style value is enumerated there. For example, I noticed that width and >height are being set to styles in various places, but they are not >enumerated. SimpleCSSStyles an

Re: Changed svg namespace

2016-07-26 Thread OmPrakash Muppirala
On Jul 26, 2016 11:47 AM, "Harbs" wrote: > > I agree there should be a Group object. > > The problem is that the way the classes are currently constructed is that 100 pixel “Rect" positioned at 100,100 actually contains the following markup: > > I think the reason it was done this way was to make

Re: AW: [FLEXJS, TYPEDEFS]

2016-07-26 Thread Greg Dove
I just finally got around to trying this as well and encountered the same issue, and yes, I have used ant previously as well, otherwise it is looking very good - I especially like the sound of the distributionTargetFolder option :) The rat report shows the following for me: 3 Unknown Licenses **

Re: Changed svg namespace

2016-07-26 Thread Peter Ent
I wasn't really too sure about the resize thing either with getBBox which sometimes wasn't returning any value. That is a mystery a bit to me, too, but I got it to work. I think if you have a complete picture of what you want (API-wise), then I can adapt and redo things. Basically, DecrementButtonV

AW: [FlexJS] Something broke in CreateJS

2016-07-26 Thread Christofer Dutz
Hi Peter, Just have a look at my latest commit ... that contains how to do the same in Maven. It's all fixed now. Chris Von: Peter Ent Gesendet: Dienstag, 26. Juli 2016 22:58:10 An: dev@flex.apache.org Betreff: Re: [FlexJS] Something broke in CreateJS Yes,

Re: Changed svg namespace

2016-07-26 Thread Harbs
Well, the whole drawRect() method seemed redundant to me along with the need to specify the width and height. I tried to remove it and move the logic to the draw() method (sans the width and height, and I ran into the following code in DecrementButtonView:_backRect.drawRe

Re: AW: [FlexJS] Something broke in CreateJS

2016-07-26 Thread Peter Ent
Ok, thanks. I'll try to remember to fix up the maven side when something like this happens. ‹peter On 7/26/16, 5:01 PM, "Christofer Dutz" wrote: >Ok ... so it turned out the CreateJS was missing two dependencies to the >Effects module. I added them and things compiled again. > > >Chris > >_

AW: [FlexJS] Something broke in CreateJS

2016-07-26 Thread Christofer Dutz
Ok ... so it turned out the CreateJS was missing two dependencies to the Effects module. I added them and things compiled again. Chris Von: Christofer Dutz Gesendet: Dienstag, 26. Juli 2016 22:37:45 An: 'dev@flex.apache.org' Betreff: [FlexJS] Something broke in

Re: FlexJS min/max width/height

2016-07-26 Thread Harbs
Two issues: 1. I’m not sure I understand how SimpleCSSStyles is working. Not every style value is enumerated there. For example, I noticed that width and height are being set to styles in various places, but they are not enumerated. 2. I’m not sure I understand the flow of bead behaviors: Imagi

Re: [FlexJS] Something broke in CreateJS

2016-07-26 Thread Peter Ent
Yes, I added a dependency on the Effects project to CreateJS so that the CreateJS SWF side would be able to look similar to SWF side. I changed the dependency in the upper build xml file. What's necessary to get it work for Maven? ‹peter On 7/26/16, 4:37 PM, "Christofer Dutz" wrote: >Hi, > > >s

Re: Changed svg namespace

2016-07-26 Thread Peter Ent
I actually just followed some examples from Om. We have our element as the root of a component which would be the . This is positioned and so anything drawn in it would start a (0,0). So to me, this makes sense for how it is being done at the moment. ‹peter On 7/26/16, 3:52 PM, "Harbs" wrote: >

[FlexJS] Something broke in CreateJS

2016-07-26 Thread Christofer Dutz
Hi, starting my last update from today the CreateJS module has started producing compile errors: [INFO] --- flexjs-maven-plugin:0.7.0-SNAPSHOT:compile-as (default-compile-as) @ CreateJS --- [INFO] Executing COMPC in tool group Falcon with args: [-load-config=/Users/christoferdutz/Projects/Ap

Re: FlexJS min/max width/height

2016-07-26 Thread Harbs
Canvas does not have “elements". You can apply CSS to a canvas element, but that will not help for anything drawn on the canvas. If we have “Rect”, “Circle” “Path”, etc. for Canvas, these will have to be abstractions of the canvas drawing APIs. This is totally doable (as EaselJS did and I belie

Re: FlexJS min/max width/height

2016-07-26 Thread Alex Harui
On 7/26/16, 12:51 PM, "Harbs" wrote: >No Canvas doe not have this built in. I guess I'm having trouble understanding you today. You said using CSS wouldn't work for Canvas elements. What does that mean? -Alex

Re: [FlexJS] Javascript efficient code patterns

2016-07-26 Thread Alex Harui
On 7/26/16, 12:49 PM, "Harbs" wrote: > >On Jul 26, 2016, at 10:39 PM, Alex Harui wrote: > >> >> >> On 7/26/16, 11:39 AM, "Harbs" wrote: >> >>> >>> On Jul 26, 2016, at 8:15 PM, Alex Harui wrote: >>> On 7/26/16, 1:40 AM, "Harbs" wrote: > I noticed a couple of t

Re: Changed svg namespace

2016-07-26 Thread Harbs
Internally, it’s always setting it to 0,0. It looks to me like some renderers might be doing some relative positioning, but I did not study them well enough to figure it out. I think it was in charts, so Peter should probably have a better idea. On Jul 26, 2016, at 10:41 PM, Alex Harui wrote:

AW: AW: [FLEXJS, TYPEDEFS]

2016-07-26 Thread Christofer Dutz
I guess if you had run the Ant build before, there might be some files generated in places I didn't anticipate. So the RAT plugin is complaining about these files not having Apache Headers in them ... usually the target/rat.txt file will contain a list of the violating files. Chris __

Re: FlexJS min/max width/height

2016-07-26 Thread Harbs
No Canvas doe not have this built in. We’ll cross that bridge when we get to it. ;-) On Jul 26, 2016, at 10:43 PM, Alex Harui wrote: > > > On 7/26/16, 11:58 AM, "Harbs" wrote: > >> OK. I forgot that there was a css property for this. >> >> That should work for everything but canvas element

Re: [FlexJS] Javascript efficient code patterns

2016-07-26 Thread Harbs
On Jul 26, 2016, at 10:39 PM, Alex Harui wrote: > > > On 7/26/16, 11:39 AM, "Harbs" wrote: > >> >> On Jul 26, 2016, at 8:15 PM, Alex Harui wrote: >> >>> >>> >>> On 7/26/16, 1:40 AM, "Harbs" wrote: >>> I noticed a couple of things: 1. There’s lots of String(val) casts in Flex

Re: FlexJS min/max width/height

2016-07-26 Thread Alex Harui
On 7/26/16, 11:58 AM, "Harbs" wrote: >OK. I forgot that there was a css property for this. > >That should work for everything but canvas elements. That might be OK.. Does Canvas have min/max? If so, then our implementation of Canvas in the HTML5 swc would as well, but it wouldn't be in UIBase

Re: Changed svg namespace

2016-07-26 Thread Alex Harui
On 7/26/16, 11:47 AM, "Harbs" wrote: >I agree there should be a Group object. > >The problem is that the way the classes are currently constructed is that >100 pixel “Rect" positioned at 100,100 actually contains the following >markup: height=“100”/> Are you saying that code is doing relative

Re: [FlexJS] Javascript efficient code patterns

2016-07-26 Thread Alex Harui
On 7/26/16, 11:39 AM, "Harbs" wrote: > >On Jul 26, 2016, at 8:15 PM, Alex Harui wrote: > >> >> >> On 7/26/16, 1:40 AM, "Harbs" wrote: >> >>> I noticed a couple of things: >>> 1. There’s lots of String(val) casts in FlexJS code. This practice is >>> considered “bad” practice in Javascript w

Re: [FlexJS] Javascript efficient code patterns

2016-07-26 Thread Josh Tynjala
How terrible it is depends on context, I guess. Starling and Feathers try to maintain 60fps on slightly older mobile hardware. If the GC causes dropped frames, it's terrible. Switching away from push() (and splice(), which has two temporary Arrays) made a noticeable difference. It's worth mentioni

Re: FlexJS min/max width/height

2016-07-26 Thread Harbs
OK. I forgot that there was a css property for this. That should work for everything but canvas elements. That might be OK.. On Jul 26, 2016, at 7:43 PM, Alex Harui wrote: > > > On 7/26/16, 9:37 AM, "Harbs" wrote: > >> Any objections to me adding min and max widths and heights to UIBase? >>

Re: [FlexJS] UIBase z-order

2016-07-26 Thread Harbs
I personally care about the ordering in code and not markup. (I’m using it to temporarily bring active objects forward.) Yes. z-order is a CSS property and it’s supported in JS. I did not realize that depth was in UIComponent I thought it was a DisplayObject property. That makes this much harde

Re: Changed svg namespace

2016-07-26 Thread Harbs
I agree there should be a Group object. The problem is that the way the classes are currently constructed is that 100 pixel “Rect" positioned at 100,100 actually contains the following markup: I think the reason it was done this way was to make it possible to add Rects (and similar) directly t

Re: [FlexJS] Javascript efficient code patterns

2016-07-26 Thread Harbs
On Jul 26, 2016, at 8:15 PM, Alex Harui wrote: > > > On 7/26/16, 1:40 AM, "Harbs" wrote: > >> I noticed a couple of things: >> 1. There’s lots of String(val) casts in FlexJS code. This practice is >> considered “bad” practice in Javascript where implicit conversion is >> generally quicker. S

Re: [FlexJS] Javascript efficient code patterns

2016-07-26 Thread Harbs
Interesting. Good to know. Here’s what I got: function timeJoin(){ var start = new Date(); var i=-1; var len = 1000; var arr = []; while(++i wrote: > Yeah, push() is terribly bad for performance because of the GC overhead > from the ...rest Array. In S

Re: Changed svg namespace

2016-07-26 Thread Alex Harui
On 7/26/16, 8:19 AM, "Harbs" wrote: >Both. > >In SVG we're actually struggling with the same (or rather similar) issue. > >There’s a big difference between: > > >and > > >Each svg has its own coordinate space, and svg elements cannot have >transform properties. This is proving to be quite diff

Re: [FlexJS] Javascript efficient code patterns

2016-07-26 Thread Josh Tynjala
Yeah, push() is terribly bad for performance because of the GC overhead from the ...rest Array. In Starling and Feathers, we always try to avoid push() whenever possible. We usually use bracket syntax instead: array[array.length] = newValue; In loops, it's possible to use a local integer counter

Re: [FlexJS] Javascript efficient code patterns

2016-07-26 Thread Alex Harui
On 7/26/16, 1:40 AM, "Harbs" wrote: >I noticed a couple of things: >1. There’s lots of String(val) casts in FlexJS code. This practice is >considered “bad” practice in Javascript where implicit conversion is >generally quicker. So in a case where a number can be converted >implicitly, the cast

Re: [FlexJS] UIBase z-order

2016-07-26 Thread Alex Harui
Just so I'm clear, the issue is declaring z-order in MXML or in AS as well? There is no "depth" property on flash.display.DisplayObject AFAIK. If JS supports a zOrder CSS style, then FlexJS should as well. You can add it to SimpleCSSStyles or create a new ZOrderCSSStyles. The SWF implementation

Re: FlexJS equivalent to SystemManager

2016-07-26 Thread Alex Harui
On 7/26/16, 9:41 AM, "Harbs" wrote: >If I want to listen to mouse events on the whole application, what’s the >right way to go about it? For most folks, all you need to do is listen to the view since all visible objects will be parented by the view.. Someday there will be more sophisticated s

Re: FlexJS min/max width/height

2016-07-26 Thread Alex Harui
On 7/26/16, 9:37 AM, "Harbs" wrote: >Any objections to me adding min and max widths and heights to UIBase? > >Is there a bead that’s more appropriate? I'd rather it go in a bead since, IMO, it isn't needed by everybody. In JS aren't these styles? If so, they can be added to SimpleCSSStyles o

FlexJS equivalent to SystemManager

2016-07-26 Thread Harbs
If I want to listen to mouse events on the whole application, what’s the right way to go about it?

RE: [FlexJS] UIBase z-order

2016-07-26 Thread Yishay Weiss
This looks like a Bead candidate. I would take TextPromptBead as an example. The zIndex is analogous to prompt, although you would probably want to update the zIndex every time it’s changed on the bead, not just when the bead is added. I’m not sure why it doesn’t work that way in TextPromptBead.

FlexJS min/max width/height

2016-07-26 Thread Harbs
Any objections to me adding min and max widths and heights to UIBase? Is there a bead that’s more appropriate?

Re: AW: [FLEXJS, TYPEDEFS]

2016-07-26 Thread Peter Ent
Hi, I just finished installing and running maven. I was able to build flex-falcon "utils" but when I went to build the compiler, it failed on the rat report check (below). But I think it would have worked nicely otherwise. Great job! [INFO] Rat check: Summary over all files. Unapproved: 18, unkno

Re: Changed svg namespace

2016-07-26 Thread Harbs
Both. In SVG we're actually struggling with the same (or rather similar) issue. There’s a big difference between: and Each svg has its own coordinate space, and svg elements cannot have transform properties. This is proving to be quite difficult in terms of transformations. Ideally, it sho

Re: Apache Flex Docs/Examples on StackOverflow

2016-07-26 Thread Alex Harui
On 7/25/16, 10:44 PM, "Justin Mclean" wrote: >HI, > >> Noticed this today: http://stackoverflow.com/tour/documentation > >Not necessarily an issue but would be happy with the terms of service >here [1], in particular: >"You agree that all Subscriber Content that You contribute to the Network >i

Re: Changed svg namespace

2016-07-26 Thread Peter Ent
Hi, For my own education, I just wanted to get some clarification. With regards to SVG, when you use it, it looks something like this in the HTML file: With Canvas, there aren't any graphic elements, you just have and then JS code to draw the rects (or whatever). Were you th

[FlexJS] UIBase z-order

2016-07-26 Thread Harbs
Currently, there’s no way to specify the z-order of FlexJS objects. It’s probably possible to use obj.style.zOrder = val, but that would only work on the JS side. To work on the Flash side as well, we’d need to use the zOrder style attribute as well as the depth property of a Flash Display objec

Re: Apache Flex Docs/Examples on StackOverflow

2016-07-26 Thread Clint M
Thanks to the 2 people that signed up now we can add examples on SO. http://stackoverflow.com/documentation/flex @Christofer I don't think it's meant to be a place to hold "All the flex documentation". StackOverflow documentation is designed to fill a gap in it's model. It was difficult to publis

Re: [FlexJS] Wok on the distribution

2016-07-26 Thread Carlos Rovira
Awesome Chris! Congrats to conclude this important milestone! :) So, this fires the start of 0.7 release and then this will be in apache maven repo? Thanks! 2016-07-25 16:04 GMT+02:00 Christofer Dutz : > Ok ... so I think this is now done too :-) > > > I had to update the mavenizer a little a

[FlexJS] Javascript efficient code patterns

2016-07-26 Thread Harbs
I noticed a couple of things: 1. There’s lots of String(val) casts in FlexJS code. This practice is considered “bad” practice in Javascript where implicit conversion is generally quicker. So in a case where a number can be converted implicitly, the cast should be completely skipped and even when

AW: Apache Flex Docs/Examples on StackOverflow

2016-07-26 Thread Christofer Dutz
But I would also like documentation to be created at our Wiki and not have it spread everywhere. Would it be possible to copy content added there to our Wiki? More documentation is always better than less ;-) Chris Von: Justin Mclean Gesendet: Dienstag, 26. J