Flash interface to GetGlue Check-in widgets
ActionScript
Switch branches/tags
Nothing to show
Latest commit 70df8f7 Jan 30, 2013 @jdp jdp Add caveat notice
Permalink
Failed to load latest commit information.
examples
src/com/getglue/widgets
.gitignore
LICENSE
README.md

README.md

GetGlue Flash Widgets

The GetGlue Flash Widgets package is a thin wrapper for ActionScript 3 around the JavaScript API for the GetGlue check-in widgets, providing easy integration for Flash-based web sites and components.

Usage

By including the check-in widgets JavaScript file on the same pages as the AS3-based object, the functionality is exposed:

<script type="text/javascript" src="http://widgets.getglue.com/checkin.js"></script>
<embed src="your-file.swf" type="application/x-shockwave-flash" width="320" height="240"></embed>

By default, the library is packaged as com.getglue.widgets.

Caveats

Some popup blockers will deny calls to window.open that cannot be traced to an input event handler in the page's DOM, including ones that originate from inside Flash objects. Because this is the mechanism through which the widget is opened, it is usually better to call getglue.checkin from JavaScript within an event handler registered in the DOM.

API

CheckinWidget.checkin(object_key:String, source:String = ""):void

Launches the check-in overlay for the object specified by object_key. For more information regarding object keys, read the Object IDs section of the API docs. The source parameter is optional, and if not provided will default to the current URI of the page.

CheckinWidget.basicCheckinButton(object_key:String):Sprite

The package comes with a 65x18 GetGlue mark for you to use as a button, and the basicCheckinButton method uses it to create a Sprite instance with mouseover states that will launch the check-in overlay when clicked. The sprite returned can be added to the stage directly.

Getting Help

If you have any problems integrating GetGlue widgets into your project, you can post to the GetGlue Development Group, or email us at support@getglue.com.