No equivalent to SFSEventParam on clientside?

Post here your questions about the Flash / Flex / Air API for SFS2X

Moderators: Lapo, Bax

karfau
Posts: 25
Joined: 02 Sep 2011, 17:28

No equivalent to SFSEventParam on clientside?

Postby karfau » 26 Apr 2012, 14:25

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
User avatar
rjgtav
Posts: 2813
Joined: 19 Apr 2009, 11:31
Location: Lisbon, Portugal

Re: No equivalent to SFSEventParam on clientside?

Postby rjgtav » 26 Apr 2012, 21:02

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.
Skills: SFS Pro, SFS2X, AS2.0/AS3.0, Java, HTML5/CSS3/JS, C#
Portfolio: https://rjgtav.wordpress.com/
SFS Tutorials: http://sfs-tutor.blogspot.com/ - Discontinued. Some examples may be bugged.
karfau
Posts: 25
Joined: 02 Sep 2011, 17:28

Re: No equivalent to SFSEventParam on clientside?

Postby karfau » 27 Apr 2012, 08:05

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.)
User avatar
rjgtav
Posts: 2813
Joined: 19 Apr 2009, 11:31
Location: Lisbon, Portugal

Re: No equivalent to SFSEventParam on clientside?

Postby rjgtav » 28 Apr 2012, 15:58

Oh I understand now. Good I idea ;)
Skills: SFS Pro, SFS2X, AS2.0/AS3.0, Java, HTML5/CSS3/JS, C#
Portfolio: https://rjgtav.wordpress.com/
SFS Tutorials: http://sfs-tutor.blogspot.com/ - Discontinued. Some examples may be bugged.
User avatar
Lapo
Site Admin
Posts: 23026
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: No equivalent to SFSEventParam on clientside?

Postby Lapo » 09 May 2012, 11:08

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 :)
Lapo
--
gotoAndPlay()
...addicted to flash games

Return to “SFS2X ActionScript 3 API”

Who is online

Users browsing this forum: No registered users and 32 guests