bufanliu / cocoon-p2p

Automatically exported from code.google.com/p/cocoon-p2p
0 stars 0 forks source link

No scope property in 0.8 #4

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Create a Adobe Air project 
2. Use CocoonP2P-0.8.swc
3. Test the messaging example

What is the expected output? What do you see instead?
The expected output is the program running, instead i get an error
in this line 
    if(event.message.scope == "all"){
scope is an undefined property.

Please provide any additional information below.
I check the source code and in the MessageVO the scope property isn't there 
have change or what?? 

Original issue reported on code.google.com by JDescone...@gmail.com on 7 May 2011 at 4:36

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Hi,

yes - the FXP example uses an older release of the library which had this API. 
Please change the corresponding line to

  if(!event.message.isDirectMessage) {

and it should work.

We will update the FXP files soon, so all examples will work with the latest 
release.

Dirk.

Original comment by bort...@gmail.com on 7 May 2011 at 11:19

GoogleCodeExporter commented 8 years ago

Original comment by peter%pr...@gtempaccount.com on 7 May 2011 at 1:56

GoogleCodeExporter commented 8 years ago

Original comment by peter%pr...@gtempaccount.com on 7 May 2011 at 2:19