Ok first thanks for those guys that pointed me to the source code for the new AS2 Remoting classes now I can compile my application!
So step one - I did the "minimum" change, basically nothing, just switched to the new NetServices to see whether it would all still work. I had previously been using an AS2 version of remoting that I had downloaded from the web I think I am a bit hazy about this, there seem to have been several versions floating around. Anyway I just changed one import statement and then hit run application .... and nothing happens. So that really is my own stupid fault, I had even read the "gotcha" and still I forgot to add those new libraries lol. So ok open up the library drag in the Remoting classes hit run again and it all works fine!
Now sit back have a cup of coffee and feel pleased with myself, it all works with the new classes. After a couple of swigs of coffee I glance out of curiosity at the file size of the swf, the old had been 90k, the new one 99k! That's a 10% increase in footprint for nothing, no extra functionality, nothing at all!
Now maybe I am the only one bothered by download footprint if so I am talking to myself here but to me it matters a lot. That is a hefty increase. So I started thinking about why this had happened.
There are two main things that come to mind.
Firstly the code itself just in mx.remoting alone the source code seems to have gone from 20k to 80k+ and then there is additional code in mx.rpc and mx.util .
Secondly really starts with saying that maybe point 1 shouldn't matter that much after all if I don't use a class it wont get compiled in right and it looks like the Recordset class is one of the main culprits for having blown up in size and I don't use it but the thing is that now we include the Remoting classes via a library not by import classes, the result of that I believe is that everything gets into your swf whether you use it or not.
So end result your stuck with a 9k increase in footprint if you move from the old classes to the new classes.
Well thats not good enough, there must be a solution he says!
I then had a bright idea, maybe I could delete the library and just import all the classes I needed. That didn't work, for some reason Flash point blank refuses to import those classes.
The next idea was to rename them under my own package tree so xp.remoting instead of mx.remoting, that got them imported but my application still failed maybe because the compiler was complaining about odd things.
So then I thought about the old remoting files and I got to thinking about using them but to in order to leave the option open to using the new Remoting I would move the old ones under my own package also I would only use the minimum I needed for my application.
Well I tried that and it worked. In fact my application went down from 91k to 88k.
What was the minimum I needed?
NetServices
NetServiceProxy
NetServiceProxyResponder
NetConnectionAS2
They all exist now under xp.remoting as one of my own packages, a total of 4k of source files. That's all!
So now I have a choice -3k or +9k.... I need a lot of convincing that there is something worth +12k in the new classes!
Now my moan is not so much about the new classes, I can understand sometimes you add functionality and it will add to the foot print, I would be willing to "tolerate" a tiny footprint increase, but given the environment that most people are working in where download size does matter can't we be a bit smarter than to just include everything in one shot. Especially where it wasnt like that before and there doesn't seem to be an obvious reason as to why the change in style. Going beyond this single instance it does really seem that bloat is a major issue and I feel that it is possible to be be smarter than this.