Page 1 of 1
No equivalent to SFSEventParam on clientside?
Posted: 26 Apr 2012, 14:25
by karfau
I don't understand why there is no equivalent to the com.smartfoxserver.v2.core.SFSEventParam class/enum in the AS3-lib.
It would make using the API so much easier.
You can see this as a feature-request.
karfau
Re: No equivalent to SFSEventParam on clientside?
Posted: 26 Apr 2012, 21:02
by rjgtav
Hi.
The
SFSEvent class already has those event constants you find on the SFSEventParam.
Note: the events you get on the client-side are much different from the ones you get on the server-side.
Re: No equivalent to SFSEventParam on clientside?
Posted: 27 Apr 2012, 08:05
by karfau
I think you misunderstood me:
the equivalent to the constants in
SFSEvent can be found in
SFSEventType for the serverside.
But I was talking about constants for the properties of the
params object the
SFSEvent contains.
(How could they be different, if the server sends data to the client it is not modified.)
Re: No equivalent to SFSEventParam on clientside?
Posted: 28 Apr 2012, 15:58
by rjgtav
Oh I understand now. Good I idea

Re: No equivalent to SFSEventParam on clientside?
Posted: 09 May 2012, 11:08
by Lapo
I agree, you would still need the docs to check which params are actually passed by the event but it would probably make the selection more intuitive.
Noted, thanks
