BitEvent

Kind of class:public class
Package:com.smartfoxserver.smartfoxbits.events
Inherits from:Event
Dispatched by:
Version:1.0
Author:The gotoAndPlay() Team
http://www.smartfoxserver.com
http://www.gotoandplay.it
Classpath:com.smartfoxserver.smartfoxbits.events.BitEvent
File last modified:Wednesday, 15 April 2009, 12:19:46
The BitEvent class is the base class for all the events dispatched by the SmartFoxBits controls.
This class provides the public property params which can contain a variable number of parameters, depending on the event type.
Usage:
  • Add a listener for this event to the specific SmartFoxBit control instance using the componentInstance.addEventListener method.

Summary


Constants
  • ROOM_CHANGE : String
    • Dispatched by the RoomList component when the selected room is changed.
  • USER_CHANGE : String
    • Dispatched by the UserList component when the selected user is changed.
  • CLEAR_CLICK : String
    • Dispatched by the ChatBox component when the ChatBox.clearButton button is pressed.
Instance properties
  • params : Object
    • An Object containing the event's parameters.

Constants

CLEAR_CLICK

public static const CLEAR_CLICK:String = "clearClick"
(read)

Dispatched by the ChatBox component when the ChatBox.clearButton button is pressed.

The params object doesn't contain parameters.

ROOM_CHANGE

public static const ROOM_CHANGE:String = "roomChange"
(read)

Dispatched by the RoomList component when the selected room is changed.

The params object contains the following parameters.
Parameters:
selectedRoom:
(Room) the SmartFoxServer Room object corresponding to the selected list item.

USER_CHANGE

public static const USER_CHANGE:String = "userChange"
(read)

Dispatched by the UserList component when the selected user is changed.

The params object contains the following parameters.
Parameters:
selectedUser:
(User) the SmartFoxServer User object corresponding to the selected list item.

Instance properties

params

public params:Object
(read)

An Object containing the event's parameters.