HandleInternalMessage doesnt work...

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

Moderators: Lapo, Bax

Robbilie
Posts: 190
Joined: 04 Sep 2010, 19:48
Location: Ratingen, Germany
Contact:

HandleInternalMessage doesnt work...

Postby Robbilie » 07 Oct 2011, 15:40

hey guys i try to call vie this snippet my zone extension from my room extension:

Code: Select all

this.getParentExtension().getParentZone().getExtension().handleInternalMessage("switchRoomAfterLogin", fromUser);


its from a baseclientrequest handler...

in the zone exte i have this:

Code: Select all



        public void switchRoomAfterLogin(User u){
            trace("ZONE got switchroom");
            try {
                smartfox.joinRoom(u, _roomswitchmanager.getRoomToSwitchTo(u), null, false, vesszone.getRoomByName("The Lobby"));
            } catch (SFSJoinRoomException ex) {
                trace(ex);
                trace("error on roomswitch");
            }

            trace("no errors");
        }


and it is not called but the room exetsnion snippet is definatly...


whats wrong? :D

Return to “SFS2X Questions”

Who is online

Users browsing this forum: Aldenea, DavinVicy, DerikFent, Google [Bot], JerodSa and 15 guests