Re: FlexJS question - ByteArray vs. BinaryData

2016-07-18 Thread Harbs
Pull requests are easiest. The first pull request is the hardest (setting up a fork and what-have-you), but once you do it once, it’s really easy the next time around. Here’s my recommended process for doing pull requests: 1. On Github, fork the repo.[1] 2. Add an additional remote to your git

Re: FlexJS question - ByteArray vs. BinaryData

2016-07-17 Thread Greg Dove
Harbs, FYI I have made progress on this and expect I will have something to share with you in a couple of days. What is your preferred way to submit a patch for review? Is it easiest to make a pull request against the github mirror? (I use git a lot, but have somehow avoided making a pull

Re: FlexJS question - ByteArray vs. BinaryData

2016-07-14 Thread Greg Dove
Oh I see that issue I mentioned below was only a change that happened today. "js-config-template (plus jquery and node): added missing reference to Core.swc, which is required for org.apache.flex.utils.Language" So if the above change is necessary then the ant build scripts should probably

Re: FlexJS question - ByteArray vs. BinaryData

2016-07-14 Thread Greg Dove
Thanks Harbs, I am on windows, but did something similar with a windows batch file. Instructions here [1] are also similar but include a couple of differences: 1. playerglobal seems to be required as 11.1. When I tried using a more recent playerglobal version as per those instructions I had to

Re: FlexJS question - ByteArray vs. BinaryData

2016-07-14 Thread Alex Harui
On 7/14/16, 9:28 AM, "Harbs" wrote: >This page says that Uint8Array inherits its prototype from TypedArray[2] >which is referenced here.[3] > >[2]https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Globa >l_Objects/Uint8Array

Re: FlexJS question - ByteArray vs. BinaryData

2016-07-14 Thread Harbs
This page says that Uint8Array inherits its prototype from TypedArray[2] which is referenced here.[3] [2]https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array

Re: FlexJS question - ByteArray vs. BinaryData

2016-07-14 Thread Alex Harui
On 7/13/16, 11:33 PM, "Greg Dove" wrote: >Harbs and Alex, thanks for your explanations. > >I guess 'drop-in' replacement is quite unrealistic. But I think if could >be >closer to the IDataInput/IDataOutput, and given that ByteArray is a common >utility class in many

Re: FlexJS question - ByteArray vs. BinaryData

2016-07-14 Thread Alex Harui
On 7/14/16, 2:38 AM, "Harbs" wrote: >FYI, I just added an “array” getter which returns the underlying array of >bytes. The exact type is different on the different platforms. > >Alex, I tried to make the type “TypedArray” instead of “Uint8Array” on >the JS side, but

Re: FlexJS question - ByteArray vs. BinaryData

2016-07-14 Thread Harbs
FYI, I just added an “array” getter which returns the underlying array of bytes. The exact type is different on the different platforms. Alex, I tried to make the type “TypedArray” instead of “Uint8Array” on the JS side, but TypedArray was not recognized for some reason. Any ideas on why that

Re: FlexJS question - ByteArray vs. BinaryData

2016-07-14 Thread Harbs
Monkey patching does not work very well. Here’s my setup (on Mac — Windows is similar): 1) Follow the instructions here to get your basic environment setup: https://cwiki.apache.org/confluence/display/FLEX/FlexJS+Developer+Setup 2) If you want to use Flash Builder, read the section on Flash

Re: FlexJS question - ByteArray vs. BinaryData

2016-07-14 Thread Greg Dove
Harbs and Alex, thanks for your explanations. I guess 'drop-in' replacement is quite unrealistic. But I think if could be closer to the IDataInput/IDataOutput, and given that ByteArray is a common utility class in many libraries, particularly for low-level parsing of various formats, the closer

Re: FlexJS question - ByteArray vs. BinaryData

2016-07-13 Thread Alex Harui
On 7/12/16, 3:57 PM, "Greg Dove" wrote: >I have dipped my toes into FlexJS for the first time. I am evaluating >FlexJS for a migration away from Flex4/flash and figured I would try to >cross compile an isolated a3 library that is a core dependency for my >client's project.

Re: FlexJS question - ByteArray vs. BinaryData

2016-07-13 Thread Harbs
HI Greg, It’s definitely a WIP although the latest build is pretty complete already. I don’t know if it’ll ever be a complete drop-in for ByteArray, because indexed access is cumbersome to implement efficiently. I recently added a number of methods to BinaryData to implement the parts of

Auto-Re: FlexJS question - ByteArray vs. BinaryData

2016-07-12 Thread kjczxl

FlexJS question - ByteArray vs. BinaryData

2016-07-12 Thread Greg Dove
I have dipped my toes into FlexJS for the first time. I am evaluating FlexJS for a migration away from Flex4/flash and figured I would try to cross compile an isolated a3 library that is a core dependency for my client's project. It seems there is no direct substitute for flash.utils.ByteArray on