Шалун скачать бесплатно | качаем надежно Карта сайта Скачать трейнер русская рыбалка 2.4 | портал файлов Карта сайта Люди икс 4 сезон скачать | любые файлы Карта сайта Мико минуса скачать | качаем надежно Карта сайта Скачать музыку дима билан задыхаюсь | Карта сайта Елена беркова порно видео скачать | Карта сайта Скачать фильм русь изначальная | качаем с гарантией Карта сайта Скачать земля детей | качаем быстро Карта сайта Flv конвертер скачать бесплатно | качаем надежно Карта сайта Mp3 юрий антонов скачать бесплатно | качаем быстро Карта сайта Семен слепаков маленький член скачать | качаем любые файлы Карта сайта Скачать песню dont stop | файловый архив Карта сайта Скачать mp3 сергей зверев | качаем быстро Карта сайта Скачать игру теккен 3 бесплатно | хранилище файлов Карта сайта Скачать бесплатно школа ты дом | скачиваем быстро Карта сайта
LiveBot » Activity Extender API
Секс 18 век онлайн Карта сайта Карта сайта Бесплатные эро знакомства Карта сайта Карта сайта Народ секс ру сайт Карта сайта Карта сайта Аудио секс онлайн 3Карта сайта Карта сайта Клуб знакомств натали Карта сайта Карта сайта Знакомства москва ясенево Карта сайта Карта сайта Знакомства марий эл город волжск Карта сайта Карта сайта Знакомства город суздаль Карта сайта Карта сайта Знакомства частное секс Карта сайта Карта сайта Знакомства города ярославль Карта сайта Карта сайта Знакомства в новочеркасске Карта сайта Карта сайта База почтовых адресов сайта знакомств Карта сайта Карта сайта Юлдаш ру знакомства Карта сайта Карта сайта Знакомства кому за 30 москва Карта сайта Карта сайта Мир любви сайт знакомств Карта сайта Карта сайта Секс знакомства переславль Карта сайта Карта сайта Знакомства в киеве slando Карта сайта Карта сайта Реальные знакомства прямо сейчас Карта сайта Карта сайта Секс взрослых онлайн Карта сайта Карта сайта Знакомства в ижевске Карта сайта Карта сайта

Activity Extender API

August 15th, 2006

LiveBot features an Extended version of the Messenger Activity API. The main extension will be the support of more than 2 users in your activity. The API is based on the original API, so make sure you’ve read and understand the original documentation. Here I’ll explain the basics you need to know to create your own ‘extended activity’.

Basics

Include the script http://livebot.msgweb.nl/_api/extended_activities.js in the head section of your activity. Call ActivityExtender.Initialize() just before ext.Channel.Initialize().
It’s not recommended to use any of the API calls before Channel_OnRemoteAppsLoaded has been called.
Instead of window.external, always use ‘ext’.

Reference

CHANNEL OBJECT

New events:

  • Channel_OnRemoteAppsLoaded()
    The ext.Users object has been updated with the information of all participating users. It will only be triggered when the client user just entered the activity.

Edited events:

  • Channel_OnRemoteAppLoaded(Object user)
    A new user has joined the activity. ‘user’ is the user object of the new user.
  • Channel_RemoteAppClosed(Object user)
    A user left the activity. ‘user’ is the user object of the user. Note that ext.Users doesn’t contain this user anymore (its value will be null).

Edited functions:

  • Channel.SendData(String data)
    Send data to all users.
  • Channel.SendData(String data, Number uid)
    Send data only to the user with identifier uid.
  • Channel.SendData(String data, Object userObject)
    Send data only to the user userObject.

New properties:

  • Channel.DataUser
    Contains the user object who sent the latest data.

 

USERS OBJECT

New functions:

  • Users.CountActive()
    Returns the number of users who are still in the session. When someone leaves the activity, this value will be updated, but ext.Users.Count won’t be.

 

USER OBJECT

New properties:

  • User.id
    The identifier of the user. Users.Item(myUser.id) will return myUser.

 

Testing

To test your own ‘extended activity’, create a msgrp2p.xml file in your Messenger directory, as described in the original API documentation. Then, say ‘activity’ to the bot. When it says ‘What application do you want me to start?’ don’t choose one of the options, but just type ‘test activity http://url-of-your-activity’ instead.

The activity extender comes with a debugging module. Simply call ActivityExtender.Initialize(true) instead of calling the function without any parameters. You can now call ActivityExtender.debug(message), to add a debug message.

Example

Take a look at the source of the Memory game!

Entry Filed under: Uncategorized

1 Comment Add your own

  • 1. lola  |  September 25th, 2006 at 1:31 pm

    hey this is soooooooooo cool!

Leave a Comment

Required

Required, hidden

Some HTML allowed:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Trackback this post  |  Subscribe to the comments via RSS Feed


Calendar

February 2012
M T W T F S S
« Oct    
 12345
6789101112
13141516171819
20212223242526
272829  

Most Recent Posts