You are here: Docs Example Code ActionScript 2 Kernel Intro

ActionScript 2 Kernel Intro

This very simple sample demonstrates how to load the Clearspring kernel from within an ActionScript 2 widget project (in Flash 8 or CS3), and then call the In-Widget Services API functions.

Download Now

Concepts Demonstrated

This sample demonstrates:
  • Loading the kernel library into a Flash IDE project (ActionScript 2)
  • Making Context calls to get user and widget context information
  • Making Track calls to track events and URL linkouts
  • Making Menu calls to show the default Clearspring share menu and share your widget
  • Making Share calls to perform viral sharing from your own user interface

Prerequisites

To run this sample, you must have a widget registered with the Clearspring platform, and you must have the WID for this widget. You must also have Adobe Flash CS3 or Flash 8 installed.

Using the Sample

To build this sample, just load the FLA file into your Flash development environment. To fully-demonstrate it, you will need to serve the resulting SWF from a web server (though it can be localhost).

The actual sample file is included in this page, for demonstration purposes.

The Sample In Action