Re: [FlexJS] subclassed Flash classes and casting

2016-07-11 Thread Alex Harui
On 7/11/16, 12:23 AM, "Harbs" wrote: >It could be that instead of subclassing Flash objects, we should be using >composition instead… Maybe. I started out subclassing because it would be lower overhead, and so the main class could be the initial class in the SWF. I think the initial entry po

Re: [FlexJS] Developer Setup

2016-07-11 Thread yishayw
It turns out I needed to add the relevant swc files to the framework project I was tinkering with, not to my test project. The disadvantage of this is that .actionScriptProperties, which is in git, gets changed. Here's another video describing first what not to do (add swc files to test project),

Re: [FlexJS][Falcon] Some final moving around of stuff :-)

2016-07-11 Thread Carlos Rovira
Hi Chris, Those three parts seems ok to me. Thanks for asking 2016-07-11 9:08 GMT+02:00 Harbs : > One nitpick here: > > falcon contains both the falcon and falconjx compiler. Are both considered > “FlexJS”? > > On Jul 11, 2016, at 9:59 AM, Christofer Dutz > wrote: > > > So are we agreeing on s

Re: [FlexJS] subclassed Flash classes and casting

2016-07-11 Thread Harbs
It could be that instead of subclassing Flash objects, we should be using composition instead… On Jul 11, 2016, at 10:21 AM, Harbs wrote: > Sure they are. > > Try this: > var myRect:org.apache.flex.core.graphics.Rect = new > org.apache.flex.core.graphics.Rect(); > var transform:Matrix = myRec

Re: [FlexJS] subclassed Flash classes and casting

2016-07-11 Thread Harbs
Sure they are. Try this: var myRect:org.apache.flex.core.graphics.Rect = new org.apache.flex.core.graphics.Rect(); var transform:Matrix = myRect.transform; On Jul 11, 2016, at 10:16 AM, Alex Harui wrote: > > > On 7/11/16, 12:06 AM, "Harbs" wrote: > >> I believe Bitmaps use Rectangles. > >

Re: [FlexJS] subclassed Flash classes and casting

2016-07-11 Thread Alex Harui
On 7/11/16, 12:06 AM, "Harbs" wrote: >I believe Bitmaps use Rectangles. OK but flash.display.Bitmap should not be exposed to the SWC's API surface. Bitmap should be wrapped and rectangles in its API should be wrapped as well. > >FlexJS subclasses DisplayObject which returns a Flash Matrix fo

Re: git commit: [flex-asjs] [refs/heads/develop] - Added Matrix class to geom (thanks to lizhi)

2016-07-11 Thread Alex Harui
On 7/11/16, 12:09 AM, "Justin Mclean" wrote: >Hi, > >> I can’t find the post, but I definitely remember Lizhi stating that he >>wrote the code. > >Nor could I and from memory I don’t think we go a definite answer. > >A guess would be the initial check in was based on code from an old >version o

AW: git commit: [flex-asjs] [refs/heads/develop] - Added Matrix class to geom (thanks to lizhi)

2016-07-11 Thread Christofer Dutz
I couldn't either: https://lists.apache.org/list.html?*@flex.apache.org:lte=1y:Lizhi%20Matrix But I don't know if I used the correct search phrases. Just wanted to remind you of lists.apache.org ... it's really helpful :-) Chris Von: Harbs Gesendet: Montag,

Re: git commit: [flex-asjs] [refs/heads/develop] - Added Matrix class to geom (thanks to lizhi)

2016-07-11 Thread Justin Mclean
Hi, > I can’t find the post, but I definitely remember Lizhi stating that he wrote > the code. Nor could I and from memory I don’t think we go a definite answer. A guess would be the initial check in was based on code from an old version of Shumway but not I'm 100% sure. Notice (for instance)

Re: [FlexJS][Falcon] Some final moving around of stuff :-)

2016-07-11 Thread Harbs
One nitpick here: falcon contains both the falcon and falconjx compiler. Are both considered “FlexJS”? On Jul 11, 2016, at 9:59 AM, Christofer Dutz wrote: > So are we agreeing on splitting up our codebase into these three parts (even > if two of the repos currently still have different names)

Re: AW: AW: [FlexJS][Falcon] Some final moving around of stuff :-)

2016-07-11 Thread Alex Harui
On 7/10/16, 11:59 PM, "Christofer Dutz" wrote: >So are we agreeing on splitting up our codebase into these three parts >(even if two of the repos currently still have different names)? > >- flexjs-compiler > >- flexjs-typedefs > >- flexjs-framework I haven't looked at how hard it is to rename

AW: [FlexJS] subclassed Flash classes and casting

2016-07-11 Thread Christofer Dutz
Hi, I still think using common interfaces as contract for writing code would simplify things. We could have "FlexEvent" for example and base the API on this, just as an example: There could be a "FlashFlexEvent" which extends FlexEvent with things specific to Flash and a JSFlexEvent that has t

Re: [FlexJS] subclassed Flash classes and casting

2016-07-11 Thread Harbs
I believe Bitmaps use Rectangles. FlexJS subclasses DisplayObject which returns a Flash Matrix for the transform. IF you try to use transformPoint() on that, it’ll return (and expects) a Flash Point. I’m sure there’s more examples. On Jul 11, 2016, at 10:03 AM, Alex Harui wrote: > > > On 7

Re: [FlexJS] subclassed Flash classes and casting

2016-07-11 Thread Alex Harui
On 7/10/16, 11:59 PM, "Harbs" wrote: >One simple example is clone() on on both Point and Rectangle. Flash >returns a flash Rectangle, but Flex is expecting a flex Rectangle. >Another one that I ran into in my own code is union() in Rectangle. > >The casting that I did, did not even work. The co

AW: AW: [FlexJS][Falcon] Some final moving around of stuff :-)

2016-07-11 Thread Christofer Dutz
So are we agreeing on splitting up our codebase into these three parts (even if two of the repos currently still have different names)? - flexjs-compiler - flexjs-typedefs - flexjs-framework In this case I could start preparing things by renaming the "extern" stuff to "typedef"? I would also