0
votes

i am trying to run a source that i downloaded in Flex Builder 3 but i get some errors:

like on this line:

sendStream = new NetStream(nc,NetStream.DIRECT_CONNECTIONS);

Access of possibly undefined property DIRECT_CONNECTIONS through a reference with static type Class.

and here

myPeerID = nc.nearID;

//nc is NetConnection and code completion also doesn't show me the nearID property of the NetConnection

2

2 Answers

2
votes

The problem is NetStream.DIRECT_CONNECTIONS s part of flex 4 and is not available in flex 3.

check:

http://livedocs.adobe.com/flex/gumbo/langref/flash/net/NetStream.html#DIRECT_CONNECTIONS

0
votes

Make sure you set the Required Flash player version to 10. If you are using Flex Builder 3 you can set this in the Flex Compiler properties for your project.