Implementing NotificationListener throws error

0 votes

When i implement the NotificationListener in my class it throws me this two errors:

Interface method onUserLeftLobby in namespace com.shephertz.appwarp.listener:NotificationListener is implemented with an incompatible signature in class AppWarpListener.
 
Interface method onUserJoinedLobby in namespace com.shephertz.appwarp.listener:NotificationListener is implemented with an incompatible signature in class AppWarpListener.
 
The thing is that my methods are exactly as in the ones in NotificationListener class so im lost here.
 
This is how i have those two methods:
 
public function onUserJoinedLobby (event:Lobby, user:String) : void {
 
}
 
public function onUserLeftLobby (event:Lobby, user:String) : void {
 
}

Any help would be greatly appreciated cause i have no idea how to solve this.

asked Jul 2, 2014 in AppWarp by necrosenator (15 points)
recategorized Oct 26, 2014 by sushil
The callbacks look alright. Can you also try out one of our samples for example this one
http://appwarp.shephertz.com/game-development-center/Smiley-Shooter-game/

and see if you are getting the same error in that as well? The above sample also implements these callbacks. See the following file
https://github.com/shephertz/AppWarpAS3Library/blob/master/SpriteMoveDemo/src/AppWarpListener.as
Thanks for your answer, i tried what you said and got the same result, i found an example that applies the same listeners that i'm using:
https://github.com/shephertz/AppWarpAS3Library/blob/master/SpriteMoveUdp/src/AppWarpListener.as

i copy pasted the whole class and clean the methods since i'm not using same variables, etc. but i got the same two errors.

I'm using this library, which i belive is the lastest one for flash develop:
https://github.com/shephertz/AppWarpAS3Library/tree/master/V_1.6.1

could it be that there is a problem with my flash instalation?, i'm using flash cs6 for compiling and FlashDevelop for coding.

1 Answer

0 votes
 
Best answer
Hey,

We have test on Flash Professional CC on our side and we found no issues. We were able to implement the NotificationListener without any error. Here is the link to our very basic test that we did.

https://www.dropbox.com/s/58hb7vvqigvrb68/flashCCTest.zip

Please download and try it out and let us know if this sample works for you or not. In case, you still get the error, please provide us some more details on how you are integerating AppWarp in your application.
answered Jul 4, 2014 by Suyash Mohan (900 points)
selected Jul 6, 2014 by necrosenator
Thank you for your answer, i tried the example you provide and runs without problem, i compared it with mine and couln't find what was causing the errors.

I'm guessing i did something wrong somewhere since i wrote a lot of code before testing it.

Given the case i decided to write it from scratch using your example as guide and well everything is working just fine so far, i got to implement all the listeners i need without problem.

Sorry for the troubles and thank you for your help.
Download Widgets
Welcome to ShepHertz Product line forum, where you can ask questions and receive answers from the community. You can also reach out to us on support@shephertz.com
...