Page 1 of 1

HandleInternalMessage doesnt work...

Posted: 07 Oct 2011, 15:40
by Robbilie
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