Re: [FlexJS] HTMLElementWrapper extending Sprite

2016-07-28 Thread Alex Harui
On 7/28/16, 11:05 PM, "Harbs" wrote: >I’m also not understanding what positioner does. Why can’t you get a >reference to the parent element from the FlexJS parent? Positioner and element are often the same in JS, but sometimes the element is an of some type wrapped in a outer with a sibling

Re: [FlexJS] HTMLElementWrapper extending Sprite

2016-07-28 Thread Harbs
I’m also not understanding what positioner does. Why can’t you get a reference to the parent element from the FlexJS parent? On Jul 29, 2016, at 9:00 AM, Harbs wrote: > Cool. > > I’m not totally getting the use case of the IFlexJSElement, but there’s > definitely nothing wrong with adding a

Re: [FlexJS] HTMLElementWrapper extending Sprite

2016-07-28 Thread Harbs
Cool. I’m not totally getting the use case of the IFlexJSElement, but there’s definitely nothing wrong with adding a wrapper class that extends a Flash type. I’d think it should extend DisplayObject rather than InteractiveObject though. On Jul 29, 2016, at 8:34 AM, Alex Harui wrote: > > > O

Re: [FlexJS] HTMLElementWrapper extending Sprite

2016-07-28 Thread Alex Harui
On 7/28/16, 9:58 PM, "Harbs" wrote: >I gave everything a $displayObject property which is an alias to the >specific DisplayObject type. There’s also $sprite $textField $shape and >$button for the specific types. > >I did this to avoid having to do casting all over the place. > >I did not use el

Re: [FlexJS] HTMLElementWrapper extending Sprite

2016-07-28 Thread Harbs
I gave everything a $displayObject property which is an alias to the specific DisplayObject type. There’s also $sprite $textField $shape and $button for the specific types. I did this to avoid having to do casting all over the place. I did not use element because it was a IFlexJSElement and Fla

Re: [FlexJS] HTMLElementWrapper extending Sprite

2016-07-28 Thread Alex Harui
On 7/28/16, 2:55 PM, "Harbs" wrote: >It should be creating it in the constructor. Is there a problem with >doing it like that? Not sure. I thought you were going to re-purpose the 'element' property from the JS side. Is there a reason you didn't do that? I think assuming a Sprite is not cor

Re: [FlexJS] HTMLElementWrapper extending Sprite

2016-07-28 Thread Harbs
It should be creating it in the constructor. Is there a problem with doing it like that? On Jul 28, 2016, at 11:51 PM, Alex Harui wrote: > Harbs, > > I've started poking around in this branch. How is the SWF version > supposed to create the wrapped element? I would've expected createElement

Re: [FlexJS] HTMLElementWrapper extending Sprite

2016-07-28 Thread Alex Harui
Harbs, I've started poking around in this branch. How is the SWF version supposed to create the wrapped element? I would've expected createElement to be used? Or is it somewhere else? -Alex On 7/28/16, 11:43 AM, "Alex Harui" wrote: > > >On 7/27/16, 1:41 PM, "Alex Harui" wrote: > >> >> >>On

AW: AW: [FLEXJS, TYPEDEFS]

2016-07-28 Thread Christofer Dutz
Are you setting an environment variable? I think you should set a Maven property using -Dyadayada=blah Chris Von meinem Samsung Galaxy Smartphone gesendet. Ursprüngliche Nachricht Von: Greg Dove Datum: 28.07.16 21:01 (GMT+01:00) An: dev@flex.apache.org Betreff: Re: AW: [FL

Re: AW: [FLEXJS, TYPEDEFS]

2016-07-28 Thread Greg Dove
Sound good to me, Chris I used ant super-clean first inside asjs, and then the maven build worked fine. :) The only thing that didn't seem to work for me then for the maven instructions was setting distributionTargetFolder - , I can verify this is valid, I can see the value using echo %distribut

Re: [FlexJS] HTMLElementWrapper extending Sprite

2016-07-28 Thread Alex Harui
On 7/27/16, 1:41 PM, "Alex Harui" wrote: > > >On 7/27/16, 1:27 PM, "Harbs" wrote: The only class which still subclasses Sprite is Application. I don’t know a way around that. >>> >>> One idea is that, since developer code never instantiates an >>>Application >>> (only the framewo

Re: FlexJS Effects

2016-07-28 Thread Alex Harui
On 7/28/16, 6:37 AM, "Harbs" wrote: >I’m also wondering about a GSAP wrapper. I don’t know whether we can do >it in the Flex repo because I don’t think GSAP has a compliant >license.[1] But a FlexJS wrapper for GSAP could be very useful. It might >be a good candidate for the flex-extras Github

Re: FlexJS Effects

2016-07-28 Thread Alex Harui
On 7/28/16, 1:16 AM, "Harbs" wrote: >I noticed that Effects is not using CSS. Is there a reason for that? I >assume that CSS3 would be more performant. Is CSS3 in all browsers and runtimes we care about like IE9? It would be totally fine to have another CSS3Effects.swc that does effects for C

Re: FlexJS focus

2016-07-28 Thread Alex Harui
On 7/28/16, 6:56 AM, "Harbs" wrote: >Next issue: > >There’s nothing dealing with focus in FlexJS. Both Flash and HTML have >methods to facilitate focus, namely Stage.focus on the Flash side and >HTMLElement.focus() and HTMLElement.blur() on the JS side.[1] > >I assume the answer on how to imple

FlexJS focus

2016-07-28 Thread Harbs
Next issue: There’s nothing dealing with focus in FlexJS. Both Flash and HTML have methods to facilitate focus, namely Stage.focus on the Flash side and HTMLElement.focus() and HTMLElement.blur() on the JS side.[1] I assume the answer on how to implement this will again be a bead, but should t

Re: FlexJS Effects

2016-07-28 Thread Harbs
I’m also wondering about a GSAP wrapper. I don’t know whether we can do it in the Flex repo because I don’t think GSAP has a compliant license.[1] But a FlexJS wrapper for GSAP could be very useful. It might be a good candidate for the flex-extras Github repo. [1]https://greensock.com/licensing

Re: FlexJS hitTestPoint

2016-07-28 Thread Harbs
I already added DisplayUtils to the refactor-sprite branch. I don’t think a bead is necessarily a good fit for this (at least not only a bead). You’d might want to use this in code using any UIBase object. On Jul 28, 2016, at 4:31 PM, Peter Ent wrote: > I would think this might also be a good

Re: FlexJS Effects

2016-07-28 Thread Peter Ent
That part I don't know about, but I think it must be a "to-do" item. The CreateJS project either uses CreateJS effects for the HTML side or it uses the FlexJS library for the SWF side. ‹peter On 7/28/16, 4:16 AM, "Harbs" wrote: >I noticed that Effects is not using CSS. Is there a reason for tha

Re: FlexJS hitTestPoint

2016-07-28 Thread Peter Ent
I would think this might also be a good bead candidate. It could be added as a bead to the View or some container. This way you'd only bring in that code to the app if the app really needed it. ‹peter On 7/28/16, 2:36 AM, "Alex Harui" wrote: > > >On 7/27/16, 11:03 PM, "Harbs" wrote: > >>The ot

FlexJS Effects

2016-07-28 Thread Harbs
I noticed that Effects is not using CSS. Is there a reason for that? I assume that CSS3 would be more performant. Harbs

AW: AW: [FLEXJS, TYPEDEFS]

2016-07-28 Thread Christofer Dutz
Hi Greg, those are mostly generated sources from the compiler. I could start adding rat exceptions for all of them, but I don't think thats the way to go. I think it would be best practice to do a clean-all/mega-clean/wipe-all with Ant prior to building with maven (whatever goal actually clean