I've already built a flash 10 flex application which use the p2p feature, and currently everything works with stratus. Now I want my application to run on Adobe Air, but it seems that p2p dos not work for Air.
I can successfully connect to stratus server in Air application, but after that, when I try to use NetConnection.nearID, an error occurs saying:
"ReferenceError: Error #1069: Property nearID not found on flash.net.NetConnection and there is no default value."
I've tried flex sdk 3.2 and 3.4 and neither of them works, after that, I tried to package the application and install it on Air 1.5.3 and Air 2.0 beta, the same error occurs.
Does anyone know how to fix this? Thanks for the help~
Yes, Stratus works well with AIR.
Both p2p and multicast.
If it compiles without errors, try the debugger and check that the NetConnection is real.
Were there changes from the swf version?
If there weren't any then check the only things that are different, like the xxx-app.xml to make sure it's not AIR 1.0 or something.
It's simple to take the AIR code, add the Global.swc and make a (second)/ test swf version.
I'm using flex builder 3, it works after I add the following code in .actionScriptProperties:
Thanks for the answer.