SemiConscious opened a new issue #171: URL: https://github.com/apache/royale-compiler/issues/171
I am working on porting a flex app to royale. I have come across an issue in the AMF implementation which I think would be worth fixing in the SDK. problem 1: Our existing implementation depends heavily on the use of the target URI. In the current implementation this is not passed down to `AMFNetConnection`, and is always null. I think this is a fairly key part of AMF which needs to be right, and it's easy to fix. problem 2: It's also key to us to pass an array of optional parameters (the 3rd parameter in `NetConnection.call()`) - think of it as parameters which behind the scenes are used to make further REST API calls to our platform's core API, which I understand to be a fairly common use case,. In the existing implementation, the params parameter in `NetConnection.call()` is an `IMessage`. `NetConnection.call(`) calls `AMFNetConnection.call(`) with an `...` parameter. This combination results in being unable to deliver a flat 1 dimensional array to AMF. You end up with either the array you want to send with all but the first member truncated, or an array of arrays with 1 member. This doesn't model what was previously there in flex/AMF. I don't know how much you really care about flex compatibility beyond a certain point, but for what it's worth I have a branch with fixes for these which I could commit to the main repo, so you can take a look. What a fantastic job you guys have done! I have been working on this for 4 weeks solid and this is the first issue I haven't been able to conveniently work around. Well done, and happy new year! ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected]
