Packageyy.events
Classpublic class ChannelMicListEvent
InheritanceChannelMicListEvent Inheritance flash.events.Event

麦序相关事件。



Public Properties
 PropertyDefined By
  eventData : Object
事件信息保存变量
ChannelMicListEvent
Public Constants
 ConstantDefined By
  CLEAR : String = YY_MICLIST_CLEAR
[static] 麦序用户清除事件。麦序用户全部被清除的时候会触发。
ChannelMicListEvent
  CONTROLLED : String = YY_MICLIST_CONTROLLED
[static] 控麦事件。管理员控麦的时候触发。 事件信息格式说明: eventData.adminUid: uint类型 执行控麦操作的管理员的uid。
ChannelMicListEvent
  DISABLE_JOIN : String = YY_MICLIST_DISABLE_JOIN
[static] 禁麦事件。管理员禁麦的时候触发。 事件信息格式说明: eventData.adminUid: uint类型 执行禁麦操作的管理员的uid。
ChannelMicListEvent
  ENABLE_JOIN : String = YY_MICLIST_ENABLE_JOIN
[static] 开麦事件。管理员开麦的时候触发。 事件信息格式说明: eventData.adminUid: uint类型 执行开麦操作的管理员的uid。
ChannelMicListEvent
  MODE_CHANGED : String = YY_MICLIST_MODE_CHANGE
[static] 频道模式变化事件。当频道模式发生变化的时候触发。 事件信息格式说明: eventData.mode: int类型 当前的频道模式 0=自由模式,1=主席模式,2=麦序模式。
ChannelMicListEvent
  NOTIFICATION : String = YY_MICLIST_NOTIFICATION
[static] 收到麦序提醒事件。当处在麦序第二位的时候才能收到此事件。。 事件信息格式说明: eventData.adminUid: uint类型 发送提醒的管理员的uid。
ChannelMicListEvent
  RELEASED : String = YY_MICLIST_RELEASED
[static] 放麦事件。管理员放麦的时候触发。 事件信息格式说明: eventData.adminUid: uint类型 执行放麦操作的管理员的uid。
ChannelMicListEvent
  SPEAKING_STATE_CHANGED : String = YY_MICLIST_SPEAKING_STATE_CHANGED
[static] 用户说话状态变化事件。用户开始说话和停止说话时会触发,同频道界面用户名前的绿点变化一致。 事件信息格式说明: eventData.uid: uint类型 说话的用户uid。 eventData.speaking: Boolean类型 true=开始说话,false=停止说话。
ChannelMicListEvent
  TIME_CHANGED : String = YY_MICLIST_TIME_CHANGED
[static] 麦首麦序时间变化事件。管理员修改麦首麦序时间的时候触发。 事件信息格式说明: eventData.adminUid: uint类型 执行麦序时间加倍操作的管理员的uid。 eventData.uid: uint类型 麦首的用户uid。 eventData.seconds: uint类型 变化后的麦序时间,单位为秒。
ChannelMicListEvent
  USER_JOIN : String = YY_MICLIST_USER_JOIN
[static] 麦序用户增加事件。当有用户加入到麦序时会触发。 事件信息格式说明: eventData.uid: int类型 加入的用户uid。
ChannelMicListEvent
  USER_LEAVE : String = YY_MICLIST_USER_LEAVE
[static] 麦序用户离开事件。当有用户离开麦序时会触发。 事件信息格式说明: eventData.uid: int类型 离开的用户uid。
ChannelMicListEvent
  USER_LINKED : String = YY_MICLIST_USER_MIC_LINKED
[static] 用户加入连麦列表事件。当有新的用户连麦的时候触发。 事件信息格式说明: eventData.uid: uint类型 新加入连麦的用户uid。
ChannelMicListEvent
  USER_MOVE : String = YY_MICLIST_USER_MOVE
[static] 麦序用户移动事件。麦序用户发生位置调整的时候会触发。 事件信息格式说明: eventData.moveId: int类型 麦序中发生移动的用户uid。 eventData.toAfterId: int类型 移动到哪个用户后面,用户无法移动到第一个。
ChannelMicListEvent
  USER_UNLINKED : String = YY_MICLIST_USER_MIC_UNLINKED
[static] 用户移出连麦列表事件。当有用户移出连麦的时候触发。 事件信息格式说明: eventData.uid: uint类型 被移出连麦的用户uid。
ChannelMicListEvent
Property Detail
eventDataproperty
public var eventData:Object

事件信息保存变量

Constant Detail
CLEARConstant
public static const CLEAR:String = YY_MICLIST_CLEAR

麦序用户清除事件。麦序用户全部被清除的时候会触发。


Example
         使用示例:

         YY.instance.channel.micList.addEventListener(ChannelMicListEvent.CLEAR,onUserClear);

         function onUserClear(evt:ChannelMicListEvent):void
         {
              trace("麦序用户被清除");
         }
         
CONTROLLEDConstant 
public static const CONTROLLED:String = YY_MICLIST_CONTROLLED

控麦事件。管理员控麦的时候触发。

事件信息格式说明:

eventData.adminUid: uint类型 执行控麦操作的管理员的uid。


Example
         使用示例:
         YY.instance.channel.micList.addEventListener(ChannelMicListEvent.CONTROLLED,onMicControlled);
         
         function onMicControlled(evt:ChannelMicListEvent):void
         {
              trace("管理员"+evt.eventData.adminUid+"执行了控麦操作");
         
         }
         
DISABLE_JOINConstant 
public static const DISABLE_JOIN:String = YY_MICLIST_DISABLE_JOIN

禁麦事件。管理员禁麦的时候触发。

事件信息格式说明:

eventData.adminUid: uint类型 执行禁麦操作的管理员的uid。


Example
         使用示例:
         YY.instance.channel.micList.addEventListener(ChannelMicListEvent.DISABLE_JOIN,onMicDisableJoin);
         
         function onMicDisableJoin(evt:ChannelMicListEvent):void
         {
              trace("管理员"+evt.eventData.adminUid+"执行了禁麦操作");
         
         }
         
ENABLE_JOINConstant 
public static const ENABLE_JOIN:String = YY_MICLIST_ENABLE_JOIN

开麦事件。管理员开麦的时候触发。

事件信息格式说明:

eventData.adminUid: uint类型 执行开麦操作的管理员的uid。


Example
         使用示例:
         YY.instance.channel.micList.addEventListener(ChannelMicListEvent.ENABLE_JOIN,onMicEnableJoin);
         
         function onMicEnableJoin(evt:ChannelMicListEvent):void
         {
              trace("管理员"+evt.eventData.adminUid+"执行了开麦操作");
         
         }
         
MODE_CHANGEDConstant 
public static const MODE_CHANGED:String = YY_MICLIST_MODE_CHANGE

频道模式变化事件。当频道模式发生变化的时候触发。

事件信息格式说明:

eventData.mode: int类型 当前的频道模式 0=自由模式,1=主席模式,2=麦序模式。


Example
         使用示例:
         YY.instance.channel.micList.addEventListener(ChannelMicListEvent.MODE_CHANGED,onModeChanged);
         
         function onModeChanged(evt:ChannelMicListEvent):void
         {
              trace("当前频道模式="+evt.eventData.mode);
         }
         
NOTIFICATIONConstant 
public static const NOTIFICATION:String = YY_MICLIST_NOTIFICATION

收到麦序提醒事件。当处在麦序第二位的时候才能收到此事件。。

事件信息格式说明:

eventData.adminUid: uint类型 发送提醒的管理员的uid。


Example
         使用示例:
         YY.instance.channel.micList.addEventListener(ChannelMicListEvent.NOTIFICATION,onRecvNotification);
         
         function onRecvNotification(evt:ChannelMicListEvent):void
         {
              trace("收到来自"+evt.eventData.adminUid+"的麦序提醒");
         
         }
         
RELEASEDConstant 
public static const RELEASED:String = YY_MICLIST_RELEASED

放麦事件。管理员放麦的时候触发。

事件信息格式说明:

eventData.adminUid: uint类型 执行放麦操作的管理员的uid。


Example
         使用示例:
         YY.instance.channel.micList.addEventListener(ChannelMicListEvent.RELEASED,onMicReleased);
         
         function onMicReleased(evt:ChannelMicListEvent):void
         {
              trace("管理员"+evt.eventData.adminUid+"执行了放麦操作");
         
         }
         
SPEAKING_STATE_CHANGEDConstant 
public static const SPEAKING_STATE_CHANGED:String = YY_MICLIST_SPEAKING_STATE_CHANGED

用户说话状态变化事件。用户开始说话和停止说话时会触发,同频道界面用户名前的绿点变化一致。

事件信息格式说明:

eventData.uid: uint类型 说话的用户uid。

eventData.speaking: Boolean类型 true=开始说话,false=停止说话。


Example
         使用示例:
         YY.instance.channel.micList.addEventListener(ChannelMicListEvent.SPEAKING_STATE_CHANGED,onSpeakingStateChanged);
         
         function onSpeakingStateChanged(evt:ChannelMicListEvent):void
         {
              trace("用户"+evt.eventData.uid+"说话状态:"+evt.eventData.speaking);
         
         }
         
TIME_CHANGEDConstant 
public static const TIME_CHANGED:String = YY_MICLIST_TIME_CHANGED

麦首麦序时间变化事件。管理员修改麦首麦序时间的时候触发。

事件信息格式说明:

eventData.adminUid: uint类型 执行麦序时间加倍操作的管理员的uid。

eventData.uid: uint类型 麦首的用户uid。

eventData.seconds: uint类型 变化后的麦序时间,单位为秒。


Example
         使用示例:
         YY.instance.channel.micList.addEventListener(ChannelMicListEvent.TIME_CHANGED,onMicTimeChanged);
         
         function onMicTimeChanged(evt:ChannelMicListEvent):void
         {
              trace("管理员"+evt.eventData.adminUid+"修改麦首"+evt.eventData.uid+"的麦序时间为"+evt.eventData.seconds+"秒");
         
         }
         
USER_JOINConstant 
public static const USER_JOIN:String = YY_MICLIST_USER_JOIN

麦序用户增加事件。当有用户加入到麦序时会触发。

事件信息格式说明:

eventData.uid: int类型 加入的用户uid。


Example
         使用示例:

         YY.instance.channel.micList.addEventListener(ChannelMicListEvent.USER_JOIN,onUserJoin);

         function onUserJoin(evt:ChannelMicListEvent):void
         {
             trace("用户"+evt.eventData.uid+"加入到了麦序中");
         }
         
USER_LEAVEConstant 
public static const USER_LEAVE:String = YY_MICLIST_USER_LEAVE

麦序用户离开事件。当有用户离开麦序时会触发。

事件信息格式说明:

eventData.uid: int类型 离开的用户uid。


Example
         使用示例:

         YY.instance.channel.micList.addEventListener(ChannelMicListEvent.USER_JOIN,onUserLeave);

         function onUserLeave(evt:ChannelMicListEvent):void
         {
              trace("用户"+evt.eventData.uid+"离开麦序了");
         }
         
USER_LINKEDConstant 
public static const USER_LINKED:String = YY_MICLIST_USER_MIC_LINKED

用户加入连麦列表事件。当有新的用户连麦的时候触发。

事件信息格式说明:

eventData.uid: uint类型 新加入连麦的用户uid。


Example
         使用示例:
         YY.instance.channel.micList.addEventListener(ChannelMicListEvent.USER_LINKED,onUserLinked);
         
         function onUserLinked(evt:ChannelMicListEvent):void
         {
              trace("用户"+evt.eventData.uid+"加入连麦");
         }
         
USER_MOVEConstant 
public static const USER_MOVE:String = YY_MICLIST_USER_MOVE

麦序用户移动事件。麦序用户发生位置调整的时候会触发。

事件信息格式说明:

eventData.moveId: int类型 麦序中发生移动的用户uid。

eventData.toAfterId: int类型 移动到哪个用户后面,用户无法移动到第一个。


Example
         使用示例:

         YY.instance.channel.micList.addEventListener(ChannelMicListEvent.USER_MOVE,onUserMove);

         function onUserMove(evt:ChannelMicListEvent):void
         {
              trace("用户"+evt.eventData.uid+"移动到"+evt.eventData.toAfterId+"后面");
         }
         
USER_UNLINKEDConstant 
public static const USER_UNLINKED:String = YY_MICLIST_USER_MIC_UNLINKED

用户移出连麦列表事件。当有用户移出连麦的时候触发。

事件信息格式说明:

eventData.uid: uint类型 被移出连麦的用户uid。


Example
         使用示例:
         YY.instance.channel.micList.addEventListener(ChannelMicListEvent.USER_UNLINKED,onUserUnlinked);
         
         function onUserUnlinked(evt:ChannelMicListEvent):void
         {
              trace("用户"+evt.eventData.uid+"移出连麦");
         }