You are here: Docs Example Code ActionScript 3 Kernel Intro

ActionScript 3 Kernel Intro

This very simple sample demonstrates how to load the Clearspring kernel from within an ActionScript 3 widget project (in Flash 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 3)
  • 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 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