addRequestHandler init??

Post here your questions about SFS2X. Here we discuss all server-side matters. For client API questions see the dedicated forums.

Moderators: Lapo, Bax

fenderrex
Posts: 2
Joined: 22 Aug 2015, 21:01

addRequestHandler init??

Postby fenderrex » 14 Sep 2015, 20:09

iv looked in the docs and did not see anything about addRequestHandler init
does addRequestHandler run any kind of init function?

Code: Select all

addRequestHandler("WS", WepSwich.class);


and in the WepSwich.java

Code: Select all

 public class WepSwich extends BaseClientRequestHandler {
        private int varable =0;
        @Override
   public void init(){//somthin like this...
      //setup code
            varable =9;
   }

   @Override
   public void handleClientRequest(User u, ISFSObject data) {
                             

        }
}
User avatar
Lapo
Site Admin
Posts: 23026
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: addRequestHandler init??

Postby Lapo » 15 Sep 2015, 14:24

Hi,
no there's no init method in Request or Event handlers.

Cheers
Lapo
--
gotoAndPlay()
...addicted to flash games

Return to “SFS2X Questions”

Who is online

Users browsing this forum: No registered users and 116 guests