if this happens with 10.2 but not with 10.1 (no code changes in your SWF), then the culprit is probably a known bug related to the new Stage Video feature. in particular, if you set wmode="direct" in the HTML wrapper for your SWF, the P2P dialog, camera/microphone dialog, and settings panel will not be displayed. if the P2P permission panel can't be displayed, the behavior will be as if you clicked "Deny".
to see if this is the problem, check to see if wmode is set to "direct". if it is, try changing it to a different mode, like "opaque", "transparent", or "window". if that makes a difference, then it's this bug. this unfortunate bug will be fixed in a future release of Flash Player.
if that doesn't make a difference, then perhaps something changed in your SWF? if you access any method or property of NetGroup or NetStream (other than adding an event listener) before the user clicks "Accept" in the P2P dialog, an exception will be raised, and depending on the execution context, that could withdraw the dialog box and make it behave as though "Deny" was clicked.
thanks for the reply. The problem was in the Hydra P2P engine, it was throwing an error and wasn't being dispatched correclty when a user had denied access.
Thanks for the tips though.
What ID is assigned to the bug you mentioned? I want to track the changes. Thanks in advance.
how can my app know if a they've clicked the p2p allow button?
a "NetGroup.Connect.Success" event will be sent to the NetConnection's event listener when the user clicks the Allow button. if the user clicks "Deny", you'll nget a "NetGroup.Connect.Rejected" event on your NetConnection's event listener.
aha... i was listening for" NetStream.Connect.Success" instead of "NetGroup.Connect.Success" which is probably why I sometimes don't see p2p dialog since I start setting up the group at that point
well, NetStream.Connect.Success is for creating a group NetStream, and NetGroup.Connect.Success is for creating a NetGroup. you should be watching for whichever is appropriate for the kind of object(s) you're creating.
if you create a group NetStream, you need to wait for the corresponding NetStream.Connect.Success event (to the NetConnection's event listener) before poking at the NetStream object in any way other than adding an event listener to it. and if you create a NetGroup, you need to wait for the corresponding NetGroup.Connect.Success event before doing anything with the NetGroup object, other than adding an event listener to it. the Success/Rejected events will come to all the group objects once the user selects Accept or Deny, respectively.
without doing anything more than adding event listeners to my netStream, i still get a NetStream.Connect.Rejected error without the prompt showing up. I've cleared all sites from the settings manager, but still stuck.
Any other thoughts?
if you're getting NetStream.Connect.Rejected immediately without the dialog popping up, then one of the two following situations is the case:
1) the dialog can't be presented for some reason, like your SWF's window is too small or you're running into the wmode=direct bug i mentioned earlier in this thread
2) some kind of exception is happening in your code in the context where the dialog would be presented, which is rolling it back and making it behave as though "Deny" was clicked.
I'm seeing this issue but only on Linux, and with 10.2 as well as 10.3, and in 64bit as well as 32bit linux.
wmode is set to "opaque" and no exceptions are being thrown. all I am doing is attaching an event listener.
any other thoughts or open bugs?