Access your Activa Live Chat account here »

Activa Live Chat Features

contact us Contact Us by E-mail

call us 888–4–CHAT–44
(888–424–2844)

Free Trial

Get full access to Activa Live Chat for 14-days with a trial sign up.

Professional Services

Inquire about Activa Live Chat's professional services for your custom needs.

Changing live chat buttons from 'online' to 'offine' (or vice versa) in real-time within Rich Internet Applications (RIAs)

Activa Live Chat Support » Customization » How To

Article ID: 15 | Last Modified: 01/23/2008

When integrating Activa Live Chat with a custom Rich Internet Application (RIA) built with Flash, Flex or AIR, the default behavior for buttons can be changed slightly, if desired, to update the live status of your live chat operators.

For example: You may want your live chat buttons to switch, in real-time, from 'online' to 'offline' (or vice versa) states when those buttons' assigned departments sign-on or sign-off (become available for chat or unavailable for chat).

To accomplish this, in your ActionScript file, set the 'enableOfflinePinging' property of the ClientConnection oject to 'true'.

In the sample application from the Activa Live Chat SDK, you can add the following code to the 'init()' method:

connection.enableOfflinePinging = true;